:root {
  color-scheme: dark;
  --bg: #090e13;
  --bg-raised: #0c1218;
  --surface: #101820;
  --surface-2: #151f29;
  --surface-hover: #192631;
  --border: #22303b;
  --border-strong: #30424f;
  --text: #edf3f5;
  --text-muted: #8fa0aa;
  --text-subtle: #657680;
  --accent: #35d6a0;
  --accent-hover: #54e2b4;
  --accent-soft: rgba(53, 214, 160, .12);
  --success: #35d6a0;
  --warning: #f2b84b;
  --danger: #ee6b78;
  --danger-soft: rgba(238, 107, 120, .12);
  --info: #65a8ff;
  --radius-sm: 7px;
  --radius: 11px;
  --radius-lg: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --header-height: 60px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

.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;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(9, 14, 19, .92);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1480px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 9px;
  display: grid;
  gap: 4px;
  background: var(--accent-soft);
  border: 1px solid rgba(53, 214, 160, .3);
}

.brand-mark span {
  display: block;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
}

.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 14px; letter-spacing: -.01em; }
.brand-copy small { color: var(--text-subtle); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

.primary-nav {
  display: flex;
  align-self: stretch;
  gap: 4px;
}

.primary-nav a {
  position: relative;
  padding: 0 13px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.primary-nav a:hover { color: var(--text); }
.primary-nav a.active { color: var(--text); }
.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pill {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-subtle);
}

.status-healthy .status-dot { background: var(--success); box-shadow: 0 0 0 3px var(--accent-soft); }
.status-healthy .status-label { color: var(--success); }
.status-degraded .status-dot { background: var(--warning); }
.status-degraded .status-label { color: var(--warning); }

.app-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.app-page { min-height: calc(100vh - var(--header-height) - 48px); }

.page-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.compact-heading { margin-bottom: 14px; }
.eyebrow { margin: 0 0 4px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 3px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.035em; }
h2 { margin-bottom: 4px; font-size: 18px; letter-spacing: -.02em; }
h3 { margin-bottom: 3px; font-size: 14px; }
.page-subtitle { margin: 0; color: var(--text-muted); font-size: 13px; }

.button,
.icon-button,
.text-button {
  border: 0;
  cursor: pointer;
}

.button {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #052019;
  text-decoration: none;
  font-weight: 750;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}

.button:hover { background: var(--accent-hover); }
.button:active { transform: translateY(1px); }
.button-small { min-height: 34px; padding: 0 11px; font-size: 12px; }
.button-secondary { border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); }
.button-secondary:hover { background: var(--surface-hover); }
.button-danger { border: 1px solid rgba(238, 107, 120, .35); background: var(--danger-soft); color: var(--danger); }
.text-button { padding: 7px 4px; background: transparent; color: var(--text-muted); font-size: 12px; }
.text-button:hover { color: var(--text); }
.icon-button { width: 34px; height: 34px; border-radius: var(--radius-sm); background: transparent; color: var(--text-muted); }
.icon-button:hover { background: var(--surface-hover); color: var(--text); }

.metrics-grid {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.metric {
  min-height: 66px;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 9px;
  align-items: center;
  border-right: 1px solid var(--border);
}

.metric:last-child { border-right: 0; }
.metric-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--bg-raised); color: var(--text-muted); font-size: 13px; }
.metric strong { display: block; font-size: 19px; line-height: 1.1; letter-spacing: -.03em; }
.metric span:last-child { color: var(--text-muted); font-size: 11px; }
.metric.positive .metric-icon { background: var(--accent-soft); color: var(--success); }
.metric.warning .metric-icon { background: rgba(242, 184, 75, .1); color: var(--warning); }
.metric-skeleton { height: 66px; border-right: 1px solid var(--border); background: linear-gradient(90deg, transparent, rgba(255,255,255,.025), transparent); }

.workspace-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .02);
  overflow: hidden;
}

