:root {
  --ink: #172033;
  --muted: #667085;
  --line: #e8eaf0;
  --soft: #f5f6f8;
  --paper: #ffffff;
  --nav: #111827;
  --lime: #d7f466;
  --lime-dark: #52680a;
  --blue: #e7f0ff;
  --blue-ink: #2458a6;
  --orange: #fff0df;
  --orange-ink: #a65300;
  --red: #ffe9e7;
  --red-ink: #b42318;
  --shadow: 0 14px 35px rgba(28, 36, 52, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f3f4f6; color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; padding: 28px 20px 20px; color: #fff; background: var(--nav); display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 0 8px 30px; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; color: var(--nav); background: var(--lime); font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand small { color: #98a2b3; margin-top: 2px; font-size: 11px; }
.desktop-nav { display: grid; gap: 6px; }
.nav-item { border: 0; background: transparent; color: #aeb6c4; padding: 12px 13px; border-radius: 11px; text-align: left; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; font-weight: 650; }
.nav-item:hover, .nav-item.active { color: #fff; background: #222c3e; }
.nav-item b { min-width: 23px; padding: 3px 6px; text-align: center; background: #303b4e; border-radius: 8px; font-size: 11px; }
.sidebar-card { margin-top: auto; padding: 15px; border: 1px solid #303b4e; border-radius: 14px; background: #192235; }
.sidebar-card strong { display: block; margin: 7px 0 9px; }
.sidebar-card small { color: #9ba5b5; }
.progress { height: 6px; background: #303b4e; border-radius: 99px; overflow: hidden; margin-bottom: 7px; }
.progress i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: inherit; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; background: #344054; border-radius: 50%; font-size: 11px; }
main { grid-column: 2; width: min(1220px, 100%); margin: 0 auto; padding: 30px 34px 70px; }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.date-label { margin: 0 0 3px; color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 27px; letter-spacing: -.04em; }
h2 { margin-bottom: 0; font-size: 19px; letter-spacing: -.025em; }
.top-actions { display: flex; gap: 9px; }
.primary-button, .secondary-button, .light-button, .icon-button { border-radius: 10px; border: 0; font-weight: 750; min-height: 42px; padding: 0 16px; }
.primary-button { color: #151c27; background: var(--lime); }
.primary-button:hover { background: #c9ed45; }
.icon-button { min-width: 42px; padding: 0; border: 1px solid var(--line); background: var(--paper); }
.light-button { color: #253044; background: #fff; }
.secondary-button { color: var(--ink); background: var(--soft); }
.view { display: none; }
.view.active { display: block; }
.eyebrow { display: block; color: var(--muted); font-weight: 800; font-size: 10px; letter-spacing: .105em; text-transform: uppercase; }
.attention-card { min-height: 115px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 17px; color: #fff; background: linear-gradient(115deg, #243047, #141c2c); box-shadow: var(--shadow); }
.attention-card .eyebrow { color: var(--lime); }
.attention-card h2 { margin: 5px 0; font-size: 21px; }
.attention-card p { color: #bec5d0; margin: 0; font-size: 13px; }
.attention-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: #1b2534; font-weight: 900; font-size: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.metric-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--soft); }
.metric strong { display: block; margin: 13px 0 3px; font-size: 24px; letter-spacing: -.04em; }
.metric small { color: var(--muted); font-size: 11px; }
.positive { color: #397300 !important; }
.dashboard-grid { display: grid; grid-template-columns: 1.22fr .78fr; gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); padding: 20px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 17px; }
.panel-heading h2 { margin-top: 4px; }
.text-button { border: 0; color: #475467; background: transparent; font-size: 12px; font-weight: 750; }
.mini-count { color: var(--muted); font-size: 11px; }
.mini-count b { color: var(--cyan); }
.muted { color: var(--muted); font-size: 12px; }
.task-list { display: grid; gap: 8px; }
.task-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 10px; border-radius: 12px; background: var(--soft); }
.task-row.urgent { background: #fff7ed; }
.task-symbol { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--orange-ink); background: var(--orange); font-weight: 900; }
.task-row strong, .task-row small { display: block; }
.task-row strong { font-size: 13px; margin-bottom: 3px; }
.task-row small { color: var(--muted); font-size: 11px; }
.task-action { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 7px 9px; color: #344054; font-size: 11px; font-weight: 750; }
.task-action.done { color: #397300; background: #f1fbd1; border-color: #d9ee86; }
.trend-badge { padding: 5px 8px; border-radius: 8px; color: #397300; background: #eef9ce; font-size: 11px; font-weight: 800; }
.chart { height: 145px; display: flex; align-items: end; gap: 11px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.chart-column { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 5px; position: relative; }
.chart-bars { height: 100%; display: flex; align-items: end; gap: 3px; }
.chart-column i { width: 12px; min-height: 4px; border-radius: 5px 5px 0 0; background: #b9c7dc; transition: height .3s; }
.chart-column i.profit-bar { background: var(--lime); }
.chart-legend { display: flex; justify-content: end; gap: 13px; color: var(--muted); font-size: 9px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; background: #b9c7dc; }
.chart-legend i.profit-key { background: var(--lime); }
.chart-column small { font-size: 9px; color: var(--muted); }
.chart-column em { position: absolute; top: -2px; font-size: 9px; font-style: normal; font-weight: 750; }
.platform-list { display: grid; gap: 10px; margin-top: 15px; }
.platform-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.platform-dot { width: 8px; height: 8px; border-radius: 50%; background: #344054; }
.platform-row small { color: var(--muted); }
.platform-row strong { font-size: 12px; }
.inventory-preview { margin-top: 16px; }
.item-table { display: grid; }
.item-line { display: grid; grid-template-columns: 48px minmax(160px, 1fr) 120px 110px 90px 32px; align-items: center; gap: 13px; min-height: 65px; border-top: 1px solid var(--line); cursor: pointer; }
.item-line:first-child { border-top: 0; }
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; background: #edf0f3; }
.item-name strong, .item-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-name strong { font-size: 13px; }
.item-name small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.status { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 99px; font-size: 10px; font-weight: 800; }
.status-active { color: #397300; background: #edf9cb; }
.status-reserved { color: var(--orange-ink); background: var(--orange); }
.status-sold {
  padding: 7px 11px;
  color: #07120b;
  border: 1px solid #67f395;
  background: #1ed760;
  box-shadow: 0 0 0 3px rgba(30, 215, 96, .16), 0 5px 20px rgba(30, 215, 96, .34);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  opacity: 1;
}
.status-draft { color: #475467; background: #eef0f3; }
.toolbar { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.group-switch { width: fit-content; display: flex; gap: 4px; padding: 4px; margin-bottom: 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(4,5,12,.55); }
.group-switch button { min-height: 31px; padding: 0 11px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; }
.group-switch button.active { color: #080812; background: linear-gradient(135deg, var(--lime), var(--cyan)); }
.search-box { min-width: 300px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.search-box input { width: 100%; min-height: 42px; border: 0; outline: 0; background: transparent; }
.filter-row { display: flex; gap: 7px; overflow-x: auto; }
.filter-chip { white-space: nowrap; border: 1px solid var(--line); border-radius: 10px; padding: 0 13px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 750; }
.filter-chip.active { color: #fff; background: var(--nav); border-color: var(--nav); }
.inventory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grouped-inventory { display: grid; grid-template-columns: 1fr; gap: 9px; }
.inventory-group { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: rgba(12,14,27,.7); }
.inventory-group > summary { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 14px; cursor: pointer; list-style: none; }
.inventory-group > summary::-webkit-details-marker { display: none; }
.inventory-group > summary span strong, .inventory-group > summary span small { display: block; }
.inventory-group > summary span small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.inventory-group > summary b { color: var(--cyan); font-size: 12px; }
.inventory-group > .inventory-grid { padding: 0 10px 10px; }
.item-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.item-card-image { height: 162px; position: relative; background: #edf0f3; }
.item-card-image img { width: 100%; height: 100%; object-fit: cover; }
.item-card-image .status { position: absolute; top: 11px; left: 11px; }
.item-card-body { padding: 14px; }
.item-card-body h3 { margin: 0 0 5px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-card-meta { color: var(--muted); font-size: 10px; }
.item-card-price { display: flex; justify-content: space-between; align-items: end; margin-top: 13px; }
.item-card-price strong { font-size: 18px; }
.item-card-price small { display: block; color: var(--muted); font-size: 9px; text-align: right; }
.item-card-price b { display: block; font-size: 11px; color: #397300; }
.quick-sold-button { width: 100%; min-height: 34px; margin-top: 10px; border: 1px solid rgba(184,255,61,.17); border-radius: 9px; color: var(--lime); background: rgba(184,255,61,.065); font-size: 11px; font-weight: 850; }
.quick-sold-button:hover { color: #080812; background: var(--lime); }
.quick-edit-sale-button {
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  color: #fff;
  border: 1px solid rgba(76, 141, 255, .35);
  border-radius: 9px;
  background: rgba(76, 141, 255, .13);
  font-size: 11px;
  font-weight: 850;
}
.quick-edit-sale-button:hover {
  border-color: #7eb0ff;
  background: rgba(76, 141, 255, .22);
}
.empty-state { min-height: 300px; display: grid; place-content: center; text-align: center; color: var(--muted); gap: 4px; }
.hidden { display: none !important; }
.task-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 15px; }
.summary-card { padding: 16px; border-radius: 14px; color: #344054; background: #fff; border: 1px solid var(--line); }
.summary-card strong { display: block; font-size: 22px; margin-bottom: 4px; }
.summary-card span { font-size: 11px; color: var(--muted); }
.task-list.full .task-row { min-height: 66px; grid-template-columns: 42px 1fr auto auto; background: #fff; border: 1px solid var(--line); }
.task-due { min-width: 75px; color: var(--muted); font-size: 10px; text-align: right; }
.period-switch { width: fit-content; display: flex; padding: 4px; background: #e8eaee; border-radius: 11px; margin-bottom: 15px; }
.period-switch button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
.period-switch button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.07); }
.finance-hero { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); margin-bottom: 16px; }
.finance-stat { min-height: 120px; padding: 22px; background: #fff; }
.finance-stat.primary { color: #fff; background: var(--nav); }
.finance-stat span, .finance-stat small { display: block; font-size: 11px; color: var(--muted); }
.finance-stat.primary span, .finance-stat.primary small { color: #aeb6c4; }
.finance-stat strong { display: block; margin: 12px 0 4px; font-size: 27px; letter-spacing: -.04em; }
.finance-stat.primary strong { color: var(--lime); font-size: 31px; }
.finance-grid { margin-bottom: 16px; }
.platform-list.detailed .platform-row { grid-template-columns: 12px 1fr auto; padding: 10px 0; border-top: 1px solid var(--line); }
.platform-list.detailed .platform-row:first-child { border-top: 0; }
.settlement-list { display: grid; gap: 8px; }
.settlement { display: grid; grid-template-columns: 35px 1fr auto; gap: 10px; align-items: center; padding: 10px; background: var(--soft); border-radius: 11px; }
.settlement strong, .settlement small { display: block; }
.settlement small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.sales-table { max-height: 380px; overflow-y: auto; padding-right: 5px; }
.sales-row { display: grid; grid-template-columns: 1fr 100px 100px 100px; gap: 12px; align-items: center; min-height: 58px; border-top: 1px solid var(--line); font-size: 12px; }
.sales-row:first-child { border-top: 0; }
.sales-row strong, .sales-row small { display: block; }
.sales-row small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.mobile-nav { display: none; }
dialog { width: min(650px, calc(100% - 24px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(15, 23, 42, .6); backdrop-filter: blur(3px); }
dialog form { padding: 22px; }
.modal-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 16px; }
.modal-heading h2 { margin-top: 4px; }
.close-button { border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); }
.image-drop { height: 135px; display: grid; place-items: center; position: relative; overflow: hidden; border: 1px dashed #c9ced8; border-radius: 13px; background: var(--soft); margin-bottom: 15px; }
.image-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.image-drop img { width: 100%; height: 100%; object-fit: cover; }
#imagePrompt { text-align: center; }
#imagePrompt span, #imagePrompt strong, #imagePrompt small { display: block; }
#imagePrompt span { font-size: 24px; }
#imagePrompt strong { margin: 4px; font-size: 13px; }
#imagePrompt small { color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { color: #475467; font-size: 11px; font-weight: 750; }
.form-grid .full { grid-column: 1 / -1; }
.advanced-fields { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: rgba(6,8,18,.38); }
.advanced-fields summary { color: var(--cyan); cursor: pointer; font-size: 11px; font-weight: 800; }
.advanced-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.advanced-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; margin-top: 5px; border: 1px solid #d9dde5; border-radius: 9px; padding: 10px; color: var(--ink); background: #fff; outline: 0; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #9bb128; box-shadow: 0 0 0 3px rgba(197, 225, 80, .25); }
.modal-actions { display: flex; justify-content: end; gap: 9px; margin-top: 18px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; padding: 12px 16px; border-radius: 10px; color: #fff; background: var(--nav); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }
.detail-wrap { padding: 22px; }
.detail-hero { height: 220px; border-radius: 13px; object-fit: cover; width: 100%; background: var(--soft); }
.detail-title { display: flex; justify-content: space-between; gap: 15px; align-items: start; margin: 16px 0; }
.detail-title h2 { font-size: 23px; }
.detail-title strong { font-size: 23px; white-space: nowrap; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 15px; }
.detail-stat { padding: 11px; background: var(--soft); border-radius: 10px; }
.detail-stat small, .detail-stat strong { display: block; }
.detail-stat small { color: var(--muted); font-size: 9px; margin-bottom: 4px; }
.detail-description { font-size: 12px; line-height: 1.6; color: #475467; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.detail-actions button, .detail-actions a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; text-decoration: none; font-size: 11px; font-weight: 800; }
.detail-actions .danger-button, .danger-button { color: var(--red-ink); border-color: #ffd0cc; background: #fff5f4; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 15px; }
.inline-form input { min-height: 42px; border: 1px solid #d9dde5; border-radius: 9px; padding: 0 11px; }
.goal-form { align-items: end; }
.goal-form label { color: var(--muted); font-size: 10px; font-weight: 750; }
.goal-form label input { width: 100%; display: block; margin-top: 5px; color: var(--ink); background: rgba(6,8,18,.86); }
.platform-manager { display: grid; gap: 8px; }
.platform-manage-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 9px; padding: 11px; border-radius: 11px; background: var(--soft); }
.platform-manage-row small { color: var(--muted); }
.platform-manage-row button { border: 0; color: var(--red-ink); background: transparent; font-size: 11px; font-weight: 800; }
.manager-symbol {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--lime);
  border-radius: 7px;
  background: rgba(30, 215, 96, .1);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}
.database-status { display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding: 13px; border-radius: 11px; background: #f3fbd8; }
.database-status strong, .database-status small { display: block; }
.database-status small { color: var(--muted); margin-top: 4px; font-size: 10px; line-height: 1.5; }
.database-light { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #73a600; box-shadow: 0 0 0 4px rgba(115,166,0,.13); }
.settings-actions { display: flex; gap: 8px; margin-top: 13px; }
.file-button { display: inline-flex; align-items: center; cursor: pointer; }
.file-button input { display: none; }
.settings-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.sale-preview { margin-top: 14px; padding: 13px; border-radius: 11px; color: #344054; background: var(--soft); font-size: 12px; }
.sale-preview strong { color: #397300; }

@media (max-width: 1000px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .inventory-grid { grid-template-columns: repeat(2, 1fr); }
  .item-line { grid-template-columns: 48px 1fr 100px 80px 30px; }
  .item-line .owner-col { display: none; }
}

@media (max-width: 760px) {
  body { background: #f6f7f9; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  main { width: 100%; padding: 18px 14px 92px; }
  .topbar { min-height: 50px; margin-bottom: 17px; }
  h1 { font-size: 23px; }
  .date-label { font-size: 9px; }
  .top-actions .icon-button:not([data-view-link="settings"]) { display: none; }
  .top-actions .primary-button { display: none; }
  .attention-card { grid-template-columns: 40px 1fr; gap: 12px; min-height: auto; padding: 17px; }
  .attention-icon { width: 38px; height: 38px; }
  .attention-card h2 { font-size: 17px; }
  .attention-card p { font-size: 11px; }
  .attention-card .light-button { grid-column: 1 / -1; width: 100%; min-height: 38px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 10px 0; }
  .metric { padding: 14px; }
  .metric strong { font-size: 20px; margin-top: 9px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 10px; }
  .panel { padding: 15px; border-radius: 14px; }
  .pulse-panel { order: 2; }
  .inventory-preview { margin-top: 10px; }
  .item-line { grid-template-columns: 44px minmax(0, 1fr) auto 20px; gap: 8px; min-height: 61px; }
  .item-line .owner-col, .item-line .platform-col { display: none; }
  .item-line .status { display: none; }
  .item-line > strong { font-size: 12px; }
  .toolbar { display: grid; }
  .group-switch { width: 100%; }
  .group-switch button { flex: 1; }
  .search-box { min-width: 0; }
  .filter-row { padding-bottom: 3px; }
  .filter-chip { min-height: 36px; }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .item-card-image { height: 125px; }
  .item-card-body { padding: 11px; }
  .item-card-price strong { font-size: 16px; }
  .task-summary { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .task-list.full .task-row { grid-template-columns: 38px 1fr auto; }
  .task-list.full .task-due { display: none; }
  .finance-hero { grid-template-columns: repeat(2, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
  .finance-stat { min-height: 105px; padding: 16px; }
  .finance-stat strong, .finance-stat.primary strong { font-size: 23px; }
  .sales-row { grid-template-columns: 1fr 75px 70px; }
  .sales-row .sales-owner { display: none; }
  .mobile-nav { position: fixed; inset: auto 0 0 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; height: 66px; padding: 6px max(7px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
  .mobile-nav button { position: relative; display: grid; place-items: center; gap: 2px; border: 0; color: #8b93a1; background: transparent; }
  .mobile-nav button > span { font-size: 19px; line-height: 1; }
  .mobile-nav button small { font-size: 9px; font-weight: 750; }
  .mobile-nav button.active { color: var(--ink); }
  .mobile-nav .mobile-add { width: 49px; height: 49px; align-self: start; justify-self: center; margin-top: -20px; border-radius: 16px; color: var(--nav); background: var(--lime); box-shadow: 0 7px 20px rgba(100,120,20,.22); }
  .mobile-nav .mobile-add span { font-size: 27px; }
  .mobile-nav i { position: absolute; top: -2px; right: 17%; min-width: 16px; padding: 2px 4px; color: #fff; background: #e54b3c; border-radius: 99px; font-size: 8px; font-style: normal; }
  dialog { max-height: 94vh; margin-bottom: 2vh; }
  dialog form, .detail-wrap { padding: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .advanced-grid { grid-template-columns: 1fr; }
  .advanced-grid .full { grid-column: auto; }
  .image-drop { height: 115px; }
  .detail-hero { height: 180px; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .toast { right: 14px; left: 14px; bottom: 86px; text-align: center; }
}

/* Neon night theme */
:root {
  color-scheme: dark;
  --ink: #f4f7ff;
  --muted: #8c94ad;
  --line: rgba(132, 151, 196, .17);
  --soft: rgba(19, 22, 39, .82);
  --paper: rgba(14, 16, 30, .88);
  --nav: #080812;
  --lime: #b8ff3d;
  --lime-dark: #84c700;
  --blue: rgba(55, 243, 255, .12);
  --blue-ink: #6ff8ff;
  --orange: rgba(255, 180, 65, .12);
  --orange-ink: #ffc36b;
  --red: rgba(255, 76, 119, .12);
  --red-ink: #ff7798;
  --purple: #a970ff;
  --cyan: #37f3ff;
  --shadow: 0 18px 55px rgba(0, 0, 0, .32);
}

body {
  background:
    radial-gradient(circle at 78% 8%, rgba(127, 78, 255, .16), transparent 28rem),
    radial-gradient(circle at 18% 92%, rgba(55, 243, 255, .08), transparent 30rem),
    #080812;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 38px 38px;
}

.app-shell { grid-template-columns: 198px 1fr; }
.sidebar {
  width: 198px;
  padding: 22px 14px 15px;
  background: rgba(8, 8, 18, .94);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(22px);
}
.brand { padding: 0 7px 20px; }
.desktop-nav { gap: 3px; }
.nav-item { padding: 10px 11px; }
.sidebar-card { padding: 12px; }
main { padding: 22px 25px 55px; }
.topbar { min-height: 54px; margin-bottom: 14px; }
.attention-card { min-height: 92px; padding: 16px 18px; }
.attention-card h2 { font-size: 18px; }
.metric { padding: 14px; }
.metric strong { margin: 9px 0 2px; font-size: 21px; }
.dashboard-grid { gap: 10px; }
.panel { padding: 15px; border-radius: 14px; }
.panel-heading { margin-bottom: 12px; }
.task-list { gap: 6px; }
.task-row { padding: 8px; }
.chart { height: 125px; }
.inventory-preview { margin-top: 10px; }
.item-line { min-height: 57px; }
.toolbar { margin-bottom: 11px; }
.inventory-grid { gap: 10px; }
.item-card-image { height: 145px; }
.item-card-body { padding: 11px; }


.brand-mark {
  color: #080812;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  box-shadow: 0 0 24px rgba(184, 255, 61, .32);
}

.brand small, .sidebar-card small { color: var(--muted); }
.nav-item { color: #858da8; }
.nav-item:hover, .nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(169, 112, 255, .16), rgba(55, 243, 255, .05));
  box-shadow: inset 3px 0 var(--purple);
}
.nav-item.active span { color: var(--lime); text-shadow: 0 0 12px rgba(184,255,61,.6); }
.nav-item b { color: var(--cyan); background: rgba(55,243,255,.09); }
.sidebar-card { border-color: rgba(184,255,61,.18); background: linear-gradient(145deg, rgba(184,255,61,.06), rgba(169,112,255,.08)); }
.progress { background: rgba(255,255,255,.08); }
.progress i { background: linear-gradient(90deg, var(--lime), var(--cyan)); box-shadow: 0 0 14px rgba(184,255,61,.45); }
.avatar { color: var(--cyan); background: rgba(55,243,255,.09); border: 1px solid rgba(55,243,255,.16); }

h1 {
  background: linear-gradient(90deg, #fff 25%, #b9c3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.date-label, .eyebrow { color: #8d96b3; }
.primary-button {
  color: #090b10;
  background: linear-gradient(135deg, var(--lime), #7fffa8);
  box-shadow: 0 0 22px rgba(184,255,61,.18);
}
.primary-button:hover { background: linear-gradient(135deg, #cbff70, var(--cyan)); }
.secondary-button, .icon-button, .light-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(20, 23, 41, .9);
}
.text-button { color: var(--cyan); }

.attention-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(169,112,255,.28);
  background: linear-gradient(115deg, rgba(38, 25, 66, .94), rgba(10, 15, 28, .94));
  box-shadow: 0 22px 55px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.05);
}
.attention-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -130px;
  top: -150px;
  border-radius: 50%;
  background: var(--purple);
  filter: blur(70px);
  opacity: .2;
}
.attention-card > * { position: relative; z-index: 1; }
.attention-card .eyebrow { color: var(--lime); }
.attention-card p { color: #aeb6cd; }
.attention-icon {
  color: #080812;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  box-shadow: 0 0 25px rgba(55,243,255,.24);
}

.metric, .panel, .item-card, .summary-card {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(18, 20, 37, .9), rgba(10, 12, 24, .9));
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 16px 40px rgba(0,0,0,.14);
  backdrop-filter: blur(15px);
}
.metric:hover, .panel:hover { border-color: rgba(169,112,255,.25); }
.metric-icon { color: var(--cyan); background: rgba(55,243,255,.08); border: 1px solid rgba(55,243,255,.1); }
.metric:nth-child(3) strong, .positive { color: var(--lime) !important; text-shadow: 0 0 18px rgba(184,255,61,.18); }
.task-row, .settlement, .detail-stat, .platform-manage-row, .sale-preview {
  background: rgba(22, 25, 44, .76);
  border: 1px solid rgba(132,151,196,.08);
}
.task-row.urgent { background: linear-gradient(90deg, rgba(255, 76, 119, .11), rgba(22,25,44,.75)); border-color: rgba(255,76,119,.18); }
.task-symbol { color: var(--orange-ink); background: rgba(255,180,65,.1); box-shadow: inset 0 0 16px rgba(255,180,65,.06); }
.task-action, .detail-actions button, .detail-actions a {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(13,15,28,.92);
}
.trend-badge { color: var(--lime); background: rgba(184,255,61,.09); border: 1px solid rgba(184,255,61,.12); }
.chart-column i { background: linear-gradient(to top, #596985, #7d93ba); }
.chart-column i.profit-bar { background: linear-gradient(to top, #6fc900, var(--lime)); box-shadow: 0 0 12px rgba(184,255,61,.22); }
.chart { border-color: var(--line); }
.item-line, .sales-row, .platform-list.detailed .platform-row { border-color: var(--line); }
.thumb, .item-card-image, .detail-hero { background: #111526; }
.item-card:hover { border-color: rgba(55,243,255,.3); box-shadow: 0 18px 46px rgba(0,0,0,.34), 0 0 28px rgba(55,243,255,.06); }
.item-card-price b { color: var(--lime); }
.status-active { color: var(--lime); background: rgba(184,255,61,.1); border: 1px solid rgba(184,255,61,.15); }
.status-reserved { color: var(--orange-ink); background: var(--orange); border: 1px solid rgba(255,180,65,.14); }
.status-sold { color: #07120b; background: #1ed760; border-color: #67f395; }
.status-draft { color: #adb6d0; background: rgba(144,156,190,.09); border: 1px solid var(--line); }

.search-box, .filter-chip, .period-switch, .period-switch button.active {
  border-color: var(--line);
  background: rgba(14,16,30,.88);
}
.search-box input { color: var(--ink); }
.filter-chip { color: var(--muted); }
.filter-chip.active {
  color: #090b10;
  border-color: var(--lime);
  background: linear-gradient(135deg, var(--lime), #76ffd2);
  box-shadow: 0 0 18px rgba(184,255,61,.13);
}
.period-switch { background: rgba(4,5,12,.65); border: 1px solid var(--line); }
.period-switch button { color: var(--muted); }
.period-switch button.active { color: var(--cyan); box-shadow: inset 0 0 16px rgba(55,243,255,.06); }

.finance-hero { border-color: var(--line); background: var(--line); }
.finance-stat { background: rgba(14,16,30,.92); }
.finance-stat.primary { background: linear-gradient(135deg, rgba(44,30,76,.95), rgba(10,17,31,.96)); }
.finance-stat.primary strong { color: var(--lime); text-shadow: 0 0 20px rgba(184,255,61,.2); }

dialog {
  color: var(--ink);
  border: 1px solid rgba(169,112,255,.24);
  background: linear-gradient(145deg, rgba(18,20,37,.98), rgba(8,9,19,.98));
  box-shadow: 0 30px 90px rgba(0,0,0,.65), 0 0 45px rgba(169,112,255,.08);
}
dialog::backdrop { background: rgba(2,3,8,.8); backdrop-filter: blur(8px); }
.image-drop { border-color: rgba(55,243,255,.22); background: rgba(55,243,255,.035); }
.form-grid label { color: #a6aec5; }
.form-grid input, .form-grid select, .form-grid textarea, .inline-form input {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(6,8,18,.86);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .inline-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(55,243,255,.1), 0 0 20px rgba(55,243,255,.06);
}
.detail-description { color: #aab2c8; }
.detail-actions .danger-button, .danger-button { color: var(--red-ink); border-color: rgba(255,76,119,.2); background: rgba(255,76,119,.07); }
.database-status { color: var(--ink); background: rgba(184,255,61,.055); border: 1px solid rgba(184,255,61,.14); }
.database-light { background: var(--lime); box-shadow: 0 0 14px rgba(184,255,61,.7); }
.sale-preview strong { color: var(--lime); }
.toast { color: #080812; background: linear-gradient(135deg, var(--lime), var(--cyan)); font-weight: 800; box-shadow: 0 14px 45px rgba(55,243,255,.2); }

@media (max-width: 760px) {
  body { background: radial-gradient(circle at 85% 4%, rgba(127,78,255,.16), transparent 18rem), #080812; }
  .mobile-nav {
    border-color: var(--line);
    background: rgba(8,8,18,.92);
    backdrop-filter: blur(18px);
  }
  .mobile-nav button { color: #747d99; }
  .mobile-nav button.active { color: var(--cyan); }
  .mobile-nav .mobile-add {
    color: #080812;
    background: linear-gradient(135deg, var(--lime), var(--cyan));
    box-shadow: 0 0 28px rgba(55,243,255,.25);
  }
  main { padding: 13px 10px 78px; }
  .topbar { min-height: 44px; margin-bottom: 10px; }
  .attention-card { padding: 13px; }
  .attention-card p { display: none; }
  .metric-grid { gap: 6px; }
  .metric { padding: 11px; }
  .metric-head { font-size: 10px; }
  .metric-icon { display: none; }
  .metric strong { font-size: 18px; }
  .metric small { font-size: 9px; }
  .panel-heading h2 { font-size: 16px; }
  .task-row { grid-template-columns: 32px 1fr auto; gap: 8px; }
  .task-symbol { width: 31px; height: 31px; }
  .inventory-preview { display: none; }
  .pulse-panel .platform-list { display: none; }
  .chart { height: 112px; }
}

/* Spotify-inspired dark theme */
:root {
  color-scheme: dark;
  --ink: #ffffff;
  --muted: #b3b3b3;
  --line: rgba(255, 255, 255, .09);
  --soft: #242424;
  --paper: #181818;
  --nav: #000000;
  --lime: #1ed760;
  --lime-dark: #169c46;
  --cyan: #1ed760;
  --purple: #1ed760;
  --blue: rgba(30, 215, 96, .12);
  --blue-ink: #1ed760;
}

body {
  color: var(--ink);
  background: #121212;
}

body::before { display: none; }

.sidebar {
  border-right-color: #202020;
  background: var(--nav);
  backdrop-filter: none;
}

.brand-mark {
  color: #000;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: none;
}

.brand small, .sidebar-card small, .eyebrow, .metric-head,
.task-copy p, .panel-heading p, .product-card p, .platform-row small,
.chart-label, .form-grid label, .detail-description {
  color: var(--muted);
}

.nav-item { color: var(--muted); }
.nav-item:hover { color: #fff; background: #1a1a1a; }
.nav-item.active {
  color: #fff;
  border-color: transparent;
  background: #282828;
  box-shadow: none;
}
.nav-item b { color: #000; background: var(--lime); }

.sidebar-card {
  border-color: var(--line);
  background: #181818;
  box-shadow: none;
}
.progress { background: #404040; }
.progress i { background: var(--lime); box-shadow: none; }

h1 {
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}

.icon-button, .ghost-button, .filter-chip, .period-switch,
.search-box, .secondary-button {
  color: var(--ink);
  border-color: var(--line);
  background: #181818;
  box-shadow: none;
}

.icon-button:hover, .ghost-button:hover, .secondary-button:hover,
.filter-chip:hover {
  border-color: rgba(255, 255, 255, .2);
  background: #282828;
}

.primary-button, .quick-add-button, .mobile-nav .mobile-add {
  color: #000;
  border-color: var(--lime);
  background: var(--lime);
  box-shadow: none;
}
.primary-button:hover, .quick-add-button:hover {
  background: #3be477;
  transform: translateY(-1px);
}

.attention-card {
  color: #fff;
  border-color: rgba(30, 215, 96, .22);
  background: linear-gradient(135deg, #1d2d23, #181818 65%);
  box-shadow: none;
}
.attention-card::after {
  background: radial-gradient(circle, rgba(30, 215, 96, .16), transparent 68%);
}

.metric, .panel, .product-card, .finance-stat {
  border-color: transparent;
  background: var(--paper);
  box-shadow: none;
}
.metric:hover, .product-card:hover {
  border-color: transparent;
  background: #282828;
  box-shadow: none;
  transform: translateY(-2px);
}
.metric-icon, .task-symbol {
  color: var(--lime);
  border-color: rgba(30, 215, 96, .18);
  background: rgba(30, 215, 96, .1);
  box-shadow: none;
}

.task-row, .platform-row, .inventory-group {
  border-color: var(--line);
  background: #242424;
}
.task-row:hover, .platform-row:hover { background: #2a2a2a; }

.status-active, .status-sold, .status-reserved {
  color: var(--lime);
  border-color: rgba(30, 215, 96, .2);
  background: rgba(30, 215, 96, .1);
}
.status-draft {
  color: var(--muted);
  border-color: var(--line);
  background: #242424;
}

.filter-chip.active, .period-switch button.active {
  color: #000;
  border-color: var(--lime);
  background: var(--lime);
  box-shadow: none;
}
.period-switch { background: #0d0d0d; }
.period-switch button { color: var(--muted); }

.chart-bar { background: #535353; }
.chart-bar:hover, .chart-bar.active, .chart-bar.profit { background: var(--lime); }

.finance-hero { border-color: #121212; background: #121212; }
.finance-stat.primary {
  background: linear-gradient(135deg, #213528, #181818);
}
.finance-stat.primary strong {
  color: var(--lime);
  text-shadow: none;
}

dialog {
  color: var(--ink);
  border-color: var(--line);
  background: #181818;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
}
dialog::backdrop { background: rgba(0, 0, 0, .82); }
.image-drop {
  border-color: rgba(30, 215, 96, .25);
  background: rgba(30, 215, 96, .05);
}
.form-grid input, .form-grid select, .form-grid textarea, .inline-form input {
  color: var(--ink);
  border-color: var(--line);
  background: #242424;
}
.form-grid input:focus, .form-grid select:focus,
.form-grid textarea:focus, .inline-form input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(30, 215, 96, .14);
}

.database-status {
  color: var(--ink);
  border-color: rgba(30, 215, 96, .18);
  background: rgba(30, 215, 96, .07);
}
.database-light {
  background: var(--lime);
  box-shadow: 0 0 10px rgba(30, 215, 96, .55);
}
.sale-preview strong { color: var(--lime); }
.toast {
  color: #000;
  background: var(--lime);
  box-shadow: 0 14px 45px rgba(0, 0, 0, .4);
}

@media (max-width: 760px) {
  body { background: #121212; }
  .mobile-nav {
    border-color: #202020;
    background: rgba(0, 0, 0, .96);
    backdrop-filter: blur(18px);
  }
  .mobile-nav button { color: #8d8d8d; }
  .mobile-nav button.active { color: var(--lime); }
  .mobile-nav .mobile-add {
    color: #000;
    background: var(--lime);
    box-shadow: 0 0 22px rgba(30, 215, 96, .2);
  }
}

/* Minimal tracker layout */
#dashboardView > .dashboard-grid { grid-template-columns: 1fr; }
#dashboardView .pulse-panel { width: 100%; }

.goal-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #181818;
}
.goal-card strong, .goal-card small { display: block; }
.goal-card strong { margin: 5px 0 8px; font-size: 18px; }
.goal-card small { margin-top: 6px; color: var(--muted); }
.goal-card label { color: var(--muted); font-size: 11px; font-weight: 700; }
.goal-card label span { display: flex; gap: 7px; margin-top: 6px; }
.goal-card input {
  width: 110px;
  min-height: 38px;
  padding: 0 10px;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #242424;
}
.goal-card .primary-button { min-height: 38px; }

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.category-tag, .platform-tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}
.category-tag {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #303030;
}
.platform-tag {
  color: #000;
  border: 1px solid var(--lime);
  background: var(--lime);
}
.item-card-meta { margin-top: 2px; }
.item-card-price { min-height: 31px; }
.detail-title .item-tags { margin-bottom: 0; }

.price-history {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121212;
}
.price-history-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.price-history-heading strong { font-size: 13px; }
.price-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-top: 1px solid var(--line);
}
.price-history-row > span { display: grid; grid-template-columns: 10px auto; align-items: center; column-gap: 8px; }
.price-history-row i { grid-row: 1 / 3; width: 8px; height: 8px; border-radius: 50%; background: #777; }
.price-history-row strong { font-size: 12px; }
.price-history-row small { color: var(--muted); font-size: 10px; }
.price-history-row b { font-size: 13px; }
.price-history-row.sold i { background: var(--lime); box-shadow: 0 0 10px rgba(30, 215, 96, .35); }
.price-history-row.sold b { color: var(--lime); }
.confirm-dialog { max-width: 420px; padding: 22px; }
.confirm-dialog .danger-button { min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 850; }
.platform-list .empty-state,
.settlement-list .empty-state,
.sales-table .empty-state { min-height: 72px; }

@media (max-width: 760px) {
  .goal-card { grid-template-columns: 1fr; gap: 12px; }
  .goal-card label span { width: 100%; }
  .goal-card input { flex: 1; width: auto; }
}

/* High-signal statistics */
.metric,
.finance-stat {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.metric::after,
.finance-stat::after {
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--stat-glow, rgba(30, 215, 96, .14));
  filter: blur(10px);
  content: "";
  pointer-events: none;
  z-index: -1;
}

.metric.inventory {
  --stat-glow: rgba(30, 215, 96, .2);
  border-color: rgba(30, 215, 96, .24);
  background: linear-gradient(145deg, #19251d 0%, #181818 72%);
}
.metric.inventory .metric-icon,
.metric.inventory strong { color: #45e477; }

.metric.value {
  --stat-glow: rgba(76, 141, 255, .24);
  border-color: rgba(76, 141, 255, .28);
  background: linear-gradient(145deg, #192235 0%, #181818 72%);
}
.metric.value .metric-icon,
.metric.value strong { color: #7eb0ff; }

.metric.profit {
  --stat-glow: rgba(185, 131, 255, .23);
  border-color: rgba(185, 131, 255, .28);
  background: linear-gradient(145deg, #251d32 0%, #181818 72%);
}
.metric.profit .metric-icon,
.metric.profit strong {
  color: #cf9fff !important;
  text-shadow: none;
}

.pulse-panel {
  border-color: rgba(30, 215, 96, .18);
  background:
    radial-gradient(circle at 85% 0%, rgba(30, 215, 96, .1), transparent 32%),
    linear-gradient(150deg, #1b1b1b, #141414);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

.chart {
  height: 160px;
  padding: 16px 10px 0;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(76, 141, 255, .08), rgba(0, 0, 0, .08));
  background-size: 100% 33.33%, auto;
}

.chart-column i {
  width: 14px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #7eb0ff, #356ee6);
  box-shadow: 0 0 14px rgba(76, 141, 255, .28);
}
.chart-column i.profit-bar {
  background: linear-gradient(180deg, #5af28c, #1ed760);
  box-shadow: 0 0 16px rgba(30, 215, 96, .34);
}
.chart-column.current .chart-bars {
  filter: saturate(1.35) brightness(1.16);
}
.chart-column.current small {
  color: #fff;
  font-weight: 800;
}

.trend-badge {
  color: #76ef9b;
  border: 1px solid rgba(30, 215, 96, .28);
  background: rgba(30, 215, 96, .13);
  box-shadow: 0 0 18px rgba(30, 215, 96, .08);
}

.finance-stat.revenue {
  --stat-glow: rgba(76, 141, 255, .24);
  border-color: rgba(76, 141, 255, .25);
  background: linear-gradient(145deg, #19243a, #181818 74%);
}
.finance-stat.revenue strong { color: #7eb0ff; }

.finance-stat.costs {
  --stat-glow: rgba(255, 184, 77, .22);
  border-color: rgba(255, 184, 77, .23);
  background: linear-gradient(145deg, #2b2318, #181818 74%);
}
.finance-stat.costs strong { color: #ffc66d; }

.finance-stat.payouts {
  --stat-glow: rgba(255, 95, 162, .22);
  border-color: rgba(255, 95, 162, .23);
  background: linear-gradient(145deg, #2d1b25, #181818 74%);
}
.finance-stat.payouts strong { color: #ff83b8; }

.finance-stat.primary {
  --stat-glow: rgba(30, 215, 96, .3);
  border-color: rgba(30, 215, 96, .32);
  background: linear-gradient(145deg, #1b3122, #181818 72%);
}
.finance-stat.primary strong { color: #45e477; }

.platform-row {
  transition: border-color .18s ease, background .18s ease;
}
.platform-row:hover {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .035);
}

@media (max-width: 700px) {
  .chart {
    height: 124px;
    padding: 12px 6px 0;
  }
  .chart-column i { width: 11px; }
}

.overview-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}
.overview-block {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #181818;
}
.overview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.overview-heading small {
  color: var(--muted);
  font-size: 10px;
}
.overview-chips,
.item-platform-bar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.overview-chips::-webkit-scrollbar,
.item-platform-bar::-webkit-scrollbar { display: none; }
.overview-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  padding: 8px 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #242424;
  text-align: left;
}
.overview-chip:hover {
  border-color: rgba(255, 255, 255, .2);
  background: #2a2a2a;
}
.overview-chip.category {
  border-color: rgba(185, 131, 255, .2);
  background: linear-gradient(145deg, rgba(185, 131, 255, .11), #242424);
}
.overview-chip.platform {
  border-color: rgba(76, 141, 255, .2);
  background: linear-gradient(145deg, rgba(76, 141, 255, .1), #242424);
}
.overview-chip i,
.item-platform-bar i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.overview-chip strong,
.overview-chip small {
  display: block;
}
.overview-chip strong { font-size: 11px; }
.overview-chip small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}
.overview-empty {
  color: var(--muted);
  font-size: 11px;
}

.item-platform-bar {
  margin-bottom: 10px;
  padding-bottom: 3px;
}
.item-platform-bar button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #181818;
  font-size: 11px;
  font-weight: 750;
}
.item-platform-bar button:hover {
  color: var(--ink);
  background: #282828;
}
.item-platform-bar button.active {
  color: #000;
  border-color: var(--lime);
  background: var(--lime);
}
.item-platform-bar button b {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: inherit;
  background: rgba(127, 127, 127, .18);
  font-size: 9px;
}
.item-platform-bar button.active b {
  background: rgba(0, 0, 0, .14);
}

@media (max-width: 760px) {
  .overview-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .overview-block { padding: 11px; }
  .overview-heading { margin-bottom: 8px; }
}

/* Square product photos without cropping */
.thumb {
  object-fit: contain;
  background: #101010;
}

.item-card-image {
  height: auto;
  aspect-ratio: 1 / 1;
  background: #101010;
}

.item-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-drop {
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 1 / 1;
  margin-right: auto;
  margin-left: auto;
  background: #101010;
}

.image-drop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-hero {
  display: block;
  width: min(100%, 520px);
  height: auto;
  aspect-ratio: 1 / 1;
  margin-right: auto;
  margin-left: auto;
  object-fit: contain;
  background: #101010;
}

@media (max-width: 760px) {
  .item-card-image,
  .image-drop,
  .detail-hero {
    height: auto;
  }
}

.stats-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: -2px 0 12px;
}

.stats-filter .period-switch {
  flex: 0 0 auto;
  margin: 0;
}

.stats-date-selects {
  display: flex;
  gap: 7px;
}

.stats-date-selects select {
  min-height: 36px;
  padding: 0 30px 0 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #242424;
  font-size: 11px;
  font-weight: 750;
}

.finance-stats-filter {
  width: fit-content;
  margin-bottom: 15px;
}

.chart {
  overflow-x: auto;
  scrollbar-width: none;
}

.chart::-webkit-scrollbar { display: none; }

.chart-column {
  min-width: 38px;
}

@media (max-width: 760px) {
  .stats-filter {
    display: grid;
    justify-content: stretch;
  }

  .stats-filter .period-switch {
    width: 100%;
  }

  .stats-filter .period-switch button {
    flex: 1;
  }

  .stats-date-selects select {
    flex: 1;
    min-width: 0;
  }

  .finance-stats-filter {
    width: 100%;
  }

  .chart-column {
    min-width: 34px;
  }
}

.platform-picker-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.platform-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.platform-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.platform-check span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #242424;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.platform-check span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.platform-check input:checked + span {
  color: #000;
  border-color: var(--lime);
  background: var(--lime);
}

.platform-check.primary span {
  cursor: default;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.image-drop input[type="file"] {
  display: none;
}

.image-drop {
  cursor: copy;
  outline: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.image-drop:focus,
.image-drop.dragging {
  border-color: var(--lime);
  background: rgba(30, 215, 96, .09);
  box-shadow: 0 0 0 4px rgba(30, 215, 96, .12);
}

#imagePrompt {
  padding: 18px;
  pointer-events: none;
}

.image-file-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 13px;
  color: #000;
  border-radius: 999px;
  background: var(--lime);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  pointer-events: auto;
}

.image-change-hint {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  color: #07120b;
  border-radius: 999px;
  background: #1ed760;
  box-shadow: 0 5px 18px rgba(0,0,0,.35);
  pointer-events: none;
  font-size: 10px;
  font-weight: 900;
}

.sold-card-date {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
}

.platform-tag {
  color: color-mix(in srgb, var(--platform-color) 78%, white);
  border-color: color-mix(in srgb, var(--platform-color) 46%, transparent);
  background: color-mix(in srgb, var(--platform-color) 14%, transparent);
}
.platform-tag i { margin-right: 5px; font-style: normal; }

.platform-style-row { grid-template-columns: 34px 1fr auto auto auto; }
.platform-style-preview {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--platform-color) 65%, white);
  border-radius: 10px;
  background: var(--platform-color);
  box-shadow: 0 0 16px color-mix(in srgb, var(--platform-color) 32%, transparent);
  font-style: normal;
  font-weight: 900;
}
.compact-color input { width: 35px; height: 30px; padding: 2px; cursor: pointer; }
.platform-style-row select { width: 52px; min-height: 32px; padding: 4px; }

.sales-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.sales-pagination button {
  min-width: 34px;
  min-height: 34px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #202020;
}
.sales-pagination button.active {
  color: #07120b;
  border-color: #1ed760;
  background: #1ed760;
}
.sales-pagination button:disabled { opacity: .35; cursor: default; }

.item-card .status-sold,
.detail-wrap .status-sold {
  padding: 7px 11px;
  color: #07120b;
  border: 1px solid #7dffa8;
  background: #1ed760;
  box-shadow: 0 0 0 3px rgba(30, 215, 96, .18), 0 5px 22px rgba(30, 215, 96, .42);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  opacity: 1;
}

.stale-alerts {
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 184, 77, .32);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 184, 77, .12), #181818 72%);
}
.stale-alert-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
}
.stale-alert-heading strong,
.stale-alert-heading small,
.stale-alert-row strong,
.stale-alert-row small { display: block; }
.stale-alert-heading small,
.stale-alert-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.stale-alert-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #171006;
  border-radius: 50%;
  background: #ffb84d;
  font-size: 20px;
  font-weight: 950;
}
.stale-alert-list { border-top: 1px solid rgba(255, 184, 77, .18); }
.stale-alert-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 14px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.stale-alert-row:first-child { border-top: 0; }
.stale-alert-row img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; }
.stale-alert-row button {
  min-height: 34px;
  padding: 0 11px;
  color: #171006;
  border: 0;
  border-radius: 8px;
  background: #ffb84d;
  font-size: 10px;
  font-weight: 900;
}
@media (max-width: 600px) {
  .stale-alert-row { grid-template-columns: 38px 1fr; }
  .stale-alert-row img { width: 38px; height: 38px; }
  .stale-alert-row button { grid-column: 1 / -1; width: 100%; }
}

.category-picker-field > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.category-picker-field > span small { font-weight: 600; }
.category-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.category-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.category-check span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  color: #c7c7c7;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #242424;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.category-check input:checked + span {
  color: #07120b;
  border-color: #75ef9b;
  background: #1ed760;
  box-shadow: 0 0 16px rgba(30, 215, 96, .18);
}

.chart-tooltip {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: calc(100% - 12px);
  display: grid;
  width: 168px;
  gap: 5px;
  padding: 10px 11px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(8, 8, 8, .96);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 5px);
  transition: opacity .15s ease, transform .15s ease;
  font-size: 10px;
}
.chart-tooltip span { display: flex; justify-content: space-between; color: #aaa; }
.chart-tooltip b { color: #fff; }
.chart-column:hover .chart-tooltip,
.chart-column:focus .chart-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.platform-chart-row { align-items: center; }
.platform-chart-row > span:nth-child(2) { min-width: 0; }
.platform-chart-row b, .platform-chart-row small { display: block; }
.platform-mini-bars {
  display: grid;
  gap: 3px;
  width: 100%;
  margin-top: 7px;
}
.platform-mini-bars i {
  display: block;
  min-width: 3px;
  height: 5px;
  border-radius: 999px;
}
.platform-mini-bars i.profit {
  background: #1ed760;
  box-shadow: 0 0 8px rgba(30,215,96,.25);
}
.platform-values {
  min-width: 130px;
  text-align: right;
}
.platform-values strong { color: #65ec90; }

@media (max-width: 700px) {
  .chart-tooltip { width: 145px; }
  .platform-values { min-width: 105px; }
  .category-check span { min-height: 38px; }
}

/* Prevent horizontal page drift */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
main,
.view,
.panel,
.topbar,
.dashboard-grid,
.metric-grid,
.toolbar,
.form-grid,
.advanced-grid,
.modal-heading,
.modal-actions,
.platform-checkboxes,
.category-checkboxes,
.settings-actions,
.inventory-grid,
.item-platform-bar,
.overview-chips {
  min-width: 0;
}
dialog {
  max-width: calc(100vw - 24px);
}
dialog form,
.detail-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.form-grid input,
.form-grid select,
.form-grid textarea,
.inline-form input,
.inline-form select,
.secondary-button,
.primary-button,
.danger-button,
.file-button {
  max-width: 100%;
}
.platform-checkboxes,
.category-checkboxes,
.settings-actions,
.modal-actions {
  flex-wrap: wrap;
}
.platform-check,
.category-check {
  max-width: 100%;
}
.platform-check span,
.category-check span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 760px) {
  main {
    max-width: 100vw;
  }
  dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }
  .modal-heading {
    gap: 10px;
  }
  .modal-heading h2 {
    overflow-wrap: anywhere;
  }
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .modal-actions button,
  .modal-actions a {
    width: 100%;
    justify-content: center;
  }
  .platform-checkboxes,
  .category-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .platform-check span,
  .category-check span {
    justify-content: center;
  }
}

.cleanup-checklist {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(255, 184, 77, .32);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 184, 77, .13), rgba(30, 215, 96, .06));
}
.cleanup-checklist h3 {
  margin: 0;
  font-size: 15px;
}
.cleanup-checklist p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.cleanup-checklist div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-actions .sold-action-button {
  color: #07120b;
  border-color: #67f395;
  background: #1ed760;
}
.detail-actions .template-action-button,
.detail-actions .copy-template-button {
  color: #171006;
  border-color: rgba(255, 184, 77, .55);
  background: #ffb84d;
}
.template-strip {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #181818;
}
.template-strip-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.template-strip-head strong,
.template-strip-head small {
  display: block;
}
.template-strip-head strong {
  margin-top: 2px;
  font-size: 13px;
}
.template-strip-head small {
  color: var(--muted);
  font-size: 10px;
}
.template-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.template-chips::-webkit-scrollbar { display: none; }
.template-chip {
  display: grid;
  grid-template-columns: 24px minmax(90px, 1fr);
  align-items: center;
  min-width: 165px;
  gap: 2px 8px;
  padding: 8px 10px;
  color: var(--ink);
  border: 1px solid rgba(255, 184, 77, .24);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 184, 77, .11), #242424);
  text-align: left;
}
.template-chip > span {
  grid-row: 1 / 3;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #171006;
  border-radius: 8px;
  background: #ffb84d;
  font-weight: 900;
}
.template-chip strong,
.template-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.template-chip strong { font-size: 11px; }
.template-chip small {
  color: var(--muted);
  font-size: 9px;
}
.template-empty {
  color: var(--muted);
  font-size: 11px;
}
.modal-template-picker {
  margin-bottom: 14px;
}
.modal-template-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.modal-template-heading small {
  color: var(--muted);
  font-size: 10px;
}
.modal-templates {
  padding-bottom: 2px;
}
.compact-manager {
  max-height: 235px;
  overflow-y: auto;
  padding-right: 3px;
}
.compact-manager .platform-manage-row {
  min-height: 42px;
  padding: 8px;
}
.template-manage-row {
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
}
.template-manage-row button:first-of-type {
  color: #07120b;
  border: 1px solid rgba(30, 215, 96, .35);
  border-radius: 8px;
  background: #1ed760;
  padding: 6px 9px;
}
@media (max-width: 760px) {
  .template-strip {
    padding: 11px;
  }
  .template-strip-head {
    align-items: start;
  }
  .template-chip {
    min-width: 148px;
  }
  .template-manage-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .template-manage-row button {
    grid-column: 2 / -1;
    width: 100%;
    min-height: 32px;
    border-radius: 8px;
  }
}

/* Cloud/mobile polish */
.profile-settings {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: center;
}
.profile-settings strong,
.profile-settings small { display: block; }
.profile-settings small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.profile-photo-picker {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  overflow: hidden;
  color: #000;
  border: 1px solid rgba(30, 215, 96, .35);
  border-radius: 19px;
  background: var(--lime);
  cursor: pointer;
  font-size: 25px;
  font-weight: 950;
}
.profile-photo-picker input { display: none; }
.profile-photo-picker img,
.profile-nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  overflow: hidden;
  color: #000;
  border-radius: 50%;
  background: var(--lime);
  font-size: 11px !important;
  font-weight: 950;
}
.item-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}
.item-card-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
}
.item-card-body h3 {
  min-height: 36px;
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.item-card .item-tags {
  min-height: 58px;
  max-height: 58px;
  overflow: hidden;
  align-content: start;
}
.item-card-price { margin-top: auto; }
.chart {
  padding-top: 28px;
}
.chart-column em {
  top: 4px;
}
.platform-chart-row {
  min-height: 46px;
}
@media (max-width: 760px) {
  .mobile-nav {
    grid-template-columns: repeat(5, 1fr);
  }
  .mobile-nav .mobile-add {
    grid-column: 3;
  }
  .pulse-panel .platform-list {
    display: grid;
  }
  .platform-values {
    min-width: 96px;
  }
  .platform-values small {
    font-size: 9px;
  }
  .platform-values strong {
    font-size: 11px;
  }
  .item-card-body {
    min-height: 218px;
  }
  .item-card .item-tags {
    min-height: 54px;
    max-height: 54px;
  }
  .item-card-meta {
    min-height: 28px;
  }
  .chart {
    height: 142px;
    padding-top: 32px;
  }
  .chart-tooltip {
    bottom: calc(100% - 4px);
  }
}

/* Settings cleanup */
.settings-grid {
  align-items: start;
}
.settings-grid .panel {
  min-width: 0;
}
#settingsView .inline-form {
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: center;
}
#platformForm {
  grid-template-columns: minmax(150px, 1fr) 48px 62px auto;
}
#settingsView .inline-form input,
#settingsView .inline-form select {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #242424;
}
#settingsView .settings-actions {
  flex-wrap: wrap;
  align-items: center;
}
#settingsView .settings-actions > * {
  min-height: 40px;
}
#clearDataBtn {
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 850;
}
.platform-manage-row {
  min-width: 0;
}
.platform-manage-row span {
  min-width: 0;
}
.platform-manage-row strong,
.platform-manage-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.platform-style-row {
  grid-template-columns: 34px minmax(0, 1fr) 42px 58px auto;
}
.platform-style-row button {
  justify-self: end;
}
@media (max-width: 760px) {
  .profile-settings {
    grid-template-columns: 58px 1fr;
    gap: 12px;
  }
  .profile-photo-picker {
    width: 56px;
    height: 56px;
    border-radius: 17px;
  }
  #settingsView .inline-form,
  #platformForm {
    grid-template-columns: 1fr;
  }
  #settingsView .inline-form .primary-button {
    width: 100%;
  }
  #settingsView .settings-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  #settingsView .settings-actions > * {
    width: 100%;
    justify-content: center;
  }
  .platform-style-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
  .platform-style-row .compact-color,
  .platform-style-row select,
  .platform-style-row button {
    grid-column: 2 / -1;
    width: 100%;
  }
  .platform-style-row .compact-color input,
  .platform-style-row select {
    width: 100%;
  }
  .platform-style-row button {
    justify-self: stretch;
    min-height: 34px;
    border: 1px solid rgba(255, 76, 119, .2);
    border-radius: 9px;
    background: rgba(255, 76, 119, .07);
  }
  .mobile-nav {
    position: fixed !important;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateZ(0);
  }
  #settingsView {
    padding-bottom: 86px;
  }
}
