.tool-page {
  max-width: 900px;
  margin: 0 auto;
}

.tool-header {
  margin-bottom: 2rem;
}

.tool-category {
  margin: 0 0 0.5rem;
  color: var(--main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.tool-header h1 {
  margin: 0 0 0.75rem;
}

.tool-header p {
  margin: 0;
  color: var(--text-muted);
}

.timestamp-panel {
  padding: 1.5rem;
}

.timestamp-section {
  display: grid;
  gap: 1rem;
}

.timestamp-section h2 {
  margin: 0;
}

.timestamp-input-row {
  display: flex;
  gap: 0.75rem;
}

.timestamp-input,
.timestamp-select {
  box-sizing: border-box;
  min-height: 3rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface-background);
  color: var(--text-dark);
  font-family: monospace;
  font-size: 1rem;
}

.timestamp-input {
  width: 100%;
}

.timestamp-select {
  flex: 0 0 160px;
}

.timestamp-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tool-button {
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--main);
  background: transparent;
  color: var(--main);
  font-weight: 700;
  cursor: pointer;
}

.tool-button:hover {
  background: var(--main);
  color: var(--page-background);
}

.tool-button-primary {
  background: var(--main);
  color: var(--page-background);
}

.tool-button-primary:hover {
  background: transparent;
  color: var(--main);
}

.timestamp-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.timestamp-result > div {
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--panel-background);
}

.result-label {
  background: var(--panel-background);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timestamp-result output {
  display: block;
  color: var(--main);
  font-family: monospace;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.timestamp-divider {
  height: 1px;
  margin: 2rem 0;
  background: var(--border);
}

.tool-status {
  min-height: 1.5rem;
  color: var(--text-muted);
}

.tool-info {
  margin-top: 3rem;
}

.tool-info h2 {
  margin-top: 2rem;
}

.tool-info p {
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 700px) {
  .timestamp-panel {
    padding: 1rem;
  }

  .timestamp-input-row {
    flex-direction: column;
  }

  .timestamp-select {
    flex-basis: auto;
    width: 100%;
  }

  .timestamp-result {
    grid-template-columns: 1fr;
    background: var{--surface-background};
  }

  .timestamp-actions {
    flex-direction: column;
  }
}