:root {
  --bg: #0b100f;
  --bg-soft: #111816;
  --panel: #151d1a;
  --panel-2: #1a2420;
  --ink: #edf4ed;
  --muted: #93a099;
  --line: rgba(237, 244, 237, 0.11);
  --green: #8de86d;
  --green-deep: #63c944;
  --cream: #f0f1e8;
  --dark-ink: #152019;
  --warning: #ffcf70;
  --danger: #ff817a;
  --radius: 22px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  position: fixed;
  z-index: 20;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 15;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(11, 16, 15, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand strong {
  color: var(--green);
  font-weight: 650;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  gap: 3px;
  width: 24px;
  height: 24px;
  padding: 4px;
  border: 1px solid rgba(141, 232, 109, 0.45);
  border-radius: 6px;
}

.brand-mark span {
  display: block;
  background: var(--green);
}

.brand-mark span:nth-child(1) { height: 7px; }
.brand-mark span:nth-child(2) { height: 13px; }
.brand-mark span:nth-child(3) { height: 10px; }

nav {
  display: flex;
  gap: 32px;
}

nav a,
.header-action {
  color: var(--muted);
  font-size: 14px;
  transition: color 160ms ease;
}

nav a:hover {
  color: var(--ink);
}

.header-action {
  padding-bottom: 3px;
  color: var(--ink);
  border-bottom: 1px solid var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
}

.header-account {
  min-height: 34px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid rgba(141, 232, 109, 0.32);
  border-radius: 18px;
  background: rgba(141, 232, 109, 0.06);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.header-account:hover {
  color: #132010;
  background: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  min-height: 675px;
  padding-block: 80px 72px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 24px;
  height: 1px;
  background: var(--green);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 26px;
  font-size: clamp(50px, 6.2vw, 88px);
  font-weight: 520;
  line-height: 0.97;
  letter-spacing: -0.065em;
}

h1 em {
  color: var(--green);
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 34px;
  color: #a8b4ad;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #142111;
  background: var(--green);
}

.button-primary:hover {
  background: #a0f484;
}

.button-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.button-ghost:hover {
  border-color: rgba(141, 232, 109, 0.45);
}

.source-note {
  max-width: 520px;
  margin: 24px 0 0;
  color: #68746d;
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-one {
  top: 35px;
  right: 5px;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle at 35% 35%, #b9ff9d, #6fdb4d 45%, #1b4c27 75%, transparent 76%);
  box-shadow: 0 0 130px rgba(104, 213, 72, 0.16);
}

.orb-two {
  bottom: 5px;
  left: 25px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(141, 232, 109, 0.2);
}

.machine-card {
  position: absolute;
  z-index: 2;
  top: 75px;
  right: 45px;
  width: 390px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(14, 22, 19, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transform: rotate(-3deg);
}

.machine-topline {
  display: flex;
  justify-content: space-between;
  color: #aab5ae;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.live-dot {
  color: var(--green);
}

.live-dot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.machine-score {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 25px 0;
}

.machine-score strong {
  font-family: Georgia, serif;
  font-size: 90px;
  font-weight: 400;
  line-height: 0.9;
}

.machine-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.machine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.machine-grid div {
  padding: 14px;
  background: rgba(10, 16, 14, 0.8);
}

.machine-grid span,
.machine-grid strong {
  display: block;
}

.machine-grid span {
  margin-bottom: 4px;
  color: #68746d;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.machine-grid strong {
  font-size: 14px;
}

.machine-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 18px;
}

.machine-bars span {
  position: relative;
  height: 4px;
  overflow: hidden;
  border-radius: 5px;
  background: #26312c;
}

.machine-bars span::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  border-radius: inherit;
  background: var(--green);
}

.floating-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  color: #d7e0da;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(14, 21, 19, 0.88);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  font-size: 11px;
  backdrop-filter: blur(12px);
}

.floating-note span {
  color: var(--green);
  font-family: Georgia, serif;
}

.note-a {
  top: 92px;
  left: 2px;
}

.note-b {
  right: 15px;
  bottom: 42px;
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: #0e1412;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 105px;
  padding: 32px 22px;
  border-left: 1px solid var(--line);
}

.trust-grid div:last-child {
  border-right: 1px solid var(--line);
}

.trust-grid strong {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
}

.trust-grid span {
  color: var(--muted);
  font-size: 12px;
}

.calculator-section,
.saved-section,
.method-section {
  padding-block: 110px;
}

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

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 4vw, 55px);
  font-weight: 520;
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-heading > p {
  max-width: 480px;
  margin-bottom: 2px;
  color: var(--muted);
}

.preset-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.preset-button {
  flex: 0 0 auto;
  padding: 11px 15px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  transition: all 160ms ease;
}

.preset-button:hover,
.preset-button.active {
  color: #142111;
  border-color: var(--green);
  background: var(--green);
}

.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 0.93fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.config-panel,
.result-panel {
  padding: 34px;
}

.config-panel {
  background: var(--panel);
}

.result-panel {
  background: #101714;
  border-left: 1px solid var(--line);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.panel-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 20px;
}

.step-number,
.method-index {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 14px;
}

.text-button {
  padding: 0;
  color: var(--muted);
  border: 0;
  border-bottom: 1px solid #526058;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.text-button:hover {
  color: var(--ink);
}

.text-button.danger:hover {
  color: var(--danger);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: block;
}

.field-wide {
  margin-bottom: 18px;
}

.component-catalog {
  position: relative;
  z-index: 5;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(141, 232, 109, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(141, 232, 109, 0.06), transparent 48%),
    #101613;
}

.catalog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.catalog-heading strong,
.catalog-heading span {
  display: block;
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.catalog-kicker {
  margin-bottom: 3px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.catalog-heading strong {
  font-size: 16px;
}

.catalog-actions > span {
  padding: 5px 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 9px;
  white-space: nowrap;
}

.catalog-price-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 0 9px;
  color: #142111;
  border: 1px solid var(--green);
  border-radius: 20px;
  background: var(--green);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.catalog-price-button b {
  display: grid;
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  place-items: center;
  color: var(--green);
  border-radius: 12px;
  background: #172316;
  font-size: 8px;
}

.component-price-hint {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-size: 8px;
}

.price-editor-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 5, 0.82);
  backdrop-filter: blur(10px);
}

.price-editor-backdrop[hidden] {
  display: none;
}

.price-editor {
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid rgba(141, 232, 109, 0.22);
  border-radius: 20px;
  background: #101613;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
}

.price-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 28px 20px;
  border-bottom: 1px solid var(--line);
}

.price-editor-header h2 {
  margin: 3px 0 6px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.price-editor-header p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.price-editor-close {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

.price-editor-close:hover {
  color: var(--ink);
  border-color: rgba(141, 232, 109, 0.35);
}

.price-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(141, 232, 109, 0.025);
}

.price-editor-toolbar .button {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 10px;
}

.price-file-status {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}

.price-file-status.dirty {
  color: var(--warning);
}

.price-file-status.saved {
  color: var(--green);
}

.price-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  min-height: 0;
  overflow: hidden;
}

.price-editor-main {
  min-width: 0;
  overflow-y: auto;
  padding: 24px 28px;
}

.price-search-block > label {
  display: block;
  margin-bottom: 7px;
  color: #91a097;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-search-row {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 8px;
}

.price-search-results {
  display: grid;
  gap: 5px;
  max-height: 195px;
  margin-top: 8px;
  overflow-y: auto;
}

.price-search-results[hidden] {
  display: none;
}

.price-search-option {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c120f;
  cursor: pointer;
  text-align: left;
}

.price-search-option:hover,
.price-search-option.selected {
  border-color: rgba(141, 232, 109, 0.36);
  background: rgba(141, 232, 109, 0.055);
}

.price-type-badge {
  display: inline-flex;
  justify-content: center;
  padding: 4px 6px;
  color: var(--green);
  border: 1px solid rgba(141, 232, 109, 0.16);
  border-radius: 5px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-search-option strong,
.price-search-option small {
  display: block;
}

.price-search-option strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-search-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.price-option-values {
  color: var(--green);
  font-size: 8px;
  text-align: right;
  white-space: nowrap;
}

.price-form {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #141c18;
}

.price-selected-component {
  margin-bottom: 16px;
}

.price-selected-component span,
.price-selected-component strong,
.price-selected-component small {
  display: block;
}

.price-selected-component span {
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-selected-component strong {
  margin: 4px 0 2px;
  font-size: 15px;
}

.price-selected-component small {
  color: var(--muted);
  font-size: 9px;
}

.price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.price-form-actions {
  display: flex;
  gap: 9px;
}

.price-note-pins {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 9px 0 14px;
}

.price-note-pins > span {
  margin-right: 2px;
  color: var(--muted);
  font-size: 11px;
}

.price-note-pins button {
  min-height: 29px;
  padding: 0 12px;
  color: #b8c3bc;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0d1310;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.price-note-pins button:hover,
.price-note-pins button.active {
  color: #142111;
  border-color: var(--green);
  background: var(--green);
}

.price-form-actions .button {
  flex: 1;
  min-height: 42px;
  font-size: 10px;
}

.custom-price-details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.custom-price-details summary {
  padding-top: 14px;
  color: var(--green);
  cursor: pointer;
  font-size: 10px;
}

.custom-price-form {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  margin-top: 13px;
}

.custom-price-form .button {
  grid-column: 1 / -1;
}

.price-list-panel {
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: #0d1310;
}

.price-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.price-list-heading span,
.price-list-heading strong {
  display: block;
}

.price-list-heading span {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.price-list-heading strong {
  margin-top: 2px;
  font-size: 12px;
}

.price-list-heading input {
  width: 170px;
  height: 37px;
  font-size: 9px;
}

.price-list {
  display: grid;
  align-content: start;
  gap: 6px;
  max-height: 545px;
  padding: 12px;
  overflow-y: auto;
}

.price-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #121915;
  cursor: pointer;
  text-align: left;
}

.price-list-item:hover,
.price-list-item.selected {
  border-color: rgba(141, 232, 109, 0.32);
}

.price-list-item strong,
.price-list-item small {
  display: block;
}

.price-list-item strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-list-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.price-list-values {
  display: grid;
  align-content: center;
  gap: 3px;
  font-size: 8px;
  text-align: right;
  white-space: nowrap;
}

.price-list-values b {
  color: var(--green);
}

.price-editor-footer {
  padding: 12px 28px;
  border-top: 1px solid var(--line);
  background: #0c120f;
}

.price-editor-footer p {
  margin: 0;
  color: #69756e;
  font-size: 8px;
}

.price-editor-footer code {
  color: #a7b4ac;
}

body.price-editor-open {
  overflow: hidden;
}

.component-picker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.component-picker {
  position: relative;
}

.component-picker > label {
  display: block;
  margin-bottom: 6px;
  color: #91a097;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.component-search-control {
  position: relative;
}

.component-search-control input {
  height: 46px;
  padding-right: 56px;
  background: #0c120f;
}

.component-search-control > span {
  position: absolute;
  top: 50%;
  right: 12px;
  padding: 3px 6px;
  color: var(--green);
  border: 1px solid rgba(141, 232, 109, 0.18);
  border-radius: 5px;
  pointer-events: none;
  transform: translateY(-50%);
  font-size: 8px;
  font-weight: 800;
}

.component-results {
  position: absolute;
  z-index: 20;
  top: 70px;
  right: 0;
  left: 0;
  max-height: 275px;
  overflow-y: auto;
  border: 1px solid rgba(141, 232, 109, 0.26);
  border-radius: 10px;
  background: #0c120f;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.42);
}

.component-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.component-result:last-child {
  border-bottom: 0;
}

.component-result:hover,
.component-result:focus-visible {
  outline: none;
  background: rgba(141, 232, 109, 0.08);
}

.component-result strong,
.component-result small {
  display: block;
  min-width: 0;
}

.component-result strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.component-result small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.component-result-info,
.component-result-summary {
  min-width: 0;
}

.component-result-summary {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.component-result-summary > b {
  color: var(--green);
  font-size: 11px;
  white-space: nowrap;
}

.component-result .component-price-hint {
  color: var(--green);
  font-size: 8px;
}

.component-price-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.component-selected-prices {
  margin-top: 9px;
}

.component-price-tag {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 7px;
  min-width: 128px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.component-price-tag small {
  color: #829087;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.component-price-tag b {
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.component-price-tag.used {
  border-color: rgba(141, 232, 109, 0.24);
  background: rgba(141, 232, 109, 0.055);
}

.component-price-tag.used b {
  color: var(--green);
}

.component-price-tags.compact {
  display: grid;
  gap: 3px;
}

.component-price-tags.compact .component-price-tag {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 116px;
  padding: 3px 7px;
  border-radius: 5px;
}

.component-price-tags.compact .component-price-tag small {
  margin: 0;
  font-size: 8px;
}

.component-price-tags.compact .component-price-tag b {
  font-size: 9px;
}

.component-empty {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-size: 10px;
}

.component-meta {
  display: block;
  min-height: 16px;
  margin-top: 5px;
  color: #66736b;
  font-size: 9px;
  line-height: 1.45;
}

.component-meta.selected {
  color: #a9b8af;
}

.manual-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.manual-divider span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual-divider small {
  color: #657169;
  font-size: 9px;
}

.field > span {
  display: block;
  margin-bottom: 8px;
  color: #91a097;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  height: 51px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: #101613;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus {
  border-color: rgba(141, 232, 109, 0.75);
  box-shadow: 0 0 0 3px rgba(141, 232, 109, 0.09);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 22px,
    calc(100% - 13px) 22px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.input-unit {
  position: relative;
}

.input-unit input {
  padding-right: 68px;
}

.input-unit small {
  position: absolute;
  top: 50%;
  right: 14px;
  color: #657169;
  pointer-events: none;
  transform: translateY(-50%);
}

.target-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: end;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(141, 232, 109, 0.16);
  border-radius: 12px;
  background: rgba(141, 232, 109, 0.04);
}

.target-answer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 51px;
}

.target-answer span {
  color: var(--muted);
  font-size: 11px;
}

.target-answer strong {
  color: var(--green);
  font-size: 19px;
}

.advanced {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.advanced summary {
  padding: 18px 0 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.advanced-grid {
  margin-top: 18px;
}

.confidence-pill {
  padding: 7px 10px;
  color: var(--green);
  border: 1px solid rgba(141, 232, 109, 0.22);
  border-radius: 20px;
  background: rgba(141, 232, 109, 0.05);
  font-size: 10px;
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.score-card {
  display: grid;
  grid-template-rows: auto minmax(76px, 1fr) auto;
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #151d1a;
}

.score-card.score-primary {
  color: var(--dark-ink);
  border-color: var(--green);
  background: var(--green);
}

.score-card > span,
.score-card > small {
  display: block;
}

.score-card > span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.score-card > strong {
  display: flex;
  align-items: center;
  margin: 7px 0 5px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 66px;
  font-weight: 350;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.score-card > small {
  opacity: 0.7;
  font-size: 11px;
  line-height: 1.4;
}

.verdict {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(255, 207, 112, 0.18);
  border-radius: 12px;
  background: rgba(255, 207, 112, 0.05);
}

.verdict.good {
  border-color: rgba(141, 232, 109, 0.18);
  background: rgba(141, 232, 109, 0.05);
}

.verdict-icon {
  display: grid;
  flex: 0 0 27px;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #211c10;
  border-radius: 50%;
  background: var(--warning);
  font-weight: 800;
}

.verdict.good .verdict-icon {
  background: var(--green);
}

.verdict strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.verdict p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.resource-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.resource-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 13px;
}

.resource-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b5c0b9;
  font-size: 12px;
}

.resource-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(141, 232, 109, 0.5);
}

.resource-item.limit .resource-label i {
  background: var(--warning);
  box-shadow: 0 0 10px rgba(255, 207, 112, 0.45);
}

.bar {
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: #25302b;
}

.bar span {
  display: block;
  width: var(--width);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.resource-item.limit .bar span {
  background: var(--warning);
}

.resource-value {
  min-width: 58px;
  text-align: right;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.resource-value strong {
  font-size: 15px;
}

.cpu-overload-card {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid rgba(141, 232, 109, 0.18);
  border-radius: 14px;
  background: rgba(141, 232, 109, 0.035);
}

.cpu-overload-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.cpu-overload-heading span,
.cpu-overload-heading strong {
  display: block;
}

.cpu-overload-heading > div > span {
  margin-bottom: 3px;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cpu-overload-heading strong {
  font-size: 14px;
}

.formula-badge {
  padding: 5px 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: Consolas, monospace;
  font-size: 8px;
  white-space: nowrap;
}

.cpu-overload-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cpu-overload-metrics > div {
  min-width: 0;
  padding: 11px;
  border-radius: 9px;
  background: #101613;
}

.cpu-overload-metrics span,
.cpu-overload-metrics strong {
  display: block;
}

.cpu-overload-metrics span {
  overflow: hidden;
  color: #6e7a72;
  font-size: 8px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.cpu-overload-metrics strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.cpu-overload-note {
  margin: 12px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.cpu-scenario-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.cpu-scenario-row {
  display: grid;
  grid-template-columns: 45px 66px 1fr 72px;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  color: #a9b5ae;
  font-size: 9px;
}

.cpu-scenario-row:last-child {
  border-bottom: 0;
}

.cpu-scenario-row.header {
  min-height: 29px;
  color: #626e67;
  background: rgba(0, 0, 0, 0.13);
  font-size: 8px;
  text-transform: uppercase;
}

.cpu-scenario-row strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cpu-scenario-row .scenario-good {
  color: var(--green);
}

.cpu-scenario-row .scenario-risk {
  color: var(--warning);
}

.throughput {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 26px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.throughput span,
.throughput strong {
  display: block;
}

.throughput > div > span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.throughput strong {
  margin-top: 5px;
  font-size: 20px;
}

.throughput-scale {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 34px;
}

.throughput-scale span {
  width: 7px;
  border-radius: 3px 3px 0 0;
  background: var(--green);
}

.throughput-scale span:nth-child(1) { height: 32%; opacity: 0.35; }
.throughput-scale span:nth-child(2) { height: 48%; opacity: 0.5; }
.throughput-scale span:nth-child(3) { height: 63%; opacity: 0.65; }
.throughput-scale span:nth-child(4) { height: 82%; opacity: 0.82; }
.throughput-scale span:nth-child(5) { height: 100%; }

.result-actions .button {
  flex: 1;
}

.saved-section {
  padding-top: 0;
}

.compact-heading {
  margin-bottom: 24px;
}

.saved-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.saved-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.saved-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.saved-card h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.saved-card p {
  color: var(--muted);
  font-size: 11px;
}

.saved-count {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.saved-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}

.saved-specs span {
  padding: 8px 10px;
  color: #afbbb4;
  border-radius: 7px;
  background: #101613;
  font-size: 10px;
}

.saved-actions {
  display: flex;
  gap: 12px;
}

.saved-actions button {
  color: var(--muted);
  border: 0;
  border-bottom: 1px solid #4c5951;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.saved-actions button:hover {
  color: var(--ink);
}

.cloud-section,
.moderation-section {
  padding-block: 86px;
}

.cloud-profile-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cloud-profile-line strong {
  font-size: 17px;
}

.cloud-profile-line span,
.cloud-status,
.verified-mark {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.cloud-profile-line span {
  color: var(--green);
  border: 1px solid rgba(141, 232, 109, 0.25);
}

.cloud-build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cloud-build-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}

.cloud-build-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cloud-build-top h3 {
  margin: 10px 0 4px;
  font-size: 18px;
}

.cloud-build-top p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.cloud-build-top > strong {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
  text-align: right;
}

.cloud-build-top > strong small {
  display: block;
  margin-top: 4px;
  font-family: Arial, sans-serif;
  font-size: 9px;
  text-transform: uppercase;
}

.cloud-status {
  color: #9da9a2;
  border: 1px solid var(--line);
  background: #101613;
}

.cloud-status.pending {
  color: var(--warning);
  border-color: rgba(239, 192, 76, 0.3);
}

.cloud-status.verified {
  color: var(--green);
  border-color: rgba(141, 232, 109, 0.3);
}

.cloud-status.rejected {
  color: #f08c83;
  border-color: rgba(240, 140, 131, 0.3);
}

.cloud-build-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 18px 0;
}

.cloud-build-specs span {
  padding: 8px;
  color: #aeb9b2;
  border-radius: 7px;
  background: #0e1411;
  font-size: 10px;
  text-align: center;
}

.cloud-review-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  color: #e4b1ab;
  border-left: 2px solid #dc766d;
  background: rgba(220, 118, 109, 0.05);
  font-size: 11px;
}

.cloud-build-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cloud-build-actions button,
.moderation-actions button {
  min-height: 31px;
  padding: 0 10px;
  color: #b2bdb6;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.cloud-build-actions button:hover,
.moderation-actions button:hover {
  color: var(--ink);
  border-color: rgba(141, 232, 109, 0.35);
}

.cloud-build-actions button.danger,
.moderation-actions button.reject {
  color: #dc8b84;
}

.cloud-empty,
.community-empty {
  margin: 0;
  padding: 28px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
}

.community-section {
  padding-block: 100px;
  color: var(--dark-ink);
  border-bottom: 1px solid #d8ddd3;
  background: var(--cream);
}

.community-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 10px;
  margin-bottom: 20px;
}

.community-filters input,
.community-filters select {
  height: 46px;
  color: #243029;
  border-color: #cdd5ca;
  background: #f4f5ef;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.community-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #d4dad0;
  border-radius: 15px;
  background: #f7f8f3;
}

.community-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.verified-mark {
  color: #2c5524;
  background: #d9efcf;
}

.community-card-heading > strong {
  color: #294a24;
  font-size: 24px;
}

.community-card-heading small {
  font-size: 10px;
}

.community-card h3 {
  margin: 17px 0 5px;
  color: #1d2821;
  font-size: 18px;
}

.community-card > p {
  color: #68746c;
  font-size: 10px;
}

.community-components {
  display: grid;
  gap: 5px;
  margin: 10px 0 16px;
}

.community-components span {
  overflow: hidden;
  color: #435148;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 17px;
}

.community-metrics span {
  padding: 8px;
  border-radius: 7px;
  background: #e9ede4;
}

.community-metrics small,
.community-metrics b {
  display: block;
}

.community-metrics small {
  color: #718076;
  font-size: 8px;
  text-transform: uppercase;
}

.community-metrics b {
  margin-top: 3px;
  color: #233128;
  font-size: 11px;
}

.community-card .button {
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  color: #27332a;
  border-color: #bec8bb;
}

.moderation-grid {
  display: grid;
  gap: 10px;
}

.moderation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.moderation-card span,
.moderation-card p {
  color: var(--muted);
  font-size: 10px;
}

.moderation-card h3 {
  margin: 5px 0;
  font-size: 16px;
}

.moderation-card p {
  margin-bottom: 0;
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.moderation-actions button.approve {
  color: var(--green);
}

.auth-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 7, 5, 0.85);
  backdrop-filter: blur(10px);
}

.auth-backdrop[hidden] {
  display: none;
}

.auth-dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid rgba(141, 232, 109, 0.24);
  border-radius: 18px;
  background: #111814;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.auth-dialog .price-editor-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.auth-dialog .eyebrow {
  margin-bottom: 12px;
}

.auth-dialog h2 {
  margin-bottom: 8px;
  font-size: 29px;
}

.auth-description {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 17px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0c120f;
}

.auth-tabs button {
  min-height: 35px;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.auth-tabs button.active {
  color: #142111;
  background: var(--green);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form .button {
  width: 100%;
  margin-top: 4px;
}

.auth-status {
  min-height: 18px;
  margin: 13px 0 0;
  color: var(--green);
  font-size: 11px;
  line-height: 1.45;
}

.auth-status.error {
  color: #ef948c;
}

body.auth-open {
  overflow: hidden;
}

.requirements-section {
  padding-block: 110px;
  color: var(--dark-ink);
  background: var(--cream);
}

.light-heading .eyebrow,
.light-heading > p {
  color: #657169;
}

.light-heading h2 {
  color: var(--dark-ink);
}

.vm-selector {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.vm-button {
  min-height: 62px;
  color: #59655e;
  border: 1px solid rgba(21, 32, 25, 0.14);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  transition: all 160ms ease;
}

.vm-button:hover,
.vm-button.active {
  color: var(--ink);
  border-color: var(--bg);
  background: var(--bg);
}

.requirement-card {
  display: grid;
  grid-template-columns: 0.78fr 2.22fr;
  overflow: hidden;
  margin-bottom: 26px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 25px 60px rgba(26, 40, 31, 0.15);
}

.requirement-intro {
  padding: 32px;
  color: var(--ink);
  border-right: 1px solid var(--line);
}

.requirement-intro > span {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.requirement-intro > strong {
  display: block;
  margin: 14px 0 16px;
  font-size: 22px;
}

.requirement-intro b {
  margin-right: 6px;
  font-family: Georgia, serif;
  font-size: 62px;
  font-weight: 400;
}

.requirement-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.requirement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.requirement-item {
  min-height: 145px;
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.requirement-item:nth-child(3n) {
  border-right: 0;
}

.requirement-item:nth-child(n+4) {
  border-bottom: 0;
}

.requirement-item span,
.requirement-item small {
  display: block;
}

.requirement-item span {
  color: #758079;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.requirement-item strong {
  display: block;
  margin: 11px 0 4px;
  color: var(--ink);
  font-size: 21px;
}

.requirement-item small {
  color: var(--muted);
  font-size: 10px;
}

.requirements-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(21, 32, 25, 0.12);
  border-radius: 14px;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(21, 32, 25, 0.1);
}

th {
  color: #67726b;
  background: #e6e8de;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.5);
}

td:first-child {
  font-weight: 800;
}

.table-status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 20px;
  color: #2c5524;
  background: #d9efcf;
  font-size: 9px;
  font-weight: 800;
}

.table-status.warn {
  color: #654918;
  background: #f2dfb5;
}

.table-status.risk {
  color: #6e3734;
  background: #f0cbc8;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.method-grid article {
  min-height: 290px;
  padding: 26px;
  background: var(--panel);
}

.method-grid h3 {
  margin: 35px 0 12px;
  font-size: 22px;
}

.method-grid p {
  min-height: 105px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.method-grid code {
  display: block;
  padding-top: 16px;
  color: var(--green);
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.reality-check {
  display: grid;
  grid-template-columns: 0.9fr 2.1fr;
  align-items: center;
  gap: 30px;
  margin-top: 18px;
  padding: 24px 28px;
  border: 1px solid rgba(141, 232, 109, 0.18);
  border-radius: 14px;
  background: rgba(141, 232, 109, 0.04);
}

.reality-check > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.reality-check ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 20px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  list-style: none;
}

.reality-check li::before {
  content: "+";
  margin-right: 7px;
  color: var(--green);
}

footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.7fr 0.3fr;
  align-items: center;
  gap: 30px;
  min-height: 150px;
}

.footer-inner p {
  margin: 0;
  color: #6c7871;
  font-size: 11px;
}

.footer-inner > a {
  justify-self: end;
  color: var(--muted);
  border-bottom: 1px solid #566159;
  font-size: 11px;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  padding: 13px 18px;
  color: #132010;
  border-radius: 9px;
  background: var(--green);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 12px;
  font-weight: 800;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Readability pass: the interface is often viewed on high-density displays. */
.price-autosave-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
}

.price-autosave-label span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(141, 232, 109, 0.6);
}

.price-file-status.saving {
  color: #d2d9d4;
}

.price-editor-header p,
.price-search-option strong {
  font-size: 12px;
}

.machine-grid span,
.catalog-actions > span,
.catalog-price-button,
.price-file-status,
.price-search-block > label,
.price-selected-component small,
.price-form-actions .button,
.custom-price-details summary,
.price-list-heading input,
.price-list-item strong,
.component-picker > label,
.component-result small,
.component-result > span,
.component-empty,
.component-meta,
.manual-divider small,
.formula-badge,
.cpu-overload-heading > div > span,
.cpu-overload-note,
.cpu-scenario-row,
.throughput > div > span,
.saved-specs span,
.saved-card button,
.requirement-intro > span,
.requirement-item span,
.requirement-item small,
th,
.method-grid code {
  font-size: 11px;
}

.catalog-price-button b,
.component-price-hint,
.price-type-badge,
.price-search-option small,
.price-option-values,
.price-selected-component span,
.price-list-heading span,
.price-list-item small,
.price-list-values,
.price-editor-footer p,
.component-type-badge,
.component-result .component-price-hint,
.cpu-overload-heading .formula-badge,
.cpu-overload-metrics span,
.cpu-scenario-row.header,
.table-status {
  font-size: 10px;
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 90px;
  }

  .hero-copy {
    position: relative;
    z-index: 4;
  }

  .hero-visual {
    min-height: 500px;
  }

  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .result-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .saved-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cloud-build-grid,
  .community-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cloud-build-specs {
    grid-template-columns: 1fr 1fr;
  }

  .requirement-card {
    grid-template-columns: 1fr;
  }

  .requirement-intro {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-grid {
    grid-template-columns: 1fr 1fr;
  }

  .price-editor-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .price-editor-main {
    overflow: visible;
  }

  .price-list-panel {
    overflow: visible;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .price-list {
    max-height: 330px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 65px;
    padding-inline: 14px;
  }

  .header-action {
    display: none;
  }

  .header-actions {
    min-width: 0;
  }

  .header-account {
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: 53px;
  }

  .hero {
    min-height: auto;
    padding-block: 66px 40px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 420px;
    overflow: hidden;
  }

  .orb-one {
    right: -70px;
    width: 320px;
    height: 320px;
  }

  .machine-card {
    top: 75px;
    right: 2px;
    width: calc(100% - 22px);
    max-width: 390px;
  }

  .note-a {
    top: 30px;
  }

  .note-b {
    right: 0;
    bottom: 4px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid div {
    min-height: 88px;
    padding: 20px 14px;
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 18px;
  }

  .calculator-section,
  .saved-section,
  .cloud-section,
  .community-section,
  .moderation-section,
  .method-section,
  .requirements-section {
    padding-block: 76px;
  }

  .config-panel,
  .result-panel {
    padding: 22px;
  }

  .field-grid,
  .target-box {
    grid-template-columns: 1fr;
  }

  .catalog-heading {
    align-items: center;
  }

  .catalog-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .price-editor-backdrop {
    padding: 0;
  }

  .price-editor {
    width: 100%;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .price-editor-header,
  .price-editor-main {
    padding-inline: 16px;
  }

  .price-editor-header h2 {
    max-width: 280px;
    font-size: 25px;
    line-height: 1.05;
  }

  .price-editor-toolbar {
    flex-wrap: wrap;
    padding-inline: 16px;
  }

  .price-file-status {
    width: 100%;
    margin-left: 0;
  }

  .price-search-row,
  .price-fields,
  .custom-price-form {
    grid-template-columns: 1fr;
  }

  .custom-price-form .button {
    grid-column: auto;
  }

  .price-search-option {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .price-option-values {
    grid-column: 2;
    text-align: left;
  }

  .price-form-actions {
    flex-direction: column;
  }

  .price-list-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .price-list-heading input {
    width: 100%;
  }

  .price-editor-footer {
    display: none;
  }

  .score-card {
    min-height: 150px;
    padding: 16px;
  }

  .score-card > strong {
    font-size: 54px;
  }

  .cpu-overload-heading {
    display: block;
  }

  .formula-badge {
    display: inline-block;
    margin-top: 8px;
  }

  .cpu-overload-metrics {
    grid-template-columns: 1fr;
  }

  .cpu-overload-metrics span {
    white-space: normal;
  }

  .cpu-scenario-row {
    grid-template-columns: 40px 58px 1fr 64px;
    gap: 6px;
    padding-inline: 8px;
  }

  .resource-item {
    grid-template-columns: 80px 1fr auto;
  }

  .saved-grid {
    grid-template-columns: 1fr;
  }

  .cloud-build-grid,
  .community-grid,
  .community-filters {
    grid-template-columns: 1fr;
  }

  .moderation-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .moderation-actions {
    justify-content: flex-start;
  }

  .auth-dialog {
    padding: 24px 18px;
  }

  .vm-selector {
    grid-template-columns: repeat(4, 1fr);
  }

  .requirement-grid {
    grid-template-columns: 1fr 1fr;
  }

  .requirement-item:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .requirement-item:nth-child(2n) {
    border-right: 0;
  }

  .requirement-item:nth-child(n+4) {
    border-bottom: 1px solid var(--line);
  }

  .requirement-item:nth-child(n+5) {
    border-bottom: 0;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-grid article {
    min-height: auto;
  }

  .method-grid p {
    min-height: auto;
  }

  .reality-check {
    grid-template-columns: 1fr;
  }

  .reality-check ul {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 35px;
  }

  .footer-inner > a {
    justify-self: start;
  }
}

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