:root {
  color-scheme: dark;
  --bashin-bg: #0f172a;
  --bashin-panel: rgba(30, 41, 59, 0.68);
  --bashin-panel-strong: rgba(15, 23, 42, 0.88);
  --bashin-border: rgba(255, 255, 255, 0.1);
  --bashin-text: #f8fafc;
  --bashin-muted: #94a3b8;
  --bashin-title: #f8fafc;
  --bashin-tool-title: #38bdf8;
  --bashin-brand-text: #f8fafc;
  --bashin-accent: #38bdf8;
  --bashin-accent-soft: rgba(56, 189, 248, 0.12);
  --bashin-accent-border: rgba(56, 189, 248, 0.35);
  --bashin-highlight: #f0c340;
  --bashin-highlight-deep: #d4a72a;
  --bashin-highlight-border: rgba(240, 195, 64, 0.38);
  --bashin-slot: #f59e0b;
  --bashin-slot-soft: rgba(245, 158, 11, 0.18);
  --bashin-font-display: "Outfit", sans-serif;
  --bashin-font-body: "Inter", sans-serif;
  --bashin-shell-width: 1720px;
  --bashin-shell-gap: 8px;
  --bashin-page-gutter: 8px;
  --bashin-panel-gap: 8px;
  --bashin-panel-pad: 12px;
  --bashin-radius: 10px;
  --bashin-panel-radius: 12px;
  --bashin-control-height: 38px;
  --bashin-control-radius: 8px;
  --bashin-control-dense-height: 32px;
  --bashin-control-dense-radius: 7px;
  --bashin-control-bg: rgba(15, 23, 42, 0.55);
  --bashin-control-bg-strong: rgba(15, 23, 42, 0.72);
  --bashin-control-hover-bg: rgba(255, 255, 255, 0.08);
  --bashin-control-active-bg: rgba(56, 189, 248, 0.2);
  --bashin-control-active-border: rgba(56, 189, 248, 0.55);
  --bashin-skill-pill-bg: rgba(15, 23, 42, 0.78);
  --bashin-skill-pill-border: rgba(148, 163, 184, 0.22);
  --bashin-skill-pill-radius: 7px;
  --bashin-skill-value: #6ee7b7;
}

* {
  box-sizing: border-box;
}

/* Shared compact data components used across the individual tools. */
.bashin-skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-height: 28px;
  padding: 3px 5px;
  border: 1px solid var(--bashin-skill-pill-border);
  border-radius: var(--bashin-skill-pill-radius);
  background: var(--bashin-skill-pill-bg);
  color: var(--bashin-text);
  font-size: 0.84rem;
  line-height: 1.2;
}

.bashin-skill-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 4px;
  object-fit: cover;
}

.bashin-skill-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.bashin-skill-meta,
.bashin-skill-value {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
}

.bashin-skill-value {
  color: var(--bashin-skill-value);
  font-variant-numeric: tabular-nums;
}

.bashin-preset-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--bashin-border);
  border-radius: var(--bashin-radius);
  background: rgba(2, 6, 23, 0.48);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.2);
}

.bashin-preset-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  flex: 1 1 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bashin-muted);
  cursor: pointer;
  font: 650 0.86rem/1 var(--bashin-font-display);
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease,
    box-shadow 0.14s ease;
}

.bashin-preset-slot + .bashin-preset-slot {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.bashin-preset-slot:first-child {
  border-radius: 9px 9px 0 0;
}

.bashin-preset-slot:last-child {
  border-radius: 0 0 9px 9px;
}

.bashin-preset-slot:hover,
.bashin-preset-slot:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--bashin-text);
}

.bashin-preset-slot:focus-visible {
  outline: 2px solid var(--bashin-highlight);
  outline-offset: -3px;
}

.bashin-preset-slot:is(.active, .is-active) {
  background: var(--bashin-slot-soft);
  color: var(--bashin-slot);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bashin-slot) 30%, transparent);
}

html {
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--bashin-bg);
  background-image:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.09), transparent 34rem),
    radial-gradient(circle at 50% 100%, rgba(30, 58, 138, 0.24), transparent 48rem);
  color: var(--bashin-text);
  font-family: var(--bashin-font-body);
}

.bashin-bar {
  width: calc(100% - 16px);
  max-width: var(--bashin-shell-width);
  height: 46px;
  margin: 8px auto;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--bashin-border);
  border-radius: var(--bashin-radius);
  background: var(--bashin-panel-strong);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bashin-brand {
  min-width: 0;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--bashin-brand-text);
  font-family: var(--bashin-font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.bashin-brand:focus-visible {
  outline: 2px solid var(--bashin-highlight);
  outline-offset: 2px;
}

.bashin-brand img {
  width: auto;
  height: 31px;
  display: block;
}

.bashin-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.bashin-nav a {
  min-height: 32px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 0;
  color: var(--bashin-muted);
  font-family: var(--bashin-font-body);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: none;
}

.bashin-nav a:hover {
  color: var(--bashin-muted);
}

.bashin-nav a:focus-visible {
  color: var(--bashin-text);
  outline: 2px solid var(--bashin-highlight);
  outline-offset: 2px;
}

.bashin-nav a[aria-current="page"] {
  background: transparent;
  color: var(--bashin-text);
  box-shadow: inset 0 -2px 0 var(--bashin-highlight);
}

.tool-header {
  position: relative;
  width: calc(100% - 16px);
  max-width: var(--bashin-shell-width);
  min-height: 48px;
  margin: 0 auto var(--bashin-shell-gap);
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.tool-title {
  margin: 0;
  padding-left: 0;
  color: var(--bashin-tool-title);
  font-family: var(--bashin-font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
}

.tool-header__meta {
  position: absolute;
  right: 4px;
  width: max-content;
  max-width: calc(50% - 100px);
  min-width: 0;
}

.tool-about {
  max-width: 960px;
  margin: 18px auto 32px;
  padding: 18px 24px;
  border-top: 1px solid var(--bashin-border);
  color: var(--bashin-muted);
  font-family: var(--bashin-font-body);
  text-align: center;
}

.tool-about h2 {
  margin: 0 0 6px;
  color: var(--bashin-title);
  font-family: var(--bashin-font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.tool-about p {
  max-width: 780px;
  margin: 0 auto;
}

.tool-about nav {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.tool-about a {
  color: var(--bashin-accent);
  text-decoration: none;
}

.tool-about a:hover,
.tool-about a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .tool-header {
    min-height: 0;
    margin-bottom: 0;
    padding: 0;
  }

  .tool-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .bashin-bar {
    height: auto;
    min-height: 46px;
    padding: 6px;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .bashin-brand {
    min-height: 44px;
    align-self: flex-start;
    padding: 0 4px;
  }

  .bashin-brand img {
    height: 29px;
  }

  .bashin-nav {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .bashin-nav::-webkit-scrollbar {
    display: none;
  }

  .bashin-nav a {
    min-height: 44px;
    padding: 0 8px;
    flex: 0 0 auto;
    font-size: 0.8rem;
  }

  .bashin-nav a:focus-visible {
    outline-offset: -3px;
  }

  .tool-header__meta {
    right: 3px;
  }
}

@media (max-width: 340px) {
  .bashin-nav a {
    padding-inline: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
