.ocf-app {
  --ocf-primary: #2100c4;
  --ocf-accent: #d43b00;
  --ocf-cyan: #55dbe6;
  --ocf-text: #24232a;
  --ocf-muted: #5f5c70;
  --ocf-line: #e5e2ee;
  --ocf-soft: #f7f8fb;
  color: var(--ocf-text);
  font-family: inherit;
  width: 100%;
}

.ocf-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  width: 100%;
  max-width: 100%;
  min-height: 720px;
  border: 1px solid var(--ocf-line);
  background: #fff;
  overflow: hidden;
}

.ocf-main {
  min-width: 0;
  padding: clamp(24px, 5vw, 56px);
}

.ocf-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px 28px;
  border-left: 1px solid var(--ocf-line);
  background: #f8fafc;
  min-width: 0;
}

.ocf-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.ocf-step {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--ocf-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ocf-step span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--ocf-line);
  border-radius: 999px;
  background: #fff;
}

.ocf-step.is-active {
  color: var(--ocf-primary);
}

.ocf-step.is-active span {
  color: #fff;
  border-color: var(--ocf-primary);
  background: var(--ocf-primary);
}

.ocf-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
}

.ocf-intro {
  max-width: 680px;
  margin: 0 0 32px;
  color: var(--ocf-muted);
  font-size: 17px;
  line-height: 1.6;
}

.ocf-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ocf-category,
.ocf-component,
.ocf-summary-card {
  position: relative;
  border: 1px solid var(--ocf-line);
  border-radius: 7px;
  background: #fff;
}

.ocf-category {
  min-height: 280px;
  padding: 0 0 22px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}

.ocf-category.is-selected {
  border-color: var(--ocf-primary);
  box-shadow: 0 0 0 2px rgba(33, 0, 196, 0.12);
}

.ocf-category img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ocf-category strong,
.ocf-category span:not(.ocf-badge) {
  display: block;
  padding: 0 22px;
}

.ocf-category strong {
  margin-top: 18px;
  font-size: 22px;
}

.ocf-category span:not(.ocf-badge) {
  margin-top: 8px;
  color: var(--ocf-muted);
  line-height: 1.5;
}

.ocf-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: #075b63;
  font-size: 12px;
  font-weight: 700;
}

.ocf-category-section + .ocf-category-section {
  margin-top: 34px;
}

.ocf-search {
  display: grid;
  gap: 7px;
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--ocf-muted);
  font-weight: 800;
}

.ocf-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ocf-line);
  border-radius: 6px;
  padding: 11px 14px;
  background: #fff;
  color: var(--ocf-text);
  font: inherit;
}

.ocf-search input:focus {
  border-color: var(--ocf-primary);
  outline: 2px solid rgba(33, 0, 196, 0.12);
}

.ocf-category-section h3 {
  margin: 0 0 14px;
}

.ocf-component-list {
  display: grid;
  gap: 16px;
}

.ocf-component {
  padding: 22px;
}

.ocf-component.is-active {
  border-color: rgba(33, 0, 196, 0.35);
}

.ocf-component-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.ocf-component-head img,
.ocf-icon {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  background: var(--ocf-soft);
  object-fit: cover;
}

.ocf-icon {
  display: grid;
  place-items: center;
  color: var(--ocf-primary);
  font-size: 24px;
  font-weight: 800;
}

.ocf-component h4 {
  margin: 0 0 5px;
  font-size: 20px;
}

.ocf-component p {
  margin: 0;
  color: var(--ocf-muted);
}

.ocf-quantity {
  display: grid;
  grid-template-columns: auto 34px 40px 34px;
  align-items: center;
  border: 1px solid var(--ocf-line);
  border-radius: 8px;
  overflow: hidden;
}

.ocf-quantity span {
  padding: 0 10px;
  color: var(--ocf-muted);
  font-size: 13px;
  font-weight: 800;
}

.ocf-quantity button {
  height: 36px;
  border: 0;
  background: var(--ocf-soft);
  cursor: pointer;
}

.ocf-quantity strong {
  text-align: center;
}

.ocf-switch input {
  position: absolute;
  opacity: 0;
}

.ocf-switch span {
  display: block;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #d8d8de;
}

.ocf-switch span::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.ocf-switch input:checked + span {
  background: var(--ocf-primary);
}

.ocf-switch input:checked + span::after {
  transform: translateX(24px);
}

.ocf-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--ocf-line);
}

.ocf-options label,
.ocf-options fieldset,
.ocf-form label {
  display: grid;
  gap: 7px;
  color: var(--ocf-muted);
  font-weight: 700;
}

.ocf-options fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.ocf-options legend {
  margin-bottom: 7px;
  color: var(--ocf-muted);
  font-weight: 700;
}

.ocf-options input,
.ocf-options select,
.ocf-options textarea,
.ocf-form input,
.ocf-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ocf-line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ocf-text);
  font: inherit;
}

.ocf-options textarea {
  min-height: 96px;
  resize: vertical;
}

.ocf-form textarea {
  min-height: 120px;
  resize: vertical;
}

.ocf-check {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--ocf-line);
  border-radius: 6px;
}

.ocf-check input {
  width: 18px;
  min-height: 18px;
}

.ocf-check em {
  color: var(--ocf-primary);
  font-style: normal;
  font-weight: 700;
}

.ocf-option-quantity {
  grid-column: 2 / -1;
}

.ocf-calculation {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  border: 1px solid var(--ocf-line);
  border-radius: 6px;
  padding: 14px;
  background: #fff;
}

.ocf-calculation-head,
.ocf-calculation-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.ocf-calculation-head button,
.ocf-calculation-row-head button {
  min-height: 34px;
  border: 1px solid var(--ocf-line);
  border-radius: 5px;
  padding: 0 10px;
  background: var(--ocf-soft);
  color: var(--ocf-primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ocf-calculation-row {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--ocf-line);
  padding-top: 12px;
}

.ocf-calculation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ocf-calculation-grid .is-wide {
  grid-column: 1 / -1;
}

.ocf-row-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ocf-row-radio-option {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ocf-line);
  border-radius: 5px;
  padding: 8px 10px;
  color: var(--ocf-text);
  font-weight: 700;
}

.ocf-row-radio-option input {
  width: 16px;
  min-height: 16px;
}

.ocf-calculation-empty {
  margin: 0;
  color: var(--ocf-muted);
}

.ocf-summary-list {
  display: grid;
  gap: 18px;
}

.ocf-summary-group {
  display: grid;
  gap: 14px;
}

.ocf-summary-group > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ocf-line);
  padding-bottom: 10px;
}

.ocf-summary-group h3 {
  margin: 0;
  color: var(--ocf-primary);
}

.ocf-summary-group > header span {
  color: var(--ocf-muted);
  font-weight: 800;
  white-space: nowrap;
}

.ocf-summary-card {
  padding: 20px;
}

.ocf-summary-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.ocf-summary-card h4 {
  margin: 0 0 4px;
  color: var(--ocf-primary);
  font-size: 20px;
}

.ocf-summary-card p {
  margin: 0;
  color: var(--ocf-muted);
}

