/* Scoped Sizing, Local Hardware & Cloud Cost Calculator styles for oswarm.ai/sizing/ */
.sz-hero .sz-hero-actions {
  margin-top: 28px;
  gap: 12px;
}

.sz-section {
  --sz-bg: #f1f5f8;
  --sz-surface: #ffffff;
  --sz-surface-alt: #f7fafc;
  --sz-border: #d8e1ea;
  --sz-border-strong: #bccad8;
  --sz-text: #080f1b;
  --sz-muted: #4b5968;
  --sz-soft: #64748b;
  --sz-accent: #17685c;
  --sz-accent-soft: #e6f5f1;
  --sz-accent-border: #8fd2c4;
  --sz-blue: #1d5fd6;
  --sz-blue-soft: #ebf2ff;
  --sz-blue-border: #9ec0ff;
  --sz-amber: #a15207;
  --sz-amber-soft: #fef3c7;
  --sz-shadow: 0 8px 24px rgba(8, 15, 27, 0.05);
  background: var(--sz-bg);
  color: var(--sz-text);
  padding-block: 36px 76px;
  border-top: 1px solid var(--sz-border);
}

.sz-section[data-sz-theme="dark"] {
  --sz-bg: #0b1422;
  --sz-surface: #101b29;
  --sz-surface-alt: #152336;
  --sz-border: #23364e;
  --sz-border-strong: #344f73;
  --sz-text: #f1f5f9;
  --sz-muted: #c2cedb;
  --sz-soft: #8fa1b5;
  --sz-accent: #6ddfcb;
  --sz-accent-soft: rgba(109, 223, 203, 0.13);
  --sz-accent-border: rgba(109, 223, 203, 0.45);
  --sz-blue: #6ddfcb;
  --sz-blue-soft: rgba(109, 223, 203, 0.14);
  --sz-blue-border: rgba(109, 223, 203, 0.48);
  --sz-amber: #fbbf24;
  --sz-amber-soft: rgba(251, 191, 36, 0.15);
  --sz-shadow: 0 14px 34px rgba(2, 6, 23, 0.42);
}

.sz-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 24px;
  align-items: start;
}

.sz-panel {
  background: var(--sz-surface);
  border: 1px solid var(--sz-border);
  border-radius: 12px;
  box-shadow: var(--sz-shadow);
  padding: 20px 22px;
  margin-bottom: 18px;
}

.sz-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 14px;
}

.sz-head-tight { margin-bottom: 10px; }
.sz-head-bom { margin-bottom: 8px; }

.sz-section .sz-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--sz-text);
}

.sz-section .sz-head-bom h2 { font-size: 14px; }

.sz-head span {
  font-size: 12.5px;
  color: var(--sz-muted);
}

.sz-preset-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 10px;
}

.sz-preset-card {
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--sz-border);
  background: var(--sz-surface-alt);
  color: var(--sz-text);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.sz-preset-card:hover { border-color: var(--sz-accent-border); }

.sz-preset-card.active {
  background: var(--sz-accent-soft);
  border-color: var(--sz-accent);
}

.sz-preset-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.sz-preset-name {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sz-badge {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sz-accent-soft);
  color: var(--sz-accent);
  white-space: nowrap;
  align-self: flex-start;
  flex-shrink: 0;
}

.sz-preset-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--sz-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sz-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 10px;
}

.sz-mode-card {
  border: 1px solid var(--sz-border);
  background: var(--sz-surface-alt);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.15s ease;
}

.sz-mode-card:hover { border-color: var(--sz-accent-border); }

.sz-mode-card.active {
  background: var(--sz-accent-soft);
  border-color: var(--sz-accent);
}

.sz-mode-card input { display: none; }

.sz-addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.sz-addon-card {
  border: 1px solid var(--sz-border);
  background: var(--sz-surface-alt);
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.sz-addon-card:hover { border-color: var(--sz-accent-border); }

.sz-addon-card.active {
  background: var(--sz-accent-soft);
  border-color: var(--sz-accent);
}

.sz-addon-card input {
  margin-top: 3px;
  accent-color: var(--sz-accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.sz-addon-body { flex: 1; min-width: 0; }

.sz-addon-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sz-addon-sub {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--sz-muted);
  margin-top: 3px;
}

.sz-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.sz-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sz-cat-tab {
  border: 1px solid var(--sz-border);
  background: var(--sz-surface-alt);
  color: var(--sz-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.sz-cat-tab:hover { border-color: var(--sz-accent-border); color: var(--sz-text); }

.sz-cat-tab.active {
  background: var(--sz-accent);
  border-color: var(--sz-accent);
  color: #fff;
}

.sz-section[data-sz-theme="dark"] .sz-cat-tab.active { color: #080f1b; }

.sz-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sz-search-input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--sz-border-strong);
  background: var(--sz-surface);
  color: var(--sz-text);
  font-size: 13px;
  min-width: 230px;
}

.sz-cat-group { margin-top: 18px; }

.sz-cat-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--sz-border);
}

.sz-section .sz-cat-group-head h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--sz-text);
}

.sz-cat-group-actions { display: flex; gap: 10px; }

