.op-panel {
  --op-ink: #203c35;
  --op-sub: #57665e;
  --op-muted: #647369;
  --op-line: #dce2d7;
  --op-leaf: #216447;
  --op-pale: #edf3e8;
  --op-gold: #8a601e;
  color: var(--op-ink);
  font: inherit;
  min-width: 0;
  overflow-wrap: anywhere;
}
.op-panel *,
.op-panel *::before,
.op-panel *::after {
  box-sizing: border-box;
}
.op-panel h2,
.op-panel h3,
.op-panel p,
.op-panel dl,
.op-panel dd {
  margin: 0;
}
.op-panel .op-head {
  padding: 0 30px 19px 0;
}
.op-panel h2 {
  color: var(--op-ink);
  font-size: clamp(23px, 3.4vw, 31px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 750;
}
.op-panel .op-head p {
  margin-top: 8px;
  color: var(--op-sub);
  font-size: 14px;
  line-height: 1.48;
}
.op-panel .op-section {
  border-top: 1px solid var(--op-line);
  padding: 17px 0 0;
  margin: 17px 0 0;
}
.op-panel .op-section:first-of-type {
  margin-top: 0;
}
.op-panel .op-section > h3 {
  font-size: 15px;
  font-weight: 740;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.op-panel small,
.op-panel .op-detail {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--op-muted);
  font-weight: 450;
}
.op-panel .op-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--op-sub);
}
.op-panel .op-tip {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--op-pale);
  color: var(--op-leaf);
  font-size: 13px;
  line-height: 1.45;
}
.op-panel .op-alert {
  background: #fbf1dc;
  color: #795c24;
}
.op-panel .op-list {
  display: flex;
  flex-direction: column;
}
.op-panel .op-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--op-line);
}
.op-panel .op-row:last-child {
  border-bottom: 0;
}
.op-panel .op-row:first-child {
  padding-top: 3px;
}
.op-panel .op-row-main {
  flex: 1;
  min-width: 0;
}
.op-panel .op-row-main > strong,
.op-panel .op-card-title {
  display: block;
  font-size: 14px;
  line-height: 1.32;
  letter-spacing: -0.012em;
  font-weight: 700;
}
.op-panel .op-row-main > .op-detail,
.op-panel .op-card-title + .op-detail {
  margin-top: 3px;
}
.op-panel .op-money {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  white-space: nowrap;
  font-size: 13px;
}
.op-panel .op-positive {
  color: var(--op-leaf);
}
.op-panel .op-negative {
  color: #9e4b36;
}
.op-panel .op-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--op-pale);
  border-radius: 10px;
  padding: 12px 15px;
  gap: 13px;
}
.op-panel .op-metrics dt {
  color: var(--op-sub);
  font-size: 11px;
  line-height: 1.4;
}
.op-panel .op-metrics dd {
  font-weight: 730;
  letter-spacing: -0.045em;
  font-size: 19px;
  line-height: 1.28;
  font-variant-numeric: tabular-nums;
}
.op-panel .op-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 5px 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--op-line);
}
.op-panel .op-card:first-child {
  padding-top: 5px;
}
.op-panel .op-card:last-child {
  border-bottom: 0;
}
.op-panel .op-card-body {
  grid-column: 1 / -1;
  min-width: 0;
}
.op-panel .op-badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 4px;
  border-radius: 5px;
  padding: 4px 7px;
  background: #e5eedc;
  color: #326143;
  line-height: 1.2;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.op-panel .op-wait {
  color: #7a561b;
  background: #f8eacb;
}
.op-panel .op-off {
  color: #8a463a;
  background: #f9e5dd;
}
.op-panel .op-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}
.op-panel .op-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #a7b6a8;
  border-radius: 7px;
  background: transparent;
  padding: 8px 11px;
  min-height: 37px;
  color: var(--op-leaf);
  font-family: inherit;
  font-weight: 680;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.op-panel .op-btn:hover:enabled {
  background: var(--op-pale);
}
.op-panel .op-btn:active:enabled {
  transform: translateY(1px);
}
.op-panel .op-btn.op-primary {
  border-color: var(--op-leaf);
  background: var(--op-leaf);
  color: #fff;
}
.op-panel .op-btn.op-primary:hover:enabled {
  background: #174c36;
}
.op-panel .op-btn.op-danger {
  color: #8e382a;
  border-color: #be897f;
}
.op-panel .op-btn.op-danger:hover:enabled {
  background: #fff0e9;
}
.op-panel .op-btn.op-danger.op-primary {
  color: #fff;
  background: #933d30;
  border-color: #933d30;
}
.op-panel .op-btn.op-danger.op-primary:hover:enabled {
  background: #722d23;
}
.op-panel .op-removal-object,
.op-panel .op-loss-agreement {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.op-panel .op-loss-agreement {
  padding: 12px;
  background: #fbf1dc;
  border-radius: 8px;
  color: #634418;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}
.op-panel .op-loss-agreement input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--op-leaf);
  cursor: pointer;
}
.op-panel .op-btn:disabled {
  opacity: 0.48;
  cursor: default;
}
.op-panel :focus-visible {
  outline: 2px solid #318a5d;
  outline-offset: 3px;
}
.op-panel .op-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  color: var(--op-ink);
  font-size: 12px;
  font-weight: 650;
  min-width: 0;
}
.op-panel select,
.op-panel input[type='number'] {
  border: 1px solid #bcc8b9;
  border-radius: 6px;
  min-height: 37px;
  padding: 7px 8px;
  background: #fffef9;
  color: var(--op-ink);
  font: inherit;
  width: 100%;
}
.op-panel input[type='range'] {
  accent-color: var(--op-leaf);
  width: 100%;
  margin: 7px 0;
}
.op-panel .op-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.op-panel .op-fields.op-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.op-panel .op-form {
  display: grid;
  gap: 11px;
}
.op-panel .op-field output {
  font-variant-numeric: tabular-nums;
  color: var(--op-leaf);
}
.op-panel .op-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.op-panel .op-line + .op-line {
  margin-top: 6px;
}
.op-panel .op-line span:first-child {
  min-width: 0;
}
.op-panel .op-track {
  height: 6px;
  border-radius: 5px;
  background: #e3e7da;
  overflow: hidden;
  margin-top: 7px;
}
.op-panel .op-track > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #698a50;
}
.op-panel .op-track.op-low > i {
  background: #c59441;
}
.op-panel .op-section details {
  margin-top: 10px;
  font-size: 13px;
  color: var(--op-sub);
}
.op-panel .op-section summary {
  color: var(--op-leaf);
  font-weight: 650;
  cursor: pointer;
}
.op-panel .op-table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.op-panel .op-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.op-panel .op-table th {
  font-size: 11px;
  color: var(--op-muted);
  font-weight: 540;
}
.op-panel .op-table th,
.op-panel .op-table td {
  padding: 7px 5px;
  border-bottom: 1px solid var(--op-line);
  white-space: nowrap;
}
.op-panel .op-table th:first-child,
.op-panel .op-table td:first-child {
  padding-left: 0;
  text-align: left;
}
.op-panel .op-table th:last-child,
.op-panel .op-table td:last-child {
  padding-right: 0;
}
.op-panel .op-dots {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) {
  .op-panel .op-btn {
    min-height: 43px;
  }
  .op-panel input[type='number'],
  .op-panel select {
    font-size: 16px;
    min-height: 43px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .op-panel * {
    transition: none !important;
  }
}
.op-panel .op-build-row {
  grid-template-columns: 68px minmax(0, 1fr) auto;
  column-gap: 12px;
}
.op-panel .op-benefit {
  color: var(--op-leaf);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  margin: 4px 0 8px;
}
.op-panel .op-instances {
  margin-top: 10px;
}
.op-panel .op-instances .op-btn {
  background: var(--op-pale);
  border-color: transparent;
}
.op-panel .op-instances .op-btn:hover {
  border-color: var(--op-leaf);
}
.op-panel .op-building-thumb {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 68px;
  height: 68px;
  align-self: start;
  object-fit: contain;
  background: #f0f1e6;
  border-radius: 8px;
  padding: 3px;
}
.op-panel .op-build-row .op-card-body {
  grid-column: 2 / -1;
}
.op-panel .op-build-row .op-actions {
  margin-top: 3px;
}
.op-panel .op-building-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.op-panel .op-building-preview {
  width: 88px;
  height: 86px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f0f1e6;
}
.op-panel .op-building-head .op-head {
  padding-bottom: 0;
}
@media (max-width: 420px) {
  .op-panel .op-build-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 4px 8px;
  }
  .op-panel .op-build-row .op-money {
    grid-column: 2;
  }
  .op-panel .op-build-row .op-card-body {
    grid-column: 1 / -1;
  }
  .op-panel .op-building-thumb {
    width: 48px;
    height: 52px;
  }
  .op-panel .op-building-preview {
    width: 65px;
    height: 65px;
  }
}