.ocf-summary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ocf-summary-actions button {
  min-height: 36px;
  border: 1px solid var(--ocf-line);
  border-radius: 5px;
  padding: 0 12px;
  background: #fff;
  color: var(--ocf-primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ocf-summary-actions button:last-child {
  color: #a32700;
}

.ocf-summary-params {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.ocf-summary-params div {
  border: 1px solid var(--ocf-line);
  border-radius: 5px;
  padding: 10px 12px;
}

.ocf-summary-params dt {
  color: var(--ocf-muted);
  font-size: 13px;
  font-weight: 800;
}

.ocf-summary-params dd {
  margin: 3px 0 0;
}

.ocf-summary-lines {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.ocf-summary-rows {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.ocf-summary-rows div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--ocf-line);
  border-radius: 5px;
  padding: 10px 12px;
  background: var(--ocf-soft);
}

.ocf-summary-rows span {
  color: var(--ocf-muted);
  line-height: 1.45;
}

.ocf-summary-lines div,
.ocf-summary-card footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
}

.ocf-summary-lines div {
  color: var(--ocf-muted);
}

.ocf-summary-lines strong,
.ocf-summary-lines em,
.ocf-summary-card footer strong,
.ocf-summary-card footer em {
  white-space: nowrap;
}

.ocf-summary-lines em,
.ocf-summary-card footer em {
  color: var(--ocf-muted);
  font-style: normal;
}

.ocf-summary-card footer {
  margin-top: 16px;
  border-top: 1px solid var(--ocf-line);
  padding-top: 14px;
  color: var(--ocf-primary);
  font-weight: 900;
}

.ocf-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ocf-form .is-wide {
  grid-column: 1 / -1;
}

.ocf-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--ocf-line);
}

.ocf-primary,
.ocf-secondary {
  min-height: 52px;
  border-radius: 5px;
  padding: 0 28px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ocf-primary {
  border: 0;
  color: #fff;
  background: var(--ocf-primary);
  box-shadow: 0 10px 22px rgba(33, 0, 196, 0.18);
}

.ocf-primary[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.ocf-secondary {
  justify-self: start;
  border: 1px solid var(--ocf-primary);
  color: var(--ocf-primary);
  background: #fff;
}

.ocf-total h2 {
  margin: 0 0 6px;
  color: var(--ocf-primary);
  font-size: 24px;
}

.ocf-total p {
  margin: 7px 0;
  color: var(--ocf-muted);
}

.ocf-total strong {
  color: var(--ocf-primary);
}

.ocf-side-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ocf-side-steps li {
  padding: 13px 15px;
  border-radius: 5px;
  color: var(--ocf-muted);
  font-weight: 800;
}

.ocf-side-steps .is-active {
  color: var(--ocf-primary);
  background: #ded8ff;
}

.ocf-breakdown {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-top: 1px solid var(--ocf-line);
  padding-top: 22px;
}

.ocf-side-items {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--ocf-line);
  padding-top: 18px;
}

.ocf-side-items div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--ocf-line);
  border-radius: 5px;
  padding: 10px 12px;
  background: #fff;
}

.ocf-side-items strong {
  color: var(--ocf-primary);
}

.ocf-side-items span {
  color: var(--ocf-muted);
  font-size: 13px;
}

.ocf-breakdown span {
  color: var(--ocf-muted);
}

.ocf-breakdown-total {
  color: var(--ocf-primary);
  font-size: 22px;
}

.ocf-message {
  border-left: 4px solid var(--ocf-cyan);
  padding: 12px 14px;
  background: #eefcff;
}

.ocf-empty {
  border: 1px dashed #b9b4ca;
  padding: 24px;
  background: #fff;
}

@media (max-width: 900px) {
  .ocf-shell {
    display: block;
  }

  .ocf-sidebar {
    position: sticky;
    bottom: 0;
    border-top: 1px solid var(--ocf-line);
    border-left: 0;
  }

  .ocf-category-grid,
  .ocf-form-grid,
  .ocf-options,
  .ocf-summary-params,
  .ocf-calculation-grid {
    grid-template-columns: 1fr;
  }

  .ocf-summary-card-head,
  .ocf-summary-group > header {
    display: grid;
  }

  .ocf-summary-actions {
    justify-content: start;
  }

  .ocf-summary-lines div,
  .ocf-summary-card footer {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .ocf-component-head {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .ocf-component-head > :last-child {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .ocf-actions {
    grid-template-columns: 1fr;
  }

  .ocf-primary,
  .ocf-secondary {
    width: 100%;
  }
}