.sz-link-btn {
  background: none;
  border: none;
  color: var(--sz-accent);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}

.sz-link-btn:hover { text-decoration: underline; }

.sz-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 10px;
}

.sz-app-card {
  border: 1px solid var(--sz-border);
  background: var(--sz-surface-alt);
  border-radius: 10px;
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.12s ease;
}

.sz-app-card:hover { border-color: var(--sz-accent-border); }

.sz-app-card.selected {
  background: var(--sz-blue-soft);
  border-color: var(--sz-blue-border);
}

.sz-app-card.auto-dep {
  background: var(--sz-accent-soft);
  border-color: var(--sz-accent-border);
}

.sz-app-card input {
  margin-top: 3px;
  accent-color: var(--sz-accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.sz-app-info { flex: 1; min-width: 0; }

.sz-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sz-app-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sz-app-pkg-size {
  font-size: 11px;
  color: var(--sz-soft);
  white-space: nowrap;
}

.sz-app-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--sz-muted);
  margin: 4px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sz-chip-row { display: flex; flex-wrap: wrap; gap: 5px; }

.sz-chip {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--sz-border);
  background: var(--sz-surface);
  color: var(--sz-muted);
}

.sz-chip-shared {
  background: var(--sz-accent-soft);
  border-color: var(--sz-accent-border);
  color: var(--sz-accent);
}

.sz-chip-new {
  background: var(--sz-amber-soft);
  border-color: transparent;
  color: var(--sz-amber);
}

.sz-summary-col {
  position: sticky;
  top: 84px;
}

.sz-host-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--sz-surface-alt);
  padding: 4px;
  border-radius: 9px;
  border: 1px solid var(--sz-border);
  margin-bottom: 14px;
}

.sz-host-toggle button {
  border: none;
  background: transparent;
  color: var(--sz-muted);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.sz-host-toggle button.active {
  background: var(--sz-accent);
  color: #fff;
}

.sz-section[data-sz-theme="dark"] .sz-host-toggle button.active { color: #080f1b; }

.sz-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.sz-kpi-box {
  background: var(--sz-surface-alt);
  border: 1px solid var(--sz-border);
  border-radius: 10px;
  padding: 11px 12px;
}

.sz-kpi-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sz-soft);
}

.sz-kpi-val {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 3px;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.sz-kpi-sub {
  font-size: 11px;
  color: var(--sz-muted);
  margin-top: 3px;
}

.sz-dedupe-banner {
  background: var(--sz-accent-soft);
  border: 1px solid var(--sz-accent-border);
  color: var(--sz-accent);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
}

.sz-stack-bar {
  height: 13px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: var(--sz-surface-alt);
  border: 1px solid var(--sz-border);
  margin-bottom: 10px;
}

.sz-seg-core { background: #17685c; }
.sz-seg-apps { background: #0ea5e9; }
.sz-seg-engines { background: #f59e0b; }
.sz-seg-addons { background: #10b981; }
.sz-seg-ai { background: #8b5cf6; }

.sz-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
  font-size: 11.5px;
  color: var(--sz-muted);
  margin-bottom: 14px;
}

.sz-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sz-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.sz-hw-card {
  background: var(--sz-blue-soft);
  border: 1px solid var(--sz-blue-border);
  border-radius: 10px;
  padding: 12px 13px;
  margin-bottom: 14px;
}

.sz-hw-title {
  font-size: 11px;
  font-weight: 900;
  color: var(--sz-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sz-hw-tier {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 4px;
}

.sz-hw-detail {
  font-size: 12px;
  line-height: 1.45;
  color: var(--sz-muted);
  margin-top: 4px;
}

.sz-hw-compare {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--sz-blue-border);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sz-text);
}

.sz-cloud-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}

.sz-cloud-row {
  background: var(--sz-surface);
  border: 1px solid var(--sz-border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sz-cloud-prov {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.sz-cloud-sku {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sz-accent);
}

.sz-cloud-spec {
  font-size: 11px;
  color: var(--sz-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.sz-cloud-price {
  text-align: right;
  white-space: nowrap;
}

.sz-cloud-mo {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.sz-cloud-res {
  font-size: 10.5px;
  color: var(--sz-soft);
  margin-top: 2px;
}

.sz-cloud-note {
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--sz-muted);
  margin-top: 8px;
}

.sz-bom-list {
  border-top: 1px solid var(--sz-border);
  padding-top: 10px;
  max-height: 270px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sz-bom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}

.sz-bom-name { font-weight: 700; line-height: 1.3; }
.sz-bom-meta { font-size: 11px; color: var(--sz-soft); line-height: 1.35; margin-top: 1px; }
.sz-bom-size { font-weight: 800; white-space: nowrap; }

@media (max-width: 1080px) {
  .sz-shell { grid-template-columns: 1fr; }
  .sz-summary-col { position: static; order: -1; }
}

@media (max-width: 600px) {
  .sz-panel { padding: 16px; }
  .sz-search-row, .sz-search-input { width: 100%; min-width: 0; }
  .sz-kpi-grid, .sz-legend { grid-template-columns: 1fr; }
}
