.inventory-page {
  width: min(100% - 2.5rem, 70rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0 5rem;
}

.inventory-page-narrow {
  width: min(100% - 2.5rem, 56rem);
}

.inventory-page :is(h1, h2, h3, p) {
  margin-top: 0;
}

.inventory-hero {
  max-width: 54rem;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.inventory-eyebrow,
.inventory-action-label {
  margin-bottom: .65rem;
  color: #536887;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.inventory-hero h1 {
  max-width: 16ch;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
}

.inventory-lede {
  max-width: 48rem;
  margin-bottom: 1.4rem;
  color: #526179;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.inventory-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.4rem;
}

.inventory-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  font-size: .92rem;
  font-weight: 600;
}

.inventory-card {
  margin: 1.15rem 0 !important;
  padding: clamp(1.25rem, 3vw, 2.1rem) !important;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid #e3e9f2 !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 12px 36px rgba(31, 48, 83, .055) !important;
}

.inventory-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.inventory-section-heading > div {
  min-width: 0;
}

.inventory-section-heading .inventory-eyebrow {
  margin-bottom: .4rem;
}

.inventory-section-heading h2 {
  margin-bottom: .45rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.inventory-section-heading p:last-child {
  margin-bottom: 0;
  color: #63718a;
}

.inventory-step {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 2.65rem;
  place-items: center;
  margin-top: .15rem;
  color: #2349d8;
  background: #edf2ff;
  border: 1px solid #dfe7ff;
  border-radius: .85rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.inventory-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.inventory-picker legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.inventory-source {
  position: relative;
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) 1rem;
  align-items: center;
  gap: .85rem;
  min-height: 5.2rem;
  margin: 0 !important;
  padding: .9rem 1rem;
  color: #172033;
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: .95rem;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.inventory-source:hover {
  border-color: #9cafea;
  box-shadow: 0 5px 16px rgba(49, 94, 251, .08);
}

.inventory-source:focus-within {
  outline: 3px solid rgba(49, 94, 251, .24);
  outline-offset: 2px;
}

.inventory-source:has(input:checked) {
  background: #f5f7ff;
  border-color: #315efb;
  box-shadow: inset 0 0 0 1px #315efb;
}

.inventory-source input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0 !important;
  overflow: hidden;
  opacity: 0;
  clip-path: inset(50%);
}

.inventory-source-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: #3154c5;
  background: #edf2ff;
  border: 1px solid #e2e9ff;
  border-radius: .8rem;
}

.inventory-source-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.inventory-source-logo {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: .3rem;
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: .8rem;
}

.inventory-source-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.inventory-source-copy strong,
.inventory-source-copy small {
  display: block;
}

.inventory-source-copy strong {
  margin-bottom: .15rem;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: .98rem;
  letter-spacing: -.025em;
}

.inventory-source-copy small {
  color: #66748b;
  font-size: .84rem;
  line-height: 1.4;
}

.inventory-check {
  width: .9rem;
  height: .9rem;
  border: 1.5px solid #aeb9ca;
  border-radius: 50%;
}

.inventory-source:has(input:checked) .inventory-check {
  border: .28rem solid #315efb;
  background: #fff;
}

.inventory-note {
  min-height: 1.5rem;
  margin: 1rem 0 0 !important;
  color: #526179;
  font-size: .92rem;
}

.inventory-platform-guides {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.25rem;
  margin-top: .5rem;
}

.inventory-platform-guides a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  font-size: .88rem;
  font-weight: 650;
}

.inventory-platform-logo {
  display: block;
  width: auto;
  max-width: min(12rem, 55vw);
  height: 3rem;
  margin-bottom: 1rem;
  padding: .4rem .65rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: .75rem;
}

.inventory-details {
  margin-top: 1.3rem;
  border-top: 1px solid #edf0f5;
}

.inventory-details summary {
  width: fit-content;
  padding: 1rem .1rem .35rem;
  color: #3154c5;
  font-weight: 650;
  cursor: pointer;
}

.inventory-details summary:focus-visible {
  border-radius: .25rem;
  outline: 3px solid rgba(49, 94, 251, .25);
  outline-offset: 3px;
}

.inventory-details-body {
  padding-top: .65rem;
  color: #58677f;
  font-size: .93rem;
}

.inventory-details-body p:last-child {
  margin-bottom: .25rem;
}

.inventory-page pre {
  max-width: 100%;
  margin: .85rem 0;
  padding: 1rem 1.1rem !important;
  overflow: auto;
  color: #21304b !important;
  background: #f4f6fa !important;
  border: 1px solid #e4e9f1 !important;
  border-radius: .85rem !important;
  font-size: .88rem;
  line-height: 1.6;
  white-space: pre;
}

.inventory-field {
  display: block;
  margin: 0 0 .45rem !important;
  color: #29364d;
  font-size: .92rem;
  font-weight: 650;
}

.inventory-field textarea {
  display: block;
  width: 100%;
  min-height: 10.5rem;
  margin-top: .55rem;
  padding: 1rem !important;
  resize: vertical;
  color: #172033;
  background: #fbfcfe;
  border: 1px solid #d8e0ec !important;
  border-radius: .85rem !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9rem;
  line-height: 1.6;
}