.workspace-heading {
  padding: 14px 16px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.workspace-heading h2 { margin: 0; }
.workspace-heading p { margin: 1px 0 0; color: var(--text-muted); font-size: 12px; }
.sort-control { min-width: 172px; }

.field,
.sort-control {
  display: grid;
  gap: 5px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
}

input,
select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--bg-raised);
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder { color: var(--text-subtle); }
input:hover, select:hover { border-color: var(--border-strong); }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.filter-panel {
  margin: 0 16px 12px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.filter-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(5, minmax(120px, 1fr));
  gap: 9px;
}

.input-with-icon,
.input-prefix { position: relative; display: block; }
.input-with-icon > span,
.input-prefix > span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-subtle); pointer-events: none; }
.input-with-icon input { padding-left: 30px; }
.input-prefix input { padding-left: 26px; }

.filter-actions { min-height: 29px; padding-top: 9px; display: flex; align-items: center; gap: 12px; }
.count-badge { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--accent); color: #052019; font-size: 10px; }
.advanced-filters { padding-top: 10px; display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; border-top: 1px solid var(--border); }

.checkbox-field { min-height: 36px; display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; cursor: pointer; }
.checkbox-field input { width: 16px; height: 16px; accent-color: var(--accent); }

.table-wrap { width: 100%; overflow-x: auto; }
.offers-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.offers-table th { height: 36px; padding: 0 14px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text-subtle); background: var(--bg-raised); text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.offers-table th:nth-child(1) { width: 29%; }
.offers-table th:nth-child(2) { width: 7%; }
.offers-table th:nth-child(3) { width: 21%; }
.offers-table th:nth-child(4) { width: 15%; }
.offers-table th:nth-child(5) { width: 10%; }
.offers-table th:nth-child(6) { width: 13%; }
.offers-table th:nth-child(7) { width: 5%; }
.offers-table td { height: 62px; padding: 8px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.offers-table tbody tr { cursor: pointer; transition: background .12s ease; }
.offers-table tbody tr:hover { background: var(--surface-hover); }
.offers-table tbody tr:last-child td { border-bottom: 0; }
.offers-table tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cpu-cell strong { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.cpu-cell small, .storage-cell small, .location-cell small { display: block; margin-top: 3px; color: var(--text-subtle); font-size: 10px; }
.ram-cell strong, .storage-cell strong { font-size: 12px; }
.badge-row { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.badge { padding: 2px 6px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-muted); background: var(--bg-raised); font-size: 9px; font-weight: 750; letter-spacing: .03em; }
.badge-nvme { border-color: rgba(101, 168, 255, .3); color: var(--info); background: rgba(101, 168, 255, .08); }
.badge-ecc { border-color: rgba(174, 123, 255, .3); color: #bd94ff; background: rgba(174, 123, 255, .08); }
.badge-new, .badge-drop { border-color: rgba(53, 214, 160, .28); color: var(--success); background: var(--accent-soft); }
.price-column, .price-cell { text-align: right !important; }
.price-cell strong { font-size: 16px; letter-spacing: -.02em; }
.price-cell small { color: var(--text-subtle); font-size: 10px; }
.drop-value { color: var(--success); font-size: 11px; font-weight: 700; }
.no-change { color: var(--text-subtle); }
.row-arrow { color: var(--text-subtle); font-size: 18px; }
.table-message { height: 180px !important; color: var(--text-muted); text-align: center; cursor: default; }

.empty-state { max-width: 560px; margin: 70px auto; padding: 28px; text-align: center; }
.empty-state p { color: var(--text-muted); }
.empty-icon { width: 46px; height: 46px; margin: 0 auto 13px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 13px; color: var(--accent); background: var(--surface-2); font-size: 23px; }
.compact-empty { margin: 30px auto; }
.alerts-list { padding: 8px; }
.alert-row { padding: 13px 12px; display: grid; grid-template-columns: minmax(160px, 1.2fr) 2.2fr .8fr .8fr auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--border); }
.alert-row:last-child { border-bottom: 0; }
.alert-name strong { display: block; }
.alert-name small, .alert-criteria, .alert-meta { color: var(--text-muted); font-size: 12px; }
.alert-actions { display: flex; gap: 5px; }
.state-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 11px; font-weight: 700; }
.state-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-subtle); }
.state-badge.active { color: var(--success); }
.state-badge.active::before { background: var(--success); }

.auth-card { width: min(400px, 100%); margin: 60px auto; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.auth-card > p { color: var(--text-muted); }
.auth-icon { width: 44px; height: 44px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 22px; }
.stack-form { display: grid; gap: 12px; margin-top: 22px; text-align: left; }
.form-error { min-height: 18px; margin: 0; color: var(--danger); font-size: 12px; }

.admin-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
.settings-nav { align-self: start; padding: 6px; display: grid; gap: 3px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.settings-nav button { min-height: 38px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); text-align: left; cursor: pointer; }
.settings-nav button:hover { color: var(--text); background: var(--surface-hover); }
.settings-nav button.active { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 var(--accent); }
.settings-content { min-width: 0; }
.settings-section { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.section-header { min-height: 76px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.section-header h2, .section-header p { margin: 0; }
.section-header p { color: var(--text-muted); font-size: 12px; }
.settings-card { margin: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.operation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.operation-grid div span, .security-summary div span { display: block; color: var(--text-muted); font-size: 11px; }
.operation-grid div strong, .security-summary div strong { display: block; margin-top: 3px; }
.channel-list { padding: 12px; display: grid; gap: 10px; }
.channel-card { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.channel-heading { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; }
.channel-heading h3 { margin: 0; }
.channel-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; font-weight: 800; }
.channel-icon.telegram { color: #70c7ef; background: rgba(112, 199, 239, .1); }
.channel-icon.discord { color: #9ba7ff; background: rgba(155, 167, 255, .1); }
.channel-icon.webhook { color: var(--accent); background: var(--accent-soft); }
.config-status { color: var(--text-subtle); font-size: 11px; }
.config-status.configured { color: var(--success); }
.channel-fields { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; }
.channel-fields.two-columns { grid-template-columns: 1fr auto; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 34px; height: 19px; display: block; border-radius: 999px; background: var(--border-strong); cursor: pointer; transition: background .15s ease; }
.switch span::after { content: ""; width: 15px; height: 15px; margin: 2px; display: block; border-radius: 50%; background: var(--text-muted); transition: transform .15s ease, background .15s ease; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(15px); background: #052019; }
.security-summary { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: 16px; }
.form-message { min-height: 20px; margin: 10px 2px; color: var(--success); font-size: 12px; }
.form-message.error { color: var(--danger); }

dialog { color: var(--text); }
dialog::backdrop { background: rgba(2, 6, 9, .76); backdrop-filter: blur(3px); }
.drawer-dialog { width: min(620px, 100%); max-width: none; height: 100%; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--border); background: var(--surface); }
.drawer-dialog[open] { animation: drawer-in .18s ease-out; }
.modal-dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.dialog-shell { position: relative; min-height: 100%; padding: 26px; }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 22px; }
.detail-header { padding-right: 40px; }
.detail-header h2 { margin-bottom: 6px; font-size: 22px; }
.detail-price { margin: 18px 0; display: flex; align-items: baseline; gap: 7px; }
.detail-price strong { font-size: 30px; letter-spacing: -.04em; }
.detail-price span { color: var(--text-muted); }
.detail-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.detail-spec { padding: 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-raised); }
.detail-spec span { display: block; color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.detail-spec strong { display: block; margin-top: 4px; font-size: 13px; overflow-wrap: anywhere; }
.history-section { margin-top: 22px; }
.price-chart { width: 100%; height: 120px; margin: 12px 0; display: block; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-raised); }
.history-list { margin: 0; padding: 0; list-style: none; }
.history-item { padding: 9px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.history-item:last-child { border-bottom: 0; }
.history-item span { color: var(--text-muted); font-size: 11px; }
.form-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.field-wide { grid-column: 1 / -1; }
.checkbox-grid { padding: 10px; display: flex; flex-wrap: wrap; gap: 8px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.form-footer { display: flex; justify-content: flex-end; gap: 8px; }

.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow); animation: toast-in .18s ease-out; }
.toast.error { border-color: rgba(238, 107, 120, .4); color: #ffacb5; }
.mobile-only { display: none; }

@keyframes drawer-in { from { transform: translateX(24px); opacity: .5; } }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1180px) {
  .filter-main { grid-template-columns: 1.5fr repeat(3, 1fr); }
  .filter-main .field:nth-child(5), .filter-main .field:nth-child(6) { grid-row: 2; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .metric:nth-child(3) { border-right: 0; }
  .metric:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 820px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .primary-nav { position: absolute; top: var(--header-height); left: 0; right: 0; height: auto; padding: 8px 16px 12px; display: none; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); }
  .primary-nav.open { display: flex; }
  .primary-nav a { min-height: 40px; display: flex; justify-content: flex-start; border-radius: 7px; }
  .primary-nav a.active { background: var(--surface-2); }
  .primary-nav a.active::after { display: none; }
  .mobile-only { display: inline-grid; place-items: center; }
  .app-shell { padding: 18px 16px; }
  .filter-main { grid-template-columns: repeat(2, 1fr); }
  .advanced-filters { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .settings-nav { display: flex; overflow-x: auto; }
  .settings-nav button { min-width: max-content; }
  .security-summary { grid-template-columns: repeat(2, 1fr); }
  .alert-row { grid-template-columns: 1fr 1.5fr .7fr auto; }
  .alert-meta { display: none; }
}

@media (max-width: 640px) {
  :root { --header-height: 56px; }
  .header-inner { padding: 0 12px; }
  .brand-copy small { display: none; }
  .status-pill { padding: 0 8px; }
  .status-label { font-size: 0; }
  .status-healthy .status-label::after { content: "Online"; font-size: 11px; }
  .status-degraded .status-label::after { content: "Atenção"; font-size: 11px; }
  .status-loading .status-label::after { content: "…"; font-size: 11px; }
  .app-shell { padding: 14px 10px; }
  .app-page { min-height: calc(100vh - var(--header-height) - 28px); }
  .page-heading { align-items: flex-start; margin-bottom: 14px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading .button { flex: 0 0 auto; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric { min-height: 58px; padding: 9px 10px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-last-child(-n+2) { border-bottom: 0; }
  .metric strong { font-size: 17px; }
  .workspace-heading { padding: 13px 12px 9px; align-items: flex-end; }
  .workspace-heading h2 { font-size: 16px; }
  .sort-control { min-width: 145px; }
  .filter-panel { margin: 0 9px 9px; padding: 9px; }
  .filter-main { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .advanced-filters { grid-template-columns: 1fr 1fr; }
  .offers-table, .offers-table tbody { display: block; }
  .offers-table thead { display: none; }
  .offers-table tr { min-height: 104px; padding: 11px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; border-bottom: 1px solid var(--border); }
  .offers-table td { height: auto; padding: 0; border: 0; }
  .cpu-cell { grid-column: 1; }
  .ram-cell { grid-column: 1; grid-row: 2; }
  .ram-cell::after { content: " RAM"; color: var(--text-subtle); font-size: 10px; }
  .storage-cell { grid-column: 1; grid-row: 3; }
  .location-cell { grid-column: 1; grid-row: 4; }
  .variation-cell { grid-column: 2; grid-row: 3; text-align: right; }
  .price-cell { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .price-cell strong { font-size: 18px; }
  .arrow-cell { grid-column: 2; grid-row: 4; text-align: right; }
  .table-message { display: block !important; padding: 50px 12px !important; }
  .alert-row { grid-template-columns: 1fr auto; gap: 8px; }
  .alert-criteria { grid-column: 1 / -1; }
  .alert-actions { grid-column: 1 / -1; }
  .channel-fields, .channel-fields.two-columns { grid-template-columns: 1fr; }
  .security-summary { grid-template-columns: 1fr; }
  .drawer-dialog { width: 100%; }
  .dialog-shell { padding: 22px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .checkbox-grid { grid-column: auto; }
  .form-footer { grid-column: auto; }
  .operation-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .brand-copy strong { font-size: 12px; }
  .filter-main, .advanced-filters { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .workspace-heading { align-items: stretch; flex-direction: column; gap: 8px; }
  .sort-control { width: 100%; }
  .metric { grid-template-columns: 22px 1fr; gap: 7px; }
  .metric-icon { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
