.tool-body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 18%),
    radial-gradient(circle at bottom right, rgba(127, 35, 53, 0.07), transparent 24%),
    linear-gradient(180deg, #f7f6f4 0%, #f0eeeb 100%);
  min-height: 100vh;
}

.tool-shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 18px 14px 28px;
}

.tool-access-panel {
  margin-bottom: 16px;
  max-width: 520px;
}

.tool-access-form {
  display: grid;
  gap: 12px;
}

.tool-topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px;
  align-items: center;
}

.tool-topnav button {
  min-height: 42px;
  min-width: 96px;
}

.tool-back-link {
  margin-left: auto;
}

.tool-refresh-btn {
  min-width: auto;
}

.tool-view.hidden {
  display: none;
}

.tool-stats {
  grid-template-columns: repeat(2, minmax(110px, 1fr));
}

.tool-progress,
.tool-import-panel,
.tool-list-panel,
.tool-status-grid {
  margin-bottom: 16px;
}

.tool-import-panel textarea {
  min-height: 140px;
}

.tool-status-grid,
.tool-edit-grid {
  align-items: start;
}

.tool-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.tool-mode-tabs {
  margin-bottom: 0;
}

.tool-items,
.tool-result-list,
.tool-highlight-list,
.tool-compact-list {
  display: grid;
  gap: 10px;
}

.tool-card,
.tool-result-card,
.tool-compact-row {
  background: linear-gradient(180deg, #fff 0%, #fbf9f8 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.tool-card {
  padding: 14px;
}

.tool-card-head {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.tool-card strong,
.tool-result-card strong,
.tool-compact-row span {
  display: block;
  line-height: 1.35;
}

.tool-card small,
.tool-result-card small,
.tool-compact-row small {
  color: var(--muted);
  display: block;
  line-height: 1.45;
  margin-top: 4px;
}

.tool-card-meta {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.tool-card-actions,
.tool-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tool-card-actions button {
  min-height: 38px;
}

.tool-highlight-block {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(127, 35, 53, 0.08);
  border-radius: 18px;
  padding: 14px;
}

.tool-highlight-block strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.tool-compact-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.tool-result-card {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
  text-align: left;
  width: 100%;
  color: var(--ink);
}

.tool-result-card strong {
  color: var(--ink);
}

.tool-result-card:hover {
  border-color: rgba(127, 35, 53, 0.24);
  box-shadow: 0 14px 28px rgba(68, 28, 35, 0.08);
}

.tool-search-panel,
.tool-editor-panel {
  height: fit-content;
}

.tool-editor-panel {
  position: sticky;
  top: 14px;
}

.tool-editor-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-editor-actions button:last-child {
  grid-column: 1 / -1;
}

.tool-inline-status {
  align-items: center;
  background: rgba(127, 35, 53, 0.05);
  border: 1px solid rgba(127, 35, 53, 0.08);
  border-radius: 14px;
  color: var(--text);
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
}

.tool-inline-status span {
  color: var(--muted);
  font-size: 0.92rem;
}

.tool-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
}

.tool-status.kurang {
  background: #fff4e0;
  color: #8a5a00;
}

.tool-status.ok {
  background: #edf8ef;
  color: #1d6a33;
}

.tool-status.finalized {
  background: #eef4fb;
  color: #255c9b;
}

.tool-status.deleted {
  background: #f7ecef;
  color: #9b2c41;
}

.tool-status.new {
  background: #f4f0ee;
  color: #6f595f;
}

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

@media (max-width: 900px) {
  .tool-status-grid,
  .tool-edit-grid {
    grid-template-columns: 1fr;
  }

  .tool-back-link {
    margin-left: 0;
  }

  .tool-editor-panel {
    position: static;
  }

  .tool-editor-actions,
  .tool-compact-row,
  .tool-result-card {
    grid-template-columns: 1fr;
  }
}