.inventory-field textarea:focus,
.inventory-input-unit input:focus,
.inventory-file:focus-visible {
  border-color: #315efb !important;
  outline: 3px solid rgba(49, 94, 251, .18);
  outline-offset: 1px;
}

.inventory-field-hint {
  margin: -.1rem 0 1.25rem !important;
  color: #738097;
  font-size: .83rem;
}

.inventory-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1rem 0 1.25rem;
}

.inventory-toggle {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: .65rem 0 0 !important;
  color: #526179;
  font-size: .9rem;
  cursor: pointer;
}

.inventory-page input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  margin: .15rem 0 0;
  accent-color: #315efb;
}

.inventory-age {
  width: min(100%, 16rem);
  flex: 0 0 auto;
}

.inventory-input-unit {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: .45rem;
}

.inventory-input-unit input {
  width: 6rem;
  min-height: 2.7rem;
  padding: .55rem .7rem !important;
  border: 1px solid #d8e0ec !important;
  border-radius: .7rem !important;
}

.inventory-input-unit > span {
  color: #738097;
  font-size: .88rem;
  font-weight: 400;
}

.inventory-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.inventory-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.inventory-button:focus-visible {
  outline: 3px solid rgba(49, 94, 251, .3);
  outline-offset: 3px;
}

.inventory-button-primary {
  color: #fff !important;
  background: #315efb;
  border-color: #315efb;
}

.inventory-button-primary:hover:not(:disabled) {
  color: #fff !important;
  background: #2349d8;
  border-color: #2349d8;
}

.inventory-button-secondary {
  color: #244bc9 !important;
  background: #fff;
  border-color: #cbd6ef;
}

.inventory-button-secondary:hover:not(:disabled) {
  color: #1d40b5 !important;
  background: #f4f6ff;
  border-color: #9aafea;
}

.inventory-button:disabled {
  color: #8893a5 !important;
  background: #f1f3f7;
  border-color: #e4e8ef;
  cursor: not-allowed;
}

.inventory-status {
  display: block;
  margin-top: 1rem;
  color: #34425a;
  font-size: .93rem;
  font-weight: 650;
}

.inventory-result:empty,
.inventory-status:empty {
  display: none;
}

.inventory-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.inventory-action {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.2rem;
  background: #fbfcfe;
  border: 1px solid #e7ebf2;
  border-radius: 1rem;
}

.inventory-action .inventory-action-label {
  margin-bottom: .55rem;
  color: #63718a;
  font-size: .68rem;
}

.inventory-action h3 {
  margin-bottom: .55rem;
  font-size: 1.07rem;
  line-height: 1.3;
}

.inventory-action p {
  flex: 1;
  margin-bottom: 1rem;
  color: #63718a;
  font-size: .88rem;
  line-height: 1.6;
}

.inventory-action .inventory-button {
  width: 100%;
  margin-top: auto;
}

.inventory-action .inventory-text-link {
  margin-top: .55rem;
}

.inventory-action-featured {
  background: #f6f8ff;
  border-color: #dce5ff;
}

.inventory-footer-link {
  margin: 1.1rem 0 0 !important;
  text-align: right;
  font-size: .9rem;
}

.inventory-copy {
  margin-bottom: 1.2rem;
  color: #58677f;
}

.inventory-copy code {
  padding: .08rem .3rem;
  color: #273958;
  background: #f0f3f8;
  border-radius: .3rem;
  font-size: .88em;
}

.inventory-review-form {
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid #edf0f5;
}

.inventory-file {
  display: block;
  width: 100%;
  min-height: 3rem;
  margin-top: .5rem;
  padding: .45rem !important;
  color: #526179;
  background: #fff;
  border: 1px dashed #b7c3d5 !important;
  border-radius: .8rem !important;
}

.inventory-file::file-selector-button {
  min-height: 2rem;
  margin-right: .7rem;
  padding: .35rem .7rem;
  color: #244bc9;
  background: #f1f4ff;
  border: 1px solid #dce4ff;
  border-radius: .5rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 650;
  cursor: pointer;
}

.inventory-review-form .inventory-age {
  margin: 1.25rem 0 1rem !important;
}

.inventory-issues {
  display: grid;
  gap: .5rem;
  max-height: 22rem;
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  overflow: auto;
  color: #47566e;
  font-size: .9rem;
}

.inventory-issues li {
  padding: .55rem .7rem;
  overflow-wrap: anywhere;
  background: #fff8f1;
  border: 1px solid #f5e1cc;
  border-radius: .6rem;
}

.inventory-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.inventory-next-step {
  margin-top: 1.5rem !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 760px) {
  .inventory-action-grid {
    grid-template-columns: 1fr;
  }

  .inventory-action {
    padding: 1.1rem;
  }
}

@media (max-width: 560px) {
  .inventory-page,
  .inventory-page-narrow {
    width: min(100% - 1.25rem, 70rem);
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .inventory-picker {
    grid-template-columns: 1fr;
  }

  .inventory-source {
    min-height: 4.7rem;
  }

  .inventory-controls {
    flex-direction: column;
    gap: .5rem;
  }

  .inventory-age {
    width: 100%;
  }

  .inventory-cta-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inventory-source,
  .inventory-button {
    transition: none;
  }
}
