.smart-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.smart-project-retained {
  margin-top: 10px !important;
  padding-top: 9px;
  border-top: 1px dashed rgba(247, 190, 65, 0.22);
  font-size: 11px;
}

.smart-project-retained span {
  color: var(--text-tertiary);
}

.smart-project-retained b {
  color: #ffd06a;
}

.smart-accounting-note {
  margin: -4px 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(247, 190, 65, 0.2);
  border-radius: 10px;
  background: rgba(247, 190, 65, 0.07);
  color: #c8d4e8;
  font-size: 11px;
  line-height: 1.6;
}

.smart-accounting-note b {
  color: #ffd06a;
}

.smart-project-card.is-clickable,
.smart-editable-row {
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.smart-project-card.is-clickable:hover {
  border-color: rgba(247, 190, 65, 0.48);
  transform: translateY(-1px);
}

.smart-editable-row:hover td {
  background: rgba(84, 143, 255, 0.07);
}

.smart-result-actions,
.smart-manual-head > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.smart-original-text {
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(7, 17, 33, 0.66);
  color: var(--text-secondary);
  font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.smart-check,
.smart-table-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.smart-manual-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.smart-manual-head h3 {
  margin: 3px 0 4px;
  font-size: 20px;
}

.smart-manual-head p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 12px;
}

.smart-manual-table {
  max-height: 620px;
  border: 1px solid rgba(109, 140, 191, 0.16);
  border-radius: 12px;
}

.smart-manual-table table {
  min-width: 980px;
}

.smart-manual-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #14233b;
}

.smart-manual-table select,
.smart-manual-table input {
  width: 100%;
  min-width: 105px;
  box-sizing: border-box;
  padding: 7px 8px;
  border: 1px solid #30496e;
  border-radius: 7px;
  background: #0b192d;
  color: #edf3ff;
}

.smart-form-foot,
.smart-filter-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--text-tertiary);
  font-size: 11px;
}

.smart-filter-tip {
  justify-content: flex-start;
  margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(84, 143, 255, 0.08);
}

@media (max-width: 720px) {
  .smart-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smart-manual-head,
  .smart-form-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .smart-manual-head > div:last-child .btn,
  .smart-form-foot .btn {
    flex: 1 1 auto;
  }
}
