/* ToolNest Developer Tools hub + shared workspace accents */
.tn-dev-hub {
  --tn-dev-border: #dbe3f0;
  --tn-dev-surface: #0b1220;
  --tn-dev-panel: #111827;
  --tn-dev-accent: #38bdf8;
  --tn-dev-muted: #64748b;
}
.tn-dev-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--tn-dev-border);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.35rem;
  background:
    radial-gradient(1200px 280px at 10% -40%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(900px 240px at 90% 0%, rgba(99, 102, 241, 0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  margin-bottom: 1.25rem;
}
.tn-dev-hero h1 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: #0f172a;
}
.tn-dev-hero p {
  color: var(--tn-dev-muted);
  margin: 0 0 1rem;
  max-width: 42rem;
}
.tn-dev-search {
  position: relative;
  max-width: 36rem;
}
.tn-dev-search .form-control {
  padding-left: 2.5rem;
  border-radius: 12px;
  border-color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}
.tn-dev-search-ico {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.tn-dev-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.tn-dev-chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}
.tn-dev-chip:hover,
.tn-dev-chip.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.tn-dev-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.35rem 0 0.75rem;
}
.tn-dev-section-title h2 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0;
}
.tn-dev-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tn-dev-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  color: inherit;
}
.tn-dev-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}
.tn-dev-card-ico {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 1rem;
  flex: 0 0 auto;
}
.tn-dev-card-name {
  font-weight: 750;
  font-size: 1rem;
  color: #0f172a;
  line-height: 1.25;
}
.tn-dev-card-desc {
  color: #64748b;
  font-size: 0.86rem;
  margin: 0 0 0.85rem;
  flex: 1;
}
.tn-dev-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}
.tn-dev-card-cta {
  color: #2563eb;
  font-weight: 700;
}
.tn-dev-privacy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #15803d;
  font-weight: 600;
}
.tn-dev-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  color: #64748b;
}
.tn-dev-workspace {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.tn-dev-workspace-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.tn-dev-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}
.tn-dev-status.is-ready { color: #15803d; }
.tn-dev-status.is-error { color: #b91c1c; }
.tn-dev-status.is-busy { color: #b45309; }
.tn-dev-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
}
.tn-dev-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid #e2e8f0;
}
.tn-dev-pane:last-child { border-right: 0; }
.tn-dev-pane-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fcfcfd;
}
.tn-dev-code {
  flex: 1;
  width: 100%;
  min-height: 240px;
  border: 0;
  resize: vertical;
  padding: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  background: #0b1220;
  color: #e2e8f0;
}
.tn-dev-code:focus { outline: none; }
.tn-dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
@media (max-width: 767.98px) {
  .tn-dev-panes { grid-template-columns: 1fr; }
  .tn-dev-pane { border-right: 0; border-bottom: 1px solid #e2e8f0; }
  .tn-dev-pane:last-child { border-bottom: 0; }
  .tn-dev-code { min-height: 180px; }
}
