:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --bg-elevated: #ffffff;
  --border: #d8e0ea;
  --text: #1a2332;
  --muted: #5c6b7f;
  --accent: #2563eb;
  --accent-dim: #1d4ed8;
  --ok: #16a34a;
  --radius: 12px;
  --font: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
}

.bg-grad {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(29, 78, 216, 0.08), transparent);
}

.station {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.station-main {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .station-main {
    grid-template-columns: 1fr 240px;
    align-items: start;
  }
}

.tools-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(26, 35, 50, 0.06);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.btn-ghost {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 8px;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tools-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.tools-loading,
.tools-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.tool-card:hover:not(.is-disabled) {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.tool-card.is-disabled {
  opacity: 0.65;
  cursor: default;
}

.tool-card-icon {
  font-size: 1.5rem;
}

.tool-card h3 {
  margin: 0;
  font-size: 1rem;
}

.tool-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.tool-badge {
  align-self: flex-start;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--muted);
}

.station-aside {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 3px rgba(26, 35, 50, 0.06);
}

.aside-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.status-dl {
  margin: 0;
}

.status-dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.status-dl div:last-child {
  border-bottom: none;
}

.status-dl dt {
  color: var(--muted);
}

.status-dl dd {
  margin: 0;
  font-weight: 500;
}

.status-dl .is-ok {
  color: var(--ok);
}

.station-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}