.mold-page-title-probe {
  display: none;
}

.mold-life-page .workspace-card__body {
  padding-top: 14px;
}

.module-tab-panel,
.mold-sub-panel {
  display: none;
}

.module-tab-panel.is-active,
.mold-sub-panel.is-active {
  display: block;
}

.mold-sub-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid rgba(221, 226, 238, 0.92);
  border-radius: 10px;
  background: #f7f9fe;
  width: fit-content;
}

.mold-sub-tab {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 7px;
  color: #5d6880;
  font-size: 14px;
  font-weight: 700;
}

.mold-sub-tab.is-active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 8px 16px rgba(62, 78, 128, 0.08);
}

.mold-summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.mold-summary-card {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
}

.mold-summary-card__label {
  color: var(--color-text-faint);
  font-size: 12px;
}

.mold-summary-card__value {
  color: #34405b;
  font-size: 22px;
  font-weight: 800;
}

.mold-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0 12px;
}

.mold-toolbar__left,
.mold-toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mold-toolbar__right {
  justify-content: flex-end;
}

.inline-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4e5a73;
  font-size: 14px;
  white-space: nowrap;
}

.inline-filter .select-shell {
  min-width: 150px;
}

.mold-date-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mold-date-range input {
  width: 138px;
  min-height: 34px;
  padding: 7px 10px;
  background: rgba(248, 249, 254, 0.9);
}

.mold-table-shell {
  min-height: 604px;
}

.mold-ledger-table thead th,
.mold-position-table thead th,
.mold-use-history-table thead th,
.mold-operation-table thead th {
  min-width: 122px;
}

.mold-ledger-table thead th:nth-child(1),
.mold-ledger-table tbody td:nth-child(1),
.mold-position-table thead th:nth-child(1),
.mold-position-table tbody td:nth-child(1),
.mold-use-history-table thead th:nth-child(1),
.mold-use-history-table tbody td:nth-child(1),
.mold-operation-table thead th:nth-child(1),
.mold-operation-table tbody td:nth-child(1) {
  width: 56px;
  min-width: 56px;
  text-align: center;
}

.mold-ledger-table thead th:nth-child(2),
.mold-position-table thead th:nth-child(4),
.mold-use-history-table thead th:nth-child(2),
.mold-operation-table thead th:nth-child(4) {
  min-width: 170px;
}

.mold-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.mold-status--normal,
.mold-status--available,
.mold-status--enabled {
  background: rgba(38, 168, 109, 0.12);
  color: #158451;
}

.mold-status--warning {
  background: rgba(240, 162, 60, 0.16);
  color: #a46618;
}

.mold-status--expired,
.mold-status--disabled {
  background: rgba(223, 94, 94, 0.14);
  color: #b53d3d;
}

.mold-status--using {
  background: rgba(85, 118, 255, 0.12);
  color: var(--color-primary);
}

.mold-status--idle {
  background: rgba(151, 161, 186, 0.14);
  color: #657087;
}

.mold-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.mold-link-button {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
}

.mold-field-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.mold-device-list,
.mold-field-board {
  border: 1px solid rgba(221, 226, 238, 0.92);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.mold-device-list__head {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #edf1f7;
}

.mold-device-list__head h2,
.mold-field-board__title {
  margin: 0;
  color: #34405b;
  font-size: 15px;
  font-weight: 800;
}

.mold-device-list__body {
  display: grid;
  gap: 6px;
  max-height: 676px;
  overflow: auto;
  padding: 10px;
}

.mold-device-card {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  color: #4d5872;
}

.mold-device-card:hover {
  background: #f6f8ff;
}

.mold-device-card.is-active {
  border-color: rgba(85, 118, 255, 0.32);
  background: #eef3ff;
}

.mold-device-card__name {
  font-weight: 800;
}

.mold-device-card__meta {
  color: var(--color-text-faint);
  font-size: 12px;
}

.mold-field-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f7;
  background: #fbfcff;
}

.mold-field-board__meta {
  color: var(--color-text-subtle);
  font-size: 13px;
}

.mold-position-cards {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.mold-position-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
}

.mold-position-card__head,
.mold-position-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mold-position-card__title {
  margin: 0;
  color: #34405b;
  font-size: 16px;
  font-weight: 800;
}

.mold-position-card__subtitle {
  margin-top: 3px;
  color: var(--color-text-subtle);
  font-size: 13px;
}

.mold-position-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.mold-metric {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  background: #f9fbff;
}

.mold-metric__label {
  color: var(--color-text-faint);
  font-size: 12px;
}

.mold-metric__value {
  color: #34405b;
  font-size: 15px;
  font-weight: 800;
}

.mold-card-button {
  min-height: 34px;
  min-width: 72px;
  padding: 0 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  background: #fff;
  color: #4e5a73;
  font-size: 13px;
  font-weight: 700;
}

.mold-card-button--primary {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.mold-card-button--warning {
  border-color: rgba(240, 162, 60, 0.42);
  background: rgba(240, 162, 60, 0.13);
  color: #9b621a;
}

.drawer__panel--mold {
  width: min(820px, 100%);
}

.mold-form {
  display: grid;
  gap: 18px;
}

.mold-form .form-row {
  grid-template-columns: 128px 1fr;
}

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

.mold-detail-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
}

.mold-detail-item__label {
  color: var(--color-text-faint);
  font-size: 12px;
}

.mold-detail-item__value {
  color: #34405b;
  font-size: 14px;
  font-weight: 700;
}

.modal__panel--mold {
  width: min(720px, calc(100vw - 32px));
}

.modal__panel--mold.is-wide {
  width: min(1120px, calc(100vw - 32px));
}

.mold-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.mold-history-mini {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.mold-history-mini__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fbfcff;
}

.mold-history-mini__title {
  color: #34405b;
  font-weight: 800;
}

.mold-history-mini__meta {
  color: var(--color-text-subtle);
  font-size: 12px;
  line-height: 1.7;
}

.mold-history-filterbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mold-modal-table-shell {
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.mold-modal-table-shell .data-table {
  min-width: 1260px;
}

.mold-name-manager {
  display: grid;
  gap: 12px;
}

.mold-name-setting-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mold-name-table-shell {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
}

.mold-name-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.mold-name-table th,
.mold-name-table td {
  padding: 8px;
  border-bottom: 1px solid #edf0f7;
  color: #34405b;
  font-size: 13px;
  text-align: left;
}

.mold-name-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f9fe;
  color: #667187;
  font-weight: 800;
}

.mold-name-table th:first-child,
.mold-name-table td:first-child {
  width: 48px;
  text-align: center;
}

.mold-name-table tbody tr.is-active {
  background: #f5f8ff;
}

.mold-name-select {
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  background: #fff;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.mold-name-select.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.mold-name-input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #34405b;
  font: inherit;
}

.mold-name-input:focus {
  border-color: var(--color-primary);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 109, 246, 0.12);
}

.mold-name-empty-cell {
  height: 96px;
  color: var(--color-text-subtle);
  text-align: center;
}

.mold-confirm-text {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid #f1d6a6;
  border-radius: 8px;
  background: #fff8ea;
  color: #7a5218;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .mold-summary-strip,
  .mold-position-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  .mold-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mold-toolbar__right {
    justify-content: flex-start;
  }

  .mold-summary-strip,
  .mold-position-metrics,
  .mold-detail-grid {
    grid-template-columns: 1fr;
  }

  .mold-form .form-row {
    grid-template-columns: 1fr;
  }

  .mold-name-setting-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mold-history-filterbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mold-date-range {
    width: 100%;
    flex-wrap: wrap;
  }

  .mold-date-range input {
    width: calc(50% - 12px);
    min-width: 140px;
  }
}
