* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #020617;
  border-bottom: 1px solid #1e293b;
}

.tool-header > div {
  min-width: 0;
}

.tool-header h1 {
  margin: 8px 0 4px;
  font-size: clamp(23px, 7vw, 32px);
  white-space: nowrap;
}

.tool-header p {
  margin: 0;
  color: #94a3b8;
  white-space: nowrap;
  line-height: 1.35;
  overflow-wrap: normal;
}

.back-link {
  color: #38bdf8;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.back-link:hover {
  text-decoration: underline;
}

.version-pill {
  flex: 0 0 auto;
  background: #082f49;
  color: #67e8f9;
  border: 1px solid #0e7490;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: bold;
}

.tool-layout {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 24px;
}

.panel {
  min-width: 0;
  background: #111827;
  border: 1px solid #263244;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.eyebrow {
  color: #38bdf8;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

h2 {
  margin: 8px 0 6px;
  font-size: 26px;
}

p {
  color: #cbd5e1;
  line-height: 1.42;
}

.shell-space {
  min-height: 420px;
  margin-top: 20px;
  border: 1px dashed #334155;
  border-radius: 18px;
  background: #020617;
}

footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  color: #64748b;
}

.bottom-back-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.bottom-back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: min(340px, 100%);
  background: #111827;
  border: 1px solid #263244;
  color: #38bdf8;
  text-decoration: none;
  padding: 18px 24px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: bold;
  transition: 0.2s ease;
}

.bottom-back-button:hover {
  border-color: #38bdf8;
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.12);
}

@media (max-width: 700px) {
  .tool-header {
    display: grid;
    align-items: start;
  }
}
