html {
  scrollbar-gutter: stable;
  background-color: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "IBM Plex Sans", "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
  line-height: 1.5;
  transition: 
    background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.2s ease;
}

/* Premium smooth layout element color fades on theme switch */
.sidebar, .content section, .workspace, .topbar, .tool-card, .toolbar, input, select, textarea {
  transition: 
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.2s ease,
    box-shadow 0.3s ease;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: background-image 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: #12374d;
  letter-spacing: 0.01em;
}

p,
label,
span,
li,
td,
th {
  color: inherit;
}

body.sidebar-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.28);
  background:
    radial-gradient(circle at 12% 5%, rgba(56, 189, 248, 0.18), transparent 33%),
    radial-gradient(circle at 86% 10%, rgba(34, 197, 94, 0.14), transparent 28%),
    linear-gradient(125deg, #f4fbff, #eef8ff 45%, #f6fff8);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 12px 28px rgba(13, 42, 64, 0.12);
  position: sticky;
  top: 0;
  z-index: 60;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #14b8a6 40%, transparent 82%);
  pointer-events: none;
}

.topbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  pointer-events: none;
}

.topbar-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.topbar .ghost-btn,
.topbar .top-link-btn,
.topbar #themeBtn {
  border-color: rgba(56, 189, 248, 0.33);
  border-radius: 0.9rem;
  min-height: 2.45rem;
  padding: 0.34rem 0.72rem;
  color: #13344d;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.14), transparent 42%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(233, 246, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 20px rgba(14, 116, 144, 0.12);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 120ms ease, box-shadow 140ms ease, border-color 120ms ease, background 140ms ease;
}

.topbar .ghost-btn:hover,
.topbar .top-link-btn:hover,
.topbar #themeBtn:hover {
  border-color: rgba(20, 184, 166, 0.42);
  color: #0f4256;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 197, 94, 0.14), transparent 40%),
    linear-gradient(155deg, #ffffff, rgba(224, 250, 244, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 26px rgba(13, 148, 136, 0.16);
  transform: translateY(-1px);
}

.icon-toggle-btn {
  width: 2.45rem;
  min-width: 2.45rem;
  min-height: 2.45rem;
  padding: 0;
  border-radius: 0.78rem;
  color: #0f3956;
  border-color: rgba(14, 165, 233, 0.46);
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.18), transparent 40%),
    linear-gradient(155deg, #f8fdff, #e8f4ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 7px 16px rgba(14, 116, 144, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-icon {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.topbar-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-icon-theme {
  width: 1.46rem;
  height: 1.46rem;
  justify-content: center;
  padding-left: 0;
}

.topbar-icon-theme svg {
  transform: translateX(-1px) scale(0.96);
  transform-origin: center;
}

.topbar-icon-offline {
  width: 1.46rem;
  height: 1.46rem;
}

.topbar-icon-offline svg {
  width: 100%;
  height: 100%;
  stroke-width: 2.08;
  transform: scale(1.12);
  transform-origin: center;
}

.topbar .icon-toggle-btn:hover {
  border-color: rgba(20, 184, 166, 0.52);
  color: #0a3f59;
  background:
    radial-gradient(circle at 18% 0%, rgba(20, 184, 166, 0.24), transparent 42%),
    linear-gradient(155deg, #ffffff, #dcf8ff);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar .toggle-field {
  display: none;
}

.visitor-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.32rem 0.72rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 0% 50%, rgba(56, 189, 248, 0.14), transparent 40%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(227, 244, 255, 0.9));
  color: #114463;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 20px rgba(14, 116, 144, 0.12);
}

#offlineModeToggle.offline-toggle-btn.active {
  border-color: rgba(5, 150, 105, 0.72);
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 0%, rgba(52, 211, 153, 0.24), transparent 44%),
    linear-gradient(150deg, #0f766e, #0b4f49);
  box-shadow:
    inset 0 1px 0 rgba(167, 243, 208, 0.26),
    0 12px 24px rgba(15, 118, 110, 0.28);
}

#themeBtn.icon-toggle-btn.active {
  border-color: rgba(3, 105, 161, 0.75);
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.24), transparent 44%),
    linear-gradient(150deg, #0f4c81, #1d4e89);
  box-shadow:
    inset 0 1px 0 rgba(125, 211, 252, 0.24),
    0 12px 24px rgba(3, 105, 161, 0.28);
}

.menu-btn {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid color-mix(in srgb, var(--cat-accent) 28%, var(--border) 72%);
  border-radius: 0.6rem;
  background: linear-gradient(145deg, #ffffff, var(--cat-surface));
  color: var(--text);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.menu-btn:hover {
  border-color: var(--cat-accent);
  background: var(--surface-soft);
}

.menu-icon {
  position: relative;
  display: block;
  width: 1.05rem;
  height: 0.78rem;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  border-radius: 999px;
  background: currentColor;
  height: 0.12rem;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
}

.menu-icon {
  top: 5%;
  transform: translateY(-50%);
}

.menu-icon::before {
  top: -0.3rem;
}

.menu-icon::after {
  top: 0.3rem;
}

.routing-field {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

#routingStyleSelect {
  min-width: 116px;
  height: 2.15rem;
  padding: 0 1.8rem 0 0.55rem;
}

.toggle-field {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.toggle-field input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0.24rem 0.42rem;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.10), transparent 36%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.34), rgba(241, 249, 255, 0.10));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 18px rgba(13, 42, 64, 0.05);
  text-decoration: none;
  color: inherit;
}

.topbar h1 {
  color: #0b1f47;
  letter-spacing: 0.01em;
}

.brand-wordmark {
  display: block;
  width: auto;
  height: 3.45rem;
  max-width: min(58vw, 420px);
  object-fit: contain;
}

.brand-mark {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cat-accent) 30%, rgba(255, 255, 255, 0.3) 70%);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h1, h2, h3 {
  margin: 0;
}

.topbar p {
  margin: 0.2rem 0 0;
  color: #2f5e58;
  font-size: 0.9rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.95rem;
  padding: 0.95rem;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.sidebar,
.content section,
.workspace {
  background:
    radial-gradient(circle at 14% 8%, var(--inspire-glow-a), transparent 34%),
    radial-gradient(circle at 88% 0%, var(--inspire-glow-b), transparent 30%),
    linear-gradient(145deg, var(--inspire-surface-a), var(--inspire-surface-b) 52%, rgba(255, 255, 255, 0.96));
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translate3d(0, 0, 0);
}

.sidebar {
  width: min(320px, calc(100vw - 1.2rem));
  padding: 1.05rem;
  height: calc(100vh - 5.8rem);
  position: fixed;
  left: 0.6rem;
  top: var(--sticky-offset);
  overflow: auto;
  z-index: 45;
  transform: translateX(-120%);
  transition: transform 180ms ease;
  box-shadow:
    0 14px 34px rgba(13, 42, 64, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body.sidebar-open .sidebar {
  transform: translateX(0);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  border: 0;
  background: rgba(9, 16, 14, 0.22);
  backdrop-filter: blur(1.2px);
}

.scroll-top-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
  color: #12405a;
  background:
    radial-gradient(circle at 30% 0%, rgba(56, 189, 248, 0.18), transparent 52%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(224, 246, 255, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(14, 116, 144, 0.2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  z-index: 52;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 34px rgba(13, 148, 136, 0.24);
  transform: translateY(-1px) scale(1.03);
}

.scroll-top-btn:focus-visible {
  outline: 2px solid rgba(2, 132, 199, 0.38);
  outline-offset: 2px;
}

.sidebar h2 {
  font-size: 1rem;
  color: #1f2937;
}

.category-header {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
}

#categorySortFilter {
  width: 100%;
}

.tool-nav-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.08), transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(243, 250, 255, 0.92));
  color: var(--text);
  border-radius: 0.75rem;
  padding: 0.6rem 0.68rem;
  cursor: pointer;
  font-size: 0.88rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.tool-nav-btn:hover,
.tool-nav-btn.active {
  background:
    radial-gradient(circle at 0% 0%, rgba(45, 212, 191, 0.12), transparent 28%),
    linear-gradient(160deg, #ffffff, #edfdfa);
  border-color: var(--cat-accent);
}

.cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  border-radius: 0.78rem;
  padding: 0.68rem 0.78rem;
  cursor: pointer;
  margin-bottom: 0.45rem;
  font-size: 0.93rem;
  transition: transform 140ms ease, border-color 140ms ease, background 160ms ease, box-shadow 160ms ease;
}

.cat-btn.cat-themed {
  border-color: var(--cat-border);
  background: linear-gradient(160deg, var(--cat-surface), rgba(255, 255, 255, 0.94) 78%);
}

.cat-btn.cat-themed .cat-name {
  color: var(--cat-text);
}

.cat-btn:hover,
.cat-btn.active {
  background: linear-gradient(160deg, var(--cat-surface), #ffffff);
  border-color: var(--cat-accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13, 42, 64, 0.08);
}

.cat-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.cat-count {
  color: var(--muted);
  font-size: 0.8rem;
  min-width: 1.8rem;
  text-align: right;
}

.cat-pop {
  font-size: 0.7rem;
  padding: 0.12rem 0.5rem;
}

.cat-pop.pop-high {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.1);
}

.cat-pop.pop-medium {
  color: #0369a1;
  border-color: rgba(3, 105, 161, 0.24);
  background: rgba(14, 165, 233, 0.12);
}

.cat-pop.pop-low {
  color: #92400e;
  border-color: rgba(146, 64, 14, 0.24);
  background: rgba(251, 191, 36, 0.12);
}

.content {
  display: grid;
  gap: 1.15rem;
}

.content section,
.workspace {
  padding: 1.15rem;
}

.content section > h2,
.workspace-head h2,
#workspaceTitle {
  letter-spacing: -0.02em;
}

.ad-section {
  padding: 0.9rem 1rem;
}

.ad-label {
  margin: 0 0 0.55rem;
  color: #64748b;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 0.58rem;
  width: 100%;
  align-items: center;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 1rem;
  padding: 0.58rem;
  background:
    radial-gradient(circle at 6% 0%, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.12), transparent 24%),
    linear-gradient(130deg, rgba(255, 255, 255, 0.96), rgba(244, 251, 255, 0.9)),
    linear-gradient(160deg, var(--cat-surface), var(--surface));
  box-shadow: var(--shadow-soft);
}

.toolbar input,
.toolbar select {
  border: 1px solid rgba(56, 189, 248, 0.34);
  background:
    radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.14), transparent 32%),
    linear-gradient(145deg, #f8fdff, #ecf8ff 58%, #e8fbf8);
  color: #183244;
  -webkit-text-fill-color: #183244;
}

.toolbar input::placeholder {
  color: #4c6b7d;
}

.toolbar select option {
  background-color: #eef8ff;
  color: #183244;
}

.toolbar .menu-btn {
  width: 2.45rem;
  height: 2.45rem;
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(145deg, #ffffff, #e7f4ff);
  color: #144260;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid rgba(100, 162, 196, 0.34);
  border-radius: 0.8rem;
  padding: 0.62rem 0.78rem;
  min-height: 2.5rem;
  line-height: 1.35;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--cat-surface) 34%, #ffffff 66%));
  color: var(--text-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

select {
  padding-top: 0.58rem;
  padding-bottom: 0.58rem;
  line-height: 1.25;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--cat-border);
  border-color: var(--cat-accent);
}

#searchInput {
  width: 100%;
  min-width: 0;
  height: 2.65rem;
  padding: 0 0.8rem;
}

#statusFilter {
  width: 112px;
  min-width: 112px;
  height: 2.65rem;
  padding: 0 2rem 0 0.7rem;
}

#tagFilter {
  width: 156px;
  min-width: 156px;
  height: 2.65rem;
  padding: 0 2rem 0 0.78rem;
}

#toolSortFilter {
  width: 164px;
  min-width: 164px;
  height: 2.65rem;
  padding: 0 2rem 0 0.7rem;
  color: #183244;
  -webkit-text-fill-color: #183244;
}

#toolSortFilter option {
  color: #183244;
}

#toolSortFilter option:checked {
  background-color: #dbeefe;
  color: #0f2232;
}

.tool-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 0.55rem;
  align-content: start;
  min-height: 220px;
  contain: layout paint;
}

.tool-card {
  border: 1px solid var(--border);
  border-radius: 0.82rem;
  background: #ffffff;
  padding: 0.62rem;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 100ms ease, border-color 100ms ease, background-color 100ms ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 148px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  contain: content;
}

.tool-card:hover {
  border-color: rgba(14, 165, 233, 0.38);
  box-shadow: 0 4px 10px rgba(13, 42, 64, 0.1);
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.tool-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  color: #111827;
  line-height: 1.18;
  min-height: 2.1em;
  font-size: 0.84rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-meta {
  margin-top: 0.24rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.tool-category-line {
  margin-top: 0.42rem;
}

.tool-description {
  line-height: 1.32;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-usage-note {
  color: #3f677a;
  font-weight: 700;
  font-size: 0.66rem;
}

.tool-badges {
  margin-top: auto;
  padding-top: 0.38rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.08rem 0.44rem;
  border: 1px solid var(--border);
  font-size: 0.62rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
}

.pill.ok {
  color: var(--ok);
  border-color: rgba(19, 111, 58, 0.25);
  background: rgba(19, 111, 58, 0.08);
}

.pill.warn {
  color: var(--warn);
  border-color: rgba(160, 66, 22, 0.24);
  background: rgba(160, 66, 22, 0.08);
}

.pill.backend {
  color: #9a3412;
  border-color: rgba(154, 52, 18, 0.28);
  background: rgba(249, 115, 22, 0.1);
}

.pill.local {
  color: #155e75;
  border-color: rgba(21, 94, 117, 0.24);
  background: rgba(6, 182, 212, 0.1);
}

.pill.new {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.28);
  background: rgba(251, 191, 36, 0.18);
}

.pill.category {
  color: var(--cat-text);
  border-color: color-mix(in srgb, var(--cat-accent) 36%, transparent 64%);
  background: color-mix(in srgb, var(--cat-surface) 78%, #ffffff 22%);
  font-weight: 600;
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--cat-border);
}

.workspace-head-main {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.workspace-head h2,
#workspaceTitle {
  color: #111827;
}

#workspaceDesc {
  color: var(--text-soft);
}

.workspace-help-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 999px;
  padding: 0.22rem 0.56rem 0.22rem 0.34rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f4f6e;
  background: linear-gradient(145deg, #ffffff, #e9f6ff);
  white-space: nowrap;
}

.workspace-help-link:hover {
  border-color: rgba(20, 184, 166, 0.6);
  color: #0b5a5f;
  background: linear-gradient(145deg, #ffffff, #ddfbf3);
}

.workspace-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.workspace-body {
  margin-top: 0.5rem;
  min-height: 0;
  display: grid;
  gap: 0.55rem;
}

.workspace-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(210px, 0.8fr);
  gap: 0.5rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 0.78rem;
  padding: 0.42rem 0.5rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.14), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.1), transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(241, 251, 255, 0.92));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

body.tool-scoped-page .seo-hero {
  padding: 0.9rem 1rem;
  margin-bottom: 0;
  min-height: 0;
}

body.tool-scoped-page .seo-hero-copy {
  max-width: 100%;
}

body.tool-scoped-page .hero-badge,
body.tool-scoped-page .hero-brand-panel,
body.tool-scoped-page .home-stats {
  display: none;
}

body.tool-scoped-page .seo-hero h1 {
  max-width: 100%;
  font-size: clamp(1.4rem, 1vw + 1rem, 2rem);
  line-height: 1.12;
}

body.tool-scoped-page .seo-hero p {
  margin-top: 0.3rem;
  max-width: 100%;
  font-size: 0.98rem;
  line-height: 1.55;
}

.workspace-intro-copy h3 {
  margin: 0.16rem 0 0;
  color: #0f2f47;
  font-size: 0.9rem;
  line-height: 1.2;
}

.workspace-intro-copy p {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.79rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.workspace-intro-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.13rem 0.46rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: var(--accent-strong);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.workspace-intro-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  align-content: start;
}

.workspace-intro-metric {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.62rem;
  padding: 0.36rem 0.42rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.74);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.3rem;
  row-gap: 0.03rem;
  align-items: center;
  min-width: 0;
}

.workspace-intro-metric .metric-icon {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  background: rgba(14, 165, 233, 0.12);
  color: #0f4f6e;
}

.workspace-intro-metric.is-ok .metric-icon {
  background: rgba(34, 197, 94, 0.16);
  color: #166534;
}

.workspace-intro-metric.is-off .metric-icon {
  background: rgba(239, 68, 68, 0.14);
  color: #991b1b;
}

.workspace-intro-metric span {
  color: #5b7384;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-intro-metric strong {
  color: #12374d;
  font-size: 0.7rem;
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

.tool-panel {
  display: grid;
  gap: 0.7rem;
  border: 1px solid var(--cat-border);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 88% 0%, rgba(56, 189, 248, 0.12), transparent 34%),
    linear-gradient(160deg, var(--cat-surface), #ffffff 82%);
  padding: 0.9rem;
}

.workspace-body,
.tool-panel,
.tool-panel > *,
.row > *,
.io-field-shell,
.result-wrap,
.workspace-intro,
.workspace-intro > *,
.content,
.content > *,
.right-rail,
.right-rail > * {
  min-width: 0;
}

.row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.58rem 0.92rem;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 140ms ease, border-color 120ms ease, background 140ms ease, color 140ms ease;
}

.top-link-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  justify-content: center;
}

.primary-btn {
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.22), transparent 44%),
    linear-gradient(140deg, #0f766e, #0284c7);
  color: #fff;
  border-color: rgba(15, 118, 110, 0.25);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.22);
  font-weight: 700;
}

.ghost-btn {
  background:
    radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.14), transparent 34%),
    linear-gradient(160deg, #ffffff, color-mix(in srgb, var(--cat-surface) 56%, #ffffff 44%));
  color: #13425d;
  border-color: rgba(56, 189, 248, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 5px 14px rgba(14, 116, 144, 0.12);
  font-weight: 700;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn:hover {
  border-color: rgba(20, 184, 166, 0.55);
  background:
    radial-gradient(circle at 8% 0%, rgba(45, 212, 191, 0.16), transparent 36%),
    linear-gradient(160deg, #ffffff, #eafff8 68%);
  color: #0d5360;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(13, 148, 136, 0.16);
}

.primary-btn:hover {
  background:
    radial-gradient(circle at 18% 0%, rgba(45, 212, 191, 0.24), transparent 42%),
    linear-gradient(140deg, #0f766e, #0ea5e9);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.28);
}

textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: auto;
}

.result > * {
  min-width: 0;
  max-width: 100%;
}

.result img,
.result svg,
.result canvas,
.result iframe,
.result video {
  display: block;
  max-width: 100%;
  height: auto;
}

.result table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.result pre,
.result code,
.result samp {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.media-result {
  padding: 0.8rem;
  overflow: hidden;
}

.svg-viewer-preview {
  position: relative;
  min-height: clamp(260px, 42vh, 560px);
  background:
    radial-gradient(circle at 20% 16%, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(34, 197, 94, 0.12), transparent 26%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(240, 248, 255, 0.94));
}

.svg-preview-stage {
  min-height: inherit;
  max-height: calc(min(62vh, 860px) - 1.6rem);
  display: grid;
  place-items: center;
  overflow: auto;
  padding: clamp(0.7rem, 1.8vw, 1.2rem);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 0.78rem;
  background:
    radial-gradient(circle at 24% 18%, rgba(96, 165, 250, 0.10), transparent 26%),
    radial-gradient(circle at 76% 12%, rgba(34, 197, 94, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.94));
}

.rendered-svg-preview {
  width: auto;
  max-width: 100%;
  max-height: clamp(220px, 40vh, 500px);
  height: auto;
}

.svg-preview-stage > .rendered-svg-preview {
  margin: 0 auto;
}

.io-field-shell {
  position: relative;
  width: 100%;
}

.io-inline-actions {
  position: absolute;
  top: 0.42rem;
  right: 0.42rem;
  display: inline-flex;
  gap: 0.35rem;
  z-index: 3;
}

.io-icon-btn {
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.io-icon-btn:hover {
  color: var(--cat-accent);
  border-color: var(--cat-accent);
  background: var(--surface-soft);
}

.io-icon-btn svg {
  width: 0.95rem;
  height: 0.95rem;
}

.io-input-shell textarea,
.io-input-shell input[type="text"],
.io-input-shell input[type="number"],
.io-input-shell input[type="url"],
.io-input-shell input[type="email"],
.io-input-shell input[type="tel"],
.io-input-shell input[type="search"],
.io-input-shell input[type="password"] {
  width: 100%;
  padding-right: 4.15rem;
}

.io-input-shell.has-sample textarea,
.io-input-shell.has-sample input[type="text"],
.io-input-shell.has-sample input[type="number"],
.io-input-shell.has-sample input[type="url"],
.io-input-shell.has-sample input[type="email"],
.io-input-shell.has-sample input[type="tel"],
.io-input-shell.has-sample input[type="search"],
.io-input-shell.has-sample input[type="password"] {
  padding-right: 6.25rem;
}

.io-output-shell .result,
.result-wrap .result {
  padding-right: 4.2rem;
}

.io-input-shell textarea,
.io-output-shell .result,
.result-wrap .result,
.tool-panel textarea,
.tool-panel .result {
  min-height: clamp(260px, 38vh, 420px);
}

.result-wrap {
  position: relative;
}

.result-wrap .io-inline-actions {
  top: 0.45rem;
  right: 0.45rem;
}

.jwt-premium {
  overflow: hidden;
}

.jwt-premium-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0.85rem;
  align-items: start;
}

.jwt-premium-pane {
  border: 1px solid rgba(94, 143, 171, 0.26);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.1), transparent 32%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.95));
  padding: 0.95rem;
  min-width: 0;
}

.jwt-premium-header {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.jwt-premium-kicker,
.jwt-part-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(8, 145, 178, 0.2);
  background: rgba(236, 254, 255, 0.9);
  color: #155e75;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jwt-premium-header h4,
.jwt-output-hero h5,
.jwt-part-card h5,
.jwt-inspection-now h5,
.jwt-issue-panel h5,
.jwt-empty-state h5 {
  margin: 0;
  color: #0f172a;
}

.jwt-premium-header p,
.jwt-output-hero p,
.jwt-empty-state p,
.jwt-inline-note,
.jwt-inspection-now p {
  margin: 0;
  color: #516579;
  line-height: 1.55;
}

.jwt-input-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.68rem;
}

.jwt-main-input {
  min-height: 156px;
}

.jwt-part-input {
  min-height: 108px;
}

.jwt-action-row {
  margin-top: 0.8rem;
}

.jwt-result {
  padding: 0.9rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(8, 145, 178, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fcff, #f4f9fd);
  font-family: inherit;
  white-space: normal;
}

.jwt-output-shell {
  display: grid;
  gap: 0.82rem;
}

.jwt-output-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 1rem;
  padding: 0.9rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.12), transparent 28%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.96));
}

.jwt-summary-grid,
.jwt-claims-grid,
.jwt-section-grid {
  display: grid;
  gap: 0.68rem;
}

.jwt-section-grid {
  grid-template-columns: minmax(0, 1fr);
}

.jwt-part-card,
.jwt-inspection-panel,
.jwt-issue-panel {
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 1rem;
  padding: 0.9rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.08), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95));
}

.jwt-part-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.jwt-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.7rem;
}

.jwt-meta-row span,
.jwt-code-label {
  font-size: 0.75rem;
  color: #516579;
}

.jwt-meta-row span {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.jwt-inline-note {
  margin-bottom: 0.7rem;
}

.jwt-inline-note.is-warn {
  color: #9a3412;
}

.jwt-code-label {
  margin: 0.2rem 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.jwt-code-block.is-raw {
  background: #f3f7fb;
}

.jwt-inspection-panel {
  display: grid;
  gap: 0.8rem;
}

.jwt-inspection-now {
  display: grid;
  gap: 0.28rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 0.78rem;
}

.jwt-issue-list {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
  color: #8a2d18;
}

.jwt-empty-state {
  min-height: 100%;
  display: grid;
  place-content: center;
  gap: 0.42rem;
  text-align: left;
  padding: 1rem;
}

.jwt-empty-state.is-error {
  place-content: start;
}

.jwt-empty-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  background: rgba(224, 242, 254, 0.9);
  color: #075985;
  font-size: 0.74rem;
  font-weight: 700;
}

.http-status-output,
.http-status-quick {
  font-family: inherit;
  white-space: normal;
}

.http-status-results,
.http-status-reference {
  display: grid;
  gap: 0.8rem;
}

.http-status-results-head h4,
.http-status-reference-head h4,
.http-status-card h4 {
  margin: 0;
  color: #0f172a;
}

.http-status-results-head p,
.http-status-message {
  margin: 0;
  color: #516579;
  line-height: 1.55;
}

.http-status-card {
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 1rem;
  padding: 0.9rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.08), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95));
  display: grid;
  gap: 0.72rem;
}

.http-status-code {
  display: inline-flex;
  margin-bottom: 0.25rem;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: rgba(236, 254, 255, 0.9);
  border: 1px solid rgba(8, 145, 178, 0.2);
  color: #155e75;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-weight: 700;
}

.http-status-insights {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.http-status-mini-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.72rem;
  display: grid;
  gap: 0.3rem;
}

.http-status-mini-card strong {
  color: #0f172a;
}

.http-status-mini-card span {
  color: #516579;
  line-height: 1.55;
}

.http-status-table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.http-status-table thead th,
.http-status-table tbody td {
  text-align: left;
  padding: 0.68rem 0.72rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  vertical-align: top;
}

.http-status-table thead th {
  color: #1e3a5f;
  font-size: 0.82rem;
}

.http-status-table tbody td {
  color: #4b5f74;
  line-height: 1.5;
}

.http-status-empty {
  color: #516579;
}

.color-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
}

.color-picker-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.color-picker-standalone {
  width: 3.4rem;
  min-width: 3.4rem;
  height: 2.4rem;
  padding: 0.2rem;
  border-radius: 0.6rem;
  cursor: pointer;
}

.color-preview-card {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  border: 1px solid var(--cat-border);
  border-radius: 0.75rem;
  padding: 0.7rem;
  background: linear-gradient(150deg, #ffffff, var(--cat-surface));
}

.color-swatch-large {
  min-height: 110px;
  border-radius: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.color-values {
  display: grid;
  gap: 0.45rem;
  align-content: center;
}

.color-values code,
.image-color-sidebar code {
  display: block;
  border: 1px solid var(--cat-border);
  border-radius: 0.55rem;
  padding: 0.45rem 0.55rem;
  background: #ffffff;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.image-color-picker-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 0.75rem;
}

.image-color-canvas-wrap {
  border: 1px solid var(--cat-border);
  border-radius: 0.75rem;
  overflow: auto;
  background: #fff;
}

.image-color-canvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
}

.image-color-sidebar {
  border: 1px solid var(--cat-border);
  border-radius: 0.75rem;
  padding: 0.7rem;
  background: linear-gradient(155deg, #ffffff, var(--cat-surface));
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.color-chip {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.24);
  border-radius: 0.45rem;
  cursor: pointer;
}

.footer {
  color: var(--text-soft);
  text-align: center;
  padding: 0 1.15rem 1.35rem;
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.1), transparent 28%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.88), rgba(239, 249, 252, 0.86));
  box-shadow: var(--shadow-soft);
  width: min(860px, calc(100vw - 2.3rem));
  margin: 0 auto;
}

.footer-brand img {
  border-radius: 0.35rem;
  flex: 0 0 auto;
}

.footer-brand-copy {
  display: grid;
  gap: 0.08rem;
  text-align: center;
}

.footer-brand-copy span {
  display: block;
}

.footer-links {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  width: min(860px, calc(100vw - 2.3rem));
  margin-inline: auto;
}

.footer-links a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.left-rail,
.right-rail {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  position: relative;
  z-index: 20;
}

.ad-rail-panel {
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.12), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(245, 158, 11, 0.11), transparent 35%),
    linear-gradient(145deg, var(--inspire-surface-a), var(--inspire-surface-c) 58%, #ffffff);
  border: 1px solid var(--cat-border);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  padding: 1rem;
  position: sticky;
  top: var(--sticky-offset);
  z-index: 25;
}

.ad-rail-stack {
  display: grid;
  gap: 0.8rem;
}

.ad-rail-slot {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 0.75rem;
}

.ad-rail-slot:first-child {
  border-top: 0;
  padding-top: 0;
}

.ad-rail-panel h3 {
  color: #7c2d12;
  margin-bottom: 0.25rem;
}

#toolDirectorySection > h2 {
  color: #0b4f49;
}

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 0.48rem;
  align-items: stretch;
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: 1.1rem;
  padding: 0.42rem 0.46rem;
  margin-bottom: 0.26rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.16), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.12), transparent 32%),
    linear-gradient(150deg, #f7fcff, #f2fbff 58%, #f8fffb);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.seo-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
  padding: 0.1rem 0;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.18rem;
  margin-bottom: 0.14rem;
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: #15445e;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-hero h1 {
  margin: 0;
  max-width: 13ch;
  line-height: 1.06;
  font-size: clamp(1.02rem, 1.1vw + 0.88rem, 1.6rem);
}

.seo-hero p {
  margin: 0.08rem 0 0;
  max-width: 100%;
  font-size: 0.84rem;
  line-height: 1.34;
}

.hero-brand-panel {
  position: relative;
  width: 100%;
  min-height: 144px;
  align-self: stretch;
  /* Bleed to the right, top, and bottom edges of the seo-hero */
  margin: -0.42rem -0.46rem -0.42rem 0;
  /* Left corners rounded, right corners match seo-hero outer radius */
  border-radius: 0.9rem 1rem 1rem 0.9rem;
  padding: 0.6rem 0.7rem;
  border: none;
  border-left: 1px solid rgba(56, 189, 248, 0.2);
  background:
    radial-gradient(circle at 16% 12%, rgba(96, 165, 250, 0.12), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(34, 197, 94, 0.10), transparent 26%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(240, 248, 255, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 2px 0 6px rgba(56, 189, 248, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-brand-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -42px -34px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0) 72%);
  pointer-events: none;
}

.hero-brand-panel::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0) 72%);
  pointer-events: none;
}

.hero-brand-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 0.18rem 0.22rem 0.12rem;
  border: 1px solid rgba(148, 184, 197, 0.14);
  border-radius: 1rem;
  background: transparent;
  overflow: hidden;
}

.hero-brand-art {
  display: block;
  width: 100%;
  max-width: 286px;
  height: auto;
  max-height: 66px;
  object-fit: contain;
}

.hero-brand-copy {
  position: relative;
  z-index: 1;
  margin-top: 0.24rem;
  display: grid;
  gap: 0.16rem;
  color: #183244;
}

.hero-brand-copy strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.8rem;
  line-height: 1.15;
}

.hero-brand-copy span {
  color: #537086;
  font-size: 0.65rem;
  line-height: 1.32;
}

.hero-brand-meta {
  position: relative;
  z-index: 1;
  margin-top: 0.26rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
}

.hero-brand-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.42rem;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.10), transparent 30%),
    rgba(255, 255, 255, 0.84);
  color: #23506d;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.32rem;
  width: 100%;
  margin-top: 0.5rem;
}

.home-stat-card {
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 0.72rem;
  padding: 0.38rem 0.46rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.14), transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(241, 251, 255, 0.9));
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.home-stat-label {
  display: inline-block;
  color: #557082;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-stat-card strong {
  display: block;
  margin-top: 0.14rem;
  color: #12374d;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(0.86rem, 0.84vw, 1.02rem);
}

.home-stat-card p {
  margin: 0.1rem 0 0;
  color: var(--text-soft);
  font-size: 0.68rem;
  line-height: 1.28;
}

.ui-field {
  display: grid;
  gap: 0.32rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.9rem;
  padding: 0.72rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.06), transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 255, 0.88));
}

.ui-field-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tool-hint {
  margin: 0;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 0.82rem;
  padding: 0.75rem 0.82rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.08), transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.76), rgba(240, 249, 252, 0.82));
}

.protected-file-panel {
  gap: 0.82rem;
}

.protected-file-actions {
  align-items: center;
}

.protected-file-learning {
  border: 1px solid rgba(14, 116, 144, 0.18);
  border-radius: 0.82rem;
  background: linear-gradient(160deg, rgba(240, 253, 250, 0.88), rgba(255, 255, 255, 0.94));
  color: var(--text);
  display: grid;
  gap: 0.44rem;
  padding: 0.78rem 0.88rem;
}

.protected-file-learning:empty {
  display: none;
}

.protected-file-learning strong {
  font-size: 0.86rem;
}

.protected-file-learning ul {
  margin: 0;
  padding-left: 1.1rem;
}

.protected-file-learning li {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.protected-file-preview iframe {
  border: 0;
  border-radius: 0.65rem;
  display: block;
  min-height: 520px;
  width: 100%;
}

.protected-file-preview img {
  display: block;
  height: auto;
  max-width: 100%;
  border-radius: 0.65rem;
}

.seo-hero h1 {
  margin: 0;
  font-size: clamp(0.92rem, 0.72vw + 0.7rem, 1.28rem);
  color: #0b4f49;
  max-width: none;
  position: relative;
  z-index: 1;
  line-height: 1.14;
}

.seo-hero p {
  margin: 0.2rem 0 0;
  max-width: 100%;
  color: var(--text-soft);
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  line-height: 1.34;
}

.seo-content {
  margin-top: 0.8rem;
  border: 1px solid var(--cat-border);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.09), transparent 36%),
    linear-gradient(165deg, #ffffff, var(--inspire-surface-a));
}

#seo-content-block.seo-content {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: #184154;
  border-color: rgba(20, 126, 161, 0.2);
  border-radius: 1rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.14), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.16), transparent 34%),
    linear-gradient(165deg, #fbfffd, #f2fbff 58%, #f5fff9);
}

#seo-content-block.seo-content h2 {
  color: #0f5f63;
}

#seo-content-block.seo-content h3 {
  color: #1d4e89;
}

#seo-content-block.seo-content p,
#seo-content-block.seo-content li {
  line-height: 1.68;
}

#seo-content-block.seo-content a {
  color: #0a7a63;
  font-weight: 600;
}

#seo-content-block.seo-content a:hover {
  color: #0b4f49;
}

#seo-content-block.seo-content a.seo-inline-link,
#seo-content-block.seo-content a.seo-inline-link:hover {
  text-decoration: none;
}

.seo-content h2,
.seo-content h3 {
  margin-top: 0.45rem;
  margin-bottom: 0.45rem;
}

.seo-content p {
  margin-top: 0;
}

.seo-link-list {
  margin: 0.2rem 0 0.8rem;
  padding-left: 1.1rem;
}

.seo-link-list a {
  color: #0f766e;
  text-decoration: none;
}

.seo-link-list a:hover {
  color: #0b4f49;
  text-decoration: none;
}

.roadmap-section h3 {
  color: #1e3a8a;
}

.arch-builder h3 {
  color: #0f766e;
}

.ad-slot {
  border: 1px dashed var(--border);
  border-radius: 0.65rem;
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fff;
}

#leftRailAdSlot,
#leftRailAdSlotSecondary,
#rightRailAdSlot,
#rightRailAdSlotSecondary {
  border-color: rgba(56, 189, 248, 0.34);
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.14), transparent 34%),
    linear-gradient(150deg, #f8fdff, #ecf8ff 58%, #e9fbf8);
}

body.tool-scoped-page.home-with-right-rail .layout {
  max-width: 1100px;
  grid-template-columns: minmax(0, 1fr);
}

body.tool-scoped-page .content {
  grid-column: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid;
  gap: 0.85rem;
}

body.tool-scoped-page #seo-content-block {
  grid-column: 1;
  width: 100%;
  max-width: 1100px;
  justify-self: center;
  position: relative;
  z-index: 1;
}

body.tool-scoped-page.home-with-right-rail .left-rail {
  display: none !important;
}

body.tool-scoped-page.home-with-right-rail .right-rail {
  display: none !important;
}

body.tool-scoped-page #workspaceSection {
  margin: 0;
  scroll-margin-top: calc(var(--sticky-offset) + 0.25rem);
}

body.tool-scoped-page .content > .seo-hero {
  order: 1;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

body.tool-scoped-page .content > #workspaceSection {
  order: 2;
}

body.tool-scoped-page .content > #seo-content-block {
  order: 3;
}

body.tool-scoped-page #workspaceSection .workspace-head {
  margin-bottom: 0.2rem;
}

body.tool-scoped-page #workspaceDesc {
  margin-bottom: 0.5rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.45rem;
}

.bmi-calculator-pro {
  background:
    radial-gradient(circle at 8% 4%, rgba(14, 165, 233, 0.12), transparent 38%),
    radial-gradient(circle at 96% 96%, rgba(22, 163, 74, 0.09), transparent 35%),
    linear-gradient(165deg, #fcfdff, #f4f9ff 58%, #f6fff9);
}

.bmi-shell {
  display: grid;
  gap: 1.05rem;
}

.bmi-input-panel,
.bmi-output-panel {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.96);
  padding: 1rem;
  display: grid;
  gap: 0.88rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.bmi-mode-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.bmi-mode-tab {
  border: 1px solid #bcd2e3;
  background: #eef6fd;
  color: #31506a;
  border-radius: 0.7rem;
  padding: 0.5rem 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.bmi-mode-tab.active {
  border-color: #246ca5;
  background: #356fa5;
  color: #fff;
}

.bmi-form-grid,
.bmi-mode-group {
  display: grid;
  gap: 0.85rem;
}

.bmi-mode-group[hidden] {
  display: none !important;
}

.bmi-control-shell {
  display: grid;
  gap: 0.45rem;
}

.bmi-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(12, 88, 161, 0.28);
  border-radius: 0.8rem;
  background: linear-gradient(160deg, #ffffff, #f7fbff);
  padding: 0.38rem 0.72rem;
}

.bmi-number-input {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 2.35rem;
  font-size: 2rem;
  line-height: 1;
  font-weight: 600;
  color: #0f172a;
}

.bmi-number-input:focus {
  outline: none;
}

.bmi-suffix {
  color: #6b7280;
  font-size: 1.9rem;
  font-weight: 600;
}

.bmi-inline-range {
  height: 0.33rem;
}

.bmi-gender-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.bmi-gender-btn {
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 2rem;
  padding: 0;
  min-height: 2.4rem;
  cursor: pointer;
}

.bmi-gender-btn::before {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 0.2rem solid #356ca1;
  margin-right: 0.45rem;
  vertical-align: middle;
}

.bmi-gender-btn.active::before {
  background: #356ca1;
  box-shadow: inset 0 0 0 0.16rem #f8fafc;
}

.bmi-us-height {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.bmi-switch-field {
  display: grid;
  gap: 0.45rem;
}

.bmi-switch-field [hidden] {
  display: none !important;
}

.bmi-switch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.bmi-link-switch {
  border: 0;
  background: transparent;
  color: #0c5ea8;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.bmi-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.bmi-result-line {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bmi-result-line strong {
  font-size: 2.05rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.bmi-category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.bmi-category-chip.underweight {
  background: #fff2e8;
  color: #9a3412;
}

.bmi-category-chip.normal {
  background: #ecfdf3;
  color: #166534;
}

.bmi-category-chip.overweight {
  background: #fef9c3;
  color: #854d0e;
}

.bmi-category-chip.obesity {
  background: #fee2e2;
  color: #991b1b;
}

.bmi-gauge-wrap {
  display: grid;
  justify-items: stretch;
}

.bmi-gauge {
  width: min(100%, 39rem);
  display: block;
}

.bmi-gauge-band-label {
  fill: #415a6e;
  font-size: 13px;
  font-weight: 600;
}

.bmi-gauge-center {
  fill: #0f172a;
  font-size: 1.1rem;
  font-weight: 800;
}

.bmi-gauge-needle {
  stroke: #6b7280;
  stroke-width: 4.2;
  stroke-linecap: round;
}

.bmi-gauge-head {
  fill: #111827;
}

.bmi-gauge-hub {
  fill: #6b7280;
}

.bmi-analytics-list {
  margin: -0.1rem 0 0;
  padding-left: 1.35rem;
  color: #0f172a;
  display: grid;
  gap: 0.28rem;
}

@media (max-width: 1023px) {
  .bmi-shell {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .bmi-input-panel,
  .bmi-output-panel {
    padding: 0.8rem;
    gap: 0.75rem;
  }

  .bmi-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bmi-mode-tab {
    border-radius: 0.55rem;
    padding: 0.45rem 0.5rem;
    font-size: 0.9rem;
  }

  .bmi-number-input {
    font-size: 1.7rem;
    min-height: 2rem;
  }

  .bmi-suffix,
  .bmi-gender-btn {
    font-size: 1.6rem;
  }

  .bmi-result-line strong {
    font-size: 1.45rem;
  }

  .bmi-gauge {
    width: 100%;
  }

  .bmi-gauge-band-label {
    font-size: 12px;
  }
}

.metric {
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.1), transparent 32%),
    linear-gradient(165deg, #ffffff, var(--inspire-surface-a));
  padding: 0.55rem;
}

.metric b {
  display: block;
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}

.insight-card {
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.1), transparent 30%),
    linear-gradient(160deg, #ffffff, #f9fffc);
  padding: 0.82rem 0.88rem;
  min-height: 92px;
  position: relative;
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 32, 24, 0.1);
}

.case-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.case-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.55rem;
  padding: 0.52rem 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.18);
}

.case-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  color: #ffffff;
}

.case-btn:focus-visible {
  color: #ffffff;
  outline: 2px solid rgba(255, 255, 255, 0.38);
  outline-offset: 1px;
}

.case-btn-sentence,
.case-btn-sentence:hover,
.case-btn-sentence:focus-visible { background: linear-gradient(135deg, #c2410c, #f97316); }

.case-btn-lower,
.case-btn-lower:hover,
.case-btn-lower:focus-visible { background: linear-gradient(135deg, #166534, #22c55e); }

.case-btn-upper,
.case-btn-upper:hover,
.case-btn-upper:focus-visible { background: linear-gradient(135deg, #0c4a6e, #0ea5e9); }

.case-btn-capitalized,
.case-btn-capitalized:hover,
.case-btn-capitalized:focus-visible { background: linear-gradient(135deg, #6b21a8, #a855f7); }

.case-btn-alternating,
.case-btn-alternating:hover,
.case-btn-alternating:focus-visible { background: linear-gradient(135deg, #a16207, #f59e0b); }

.case-btn-title,
.case-btn-title:hover,
.case-btn-title:focus-visible { background: linear-gradient(135deg, #0f766e, #14b8a6); }

.case-btn-inverse,
.case-btn-inverse:hover,
.case-btn-inverse:focus-visible { background: linear-gradient(135deg, #9d174d, #ec4899); }

.case-output {
  border-color: rgba(59, 130, 246, 0.28);
  background: linear-gradient(160deg, #ffffff, #f5f9ff);
}

.json-tree-premium {
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.12), transparent 36%),
    linear-gradient(165deg, #f8fafc, #ffffff 56%, #f4fbf7);
}

.json-tree-shell {
  display: grid;
  gap: 0.75rem;
}

.json-tree-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.json-tree-pane {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.1), transparent 30%),
    linear-gradient(160deg, #ffffff, #f8fbff);
  padding: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 380px;
}

.json-tree-pane h4 {
  margin: 0;
  color: #334155;
  font-size: 0.92rem;
}

.json-tree-pane .io-field-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.json-tree-input {
  min-height: 320px;
  height: 100%;
  flex: 1 1 auto;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  resize: none;
  box-sizing: border-box;
}

.json-tree-output {
  min-height: 320px;
  height: 100%;
  flex: 1 1 auto;
  overflow: auto;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  white-space: pre-wrap;
  box-sizing: border-box;
}

.json-tree-controls {
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.08), transparent 28%),
    linear-gradient(160deg, #ffffff, #f6faf8);
  padding: 0.82rem;
  display: grid;
  gap: 0.6rem;
}

.json-tree-actions {
  flex-wrap: wrap;
  justify-content: center;
}

.json-tree-actions .primary-btn {
  background: linear-gradient(135deg, #0f766e, #0284c7);
  border-color: rgba(15, 118, 110, 0.35);
}

.json-tree-status {
  margin: 0;
  color: #0f4f3d;
  font-weight: 600;
}

.json-tree-view {
  white-space: normal;
}

.json-tree-node {
  display: grid;
  gap: 0.3rem;
}

.json-tree-node-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.6rem;
}

.json-tree-node-row.branch {
  cursor: pointer;
}

.json-tree-toggle {
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 0.86rem;
  line-height: 1;
  padding: 0;
  width: 1rem;
  cursor: pointer;
}

.json-tree-key {
  color: #0f172a;
  font-weight: 700;
}

.json-tree-meta {
  color: #64748b;
  font-size: 0.84rem;
}

.json-tree-value {
  color: #334155;
}

.json-tree-value.string {
  color: #0f766e;
}

.json-tree-value.number,
.json-tree-value.boolean {
  color: #2563eb;
}

.json-tree-value.null {
  color: #9f1239;
}

.json-tree-children {
  margin-left: 1rem;
  border-left: 1px dashed rgba(148, 163, 184, 0.55);
  padding-left: 0.65rem;
  display: grid;
  gap: 0.25rem;
}

.json-tree-children[hidden] {
  display: none !important;
}

@keyframes confluencePulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.url-parser-output {
  padding: 0.95rem;
}

.url-parser-premium {
  display: grid;
  gap: 0.9rem;
}

.url-parser-hero {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.96));
}

.url-parser-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0f5f73;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.url-parser-hero code {
  font-size: 0.94rem;
  color: #163b50;
}

.url-parser-section {
  display: grid;
  gap: 0.55rem;
}

.url-parser-section h4 {
  color: #17374b;
  font-size: 0.98rem;
}

.url-parser-output .url-parser-table {
  display: table !important;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
}

.url-parser-output .url-parser-table thead {
  display: table-header-group;
}

.url-parser-output .url-parser-table tbody {
  display: table-row-group;
}

.url-parser-output .url-parser-table tr {
  display: table-row;
}

.url-parser-output .url-parser-col-component {
  width: 20%;
}

.url-parser-output .url-parser-col-value {
  width: 34%;
}

.url-parser-output .url-parser-col-meaning {
  width: 46%;
}

.url-parser-output .url-parser-col-key {
  width: 34%;
}

.url-parser-output .url-parser-col-query-value {
  width: 66%;
}

.url-parser-output .url-parser-table th {
  color: #17374b;
  background: rgba(241, 245, 249, 0.9);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.url-parser-output .url-parser-table tbody tr:last-child td {
  border-bottom: 0;
}

.url-parser-output .url-parser-table td:first-child {
  min-width: 120px;
  color: #355064;
  font-weight: 700;
}

.url-parser-empty {
  margin: 0;
  padding: 0.78rem 0.85rem;
  border: 1px dashed rgba(148, 163, 184, 0.34);
  border-radius: 0.85rem;
  color: #5f788a;
  background: rgba(255, 255, 255, 0.76);
}

.insight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  transform: translateX(-120%);
  transition: transform 380ms ease;
}

.insight-card:hover::after {
  transform: translateX(120%);
}

.insight-card.ok {
  border-color: rgba(19, 111, 58, 0.36);
  background: linear-gradient(160deg, rgba(19, 111, 58, 0.08), rgba(255, 255, 255, 0.96));
}

.insight-card.warn {
  border-color: rgba(160, 66, 22, 0.34);
  background: linear-gradient(160deg, rgba(160, 66, 22, 0.08), rgba(255, 255, 255, 0.96));
}

.insight-card.bad {
  border-color: rgba(185, 28, 28, 0.34);
  background: linear-gradient(160deg, rgba(185, 28, 28, 0.1), rgba(255, 255, 255, 0.96));
}

.insight-title {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.insight-badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: rgba(79, 102, 96, 0.08);
}

.insight-badge.ok {
  color: var(--ok);
  border-color: rgba(19, 111, 58, 0.25);
  background: rgba(19, 111, 58, 0.08);
}

.insight-badge.warn {
  color: var(--warn);
  border-color: rgba(160, 66, 22, 0.24);
  background: rgba(160, 66, 22, 0.08);
}

.insight-badge.bad {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.3);
  background: rgba(185, 28, 28, 0.1);
}

.insight-value {
  margin-top: 0.35rem;
  font-weight: 700;
  font-size: 1rem;
}

.insight-note {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.roadmap-sections {
  display: grid;
  gap: 0.65rem;
}

.roadmap-section {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.1), transparent 34%),
    linear-gradient(160deg, #ffffff, var(--inspire-surface-b));
  padding: 0.7rem;
}

.roadmap-section h3 {
  font-size: 0.92rem;
  margin: 0 0 0.45rem;
}

.roadmap-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.roadmap-item.done span {
  text-decoration: line-through;
  color: var(--muted);
}

.roadmap-item input[type="checkbox"] {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.08rem;
}

.arch-builder h3 {
  font-size: 0.95rem;
  margin: 0.3rem 0 0;
}

.arch-list {
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.1), transparent 32%),
    linear-gradient(160deg, #ffffff, var(--inspire-surface-a));
  padding: 0.55rem;
  min-height: 48px;
  display: grid;
  gap: 0.45rem;
}

.arch-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.45rem 0.55rem;
  background: linear-gradient(150deg, #ffffff, #f5fff9);
}

.arch-canvas {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 0 100%, rgba(20, 184, 166, 0.12), transparent 35%),
    linear-gradient(165deg, #ffffff, #f7fcff);
  min-height: 360px;
  padding: 0.35rem;
  overflow: auto;
}

.cron-explainer {
  background: #f3f4f6;
  border: 1px solid #ddd6fe;
  border-radius: 0.75rem;
  display: grid;
  gap: 1rem;
}

.cron-explainer input[type="text"] {
  border: 1px solid #c4b5fd;
  background: #fff;
}

.cron-explainer-btn {
  justify-self: start;
  border-color: #8b5cf6;
  color: #43297b;
  background: linear-gradient(155deg, #f5f3ff, #ede9fe);
}

.cron-hero,
.cron-details,
.cron-examples {
  border: 1px solid #ddd6fe;
  border-radius: 0.6rem;
  background: #f8f8fb;
  padding: 1rem;
}

.cron-hero {
  display: grid;
  gap: 0.75rem;
  align-items: center;
}

.cron-expression-chip {
  background: #35285f;
  color: #f5f3ff;
  border-radius: 0.42rem;
  padding: 0.7rem 0.9rem;
  font-family: "JetBrains Mono", "Fira Code", "IBM Plex Mono", monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cron-friendly-summary {
  margin: 0;
  color: #362a67;
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 700;
}

.cron-error {
  margin: 0;
  color: #dc2626;
  font-size: 0.9rem;
}

.cron-details-intro,
.cron-examples-title {
  margin: 0 0 0.85rem;
  color: #374151;
  font-size: 1rem;
}

.cron-field-table,
.cron-examples-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #c4b5fd;
  background: #ffffff;
}

.cron-field-table th,
.cron-field-table td,
.cron-examples-table th,
.cron-examples-table td {
  border: 1px solid #ddd6fe;
  padding: 0.62rem 0.58rem;
  text-align: center;
  color: #30343d;
}

.cron-field-table thead th,
.cron-examples-table thead th {
  background: #e9e0fb;
  color: #362a67;
  font-weight: 700;
}

.cron-field-table tbody tr:first-child td {
  font-family: "JetBrains Mono", "Fira Code", "IBM Plex Mono", monospace;
  font-weight: 700;
  color: #2e2454;
}

.cron-examples-table tbody td:first-child {
  font-family: "JetBrains Mono", "Fira Code", "IBM Plex Mono", monospace;
}

@media (max-width: 1023px) {
  .cron-explainer {
    gap: 0.8rem;
  }

  .cron-hero,
  .cron-details,
  .cron-examples {
    padding: 0.8rem;
  }

  .cron-expression-chip {
    font-size: 1rem;
    padding: 0.58rem 0.66rem;
  }

  .cron-friendly-summary {
    font-size: 0.98rem;
  }

  .cron-field-table,
  .cron-examples-table {
    font-size: 0.88rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.age-calculator-wrap {
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 184, 166, 0.1), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.1), transparent 40%),
    linear-gradient(165deg, #f8fbff, #f2fbf8 55%, #f8fafc);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.age-calc-shell {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.95rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(240, 249, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 28px rgba(15, 23, 42, 0.08);
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.age-calc-head h3 {
  margin: 0;
  color: #1f3a59;
  font-size: 1.12rem;
}

.age-calc-head p {
  margin: 0.22rem 0 0;
  color: #4f5f73;
  font-size: 0.92rem;
}

.age-calculator-wrap .age-calc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.age-calculator-wrap .age-calc-dob {
  width: 190px;
  max-width: 100%;
  text-align: center;
  border-color: rgba(56, 189, 248, 0.44);
  background: linear-gradient(165deg, #ffffff, #f6fbff);
}

.age-calculator-wrap .age-calc-controls select {
  width: auto;
  min-width: 130px;
  border-color: rgba(56, 189, 248, 0.44);
  background: linear-gradient(165deg, #ffffff, #f6fbff);
}

.age-calculator-wrap .age-calc-calc-btn {
  display: block;
  width: auto;
  min-height: 2.2rem;
  margin: 0.15rem auto 0;
  padding: 0.48rem 0.95rem;
  border-color: rgba(20, 184, 166, 0.5);
  color: #0f4f49;
  background: linear-gradient(145deg, #ffffff, #e9fff9);
}

.age-calculator-wrap .age-calc-result {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.85rem;
  background: linear-gradient(165deg, #ffffff, #f7fbff);
  padding: 0.78rem;
  display: grid;
  gap: 0.65rem;
}

.age-calc-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.age-calc-metric {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.75rem;
  background: linear-gradient(160deg, #ffffff, #f8fbff);
  padding: 0.6rem 0.65rem;
  display: grid;
  gap: 0.25rem;
}

.age-calc-metric.age-main {
  border-color: rgba(20, 184, 166, 0.33);
  background: linear-gradient(160deg, #f0fdfa, #f0f9ff);
}

.age-calc-label {
  color: #4b6077;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.age-calc-metric strong {
  color: #1f344d;
  font-size: 1.08rem;
  line-height: 1.2;
}

.age-calculator-wrap .age-calc-result.is-error {
  border-color: rgba(248, 113, 113, 0.36);
  background: linear-gradient(160deg, #fff7f7, #fff);
}

.age-calc-error {
  margin: 0;
  color: #b91c1c;
  font-size: 0.92rem;
}

.age-calculator-wrap .age-calc-picker-proxy {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

/* ====================================================
   MONETIZATION, AUTHENTICATION & SUBSCRIPTION PREMIUM STYLES
   ==================================================== */

/* Header User Widget */
.auth-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-bar-wrapper.logged-out {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.user-status-widget {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
}

.user-email-label {
  color: var(--ink);
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.plan-badge.free {
  background: #e2e8f0;
  color: #475569;
}

.plan-badge.premium {
  background: linear-gradient(135deg, #ca8a04, #eab308);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(234, 179, 8, 0.3);
}

/* Header Buttons */
.auth-text-btn {
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  border: 1px solid rgba(15, 118, 110, 0.2);
  color: #0f766e;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.42rem 0.88rem;
  border-radius: 18px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.1);
}

.auth-text-btn:hover {
  background: linear-gradient(135deg, #bae6fd, #99f6e4);
  border-color: rgba(15, 118, 110, 0.35);
  color: #0b5f58;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.15);
}

.auth-solid-btn {
  background: linear-gradient(140deg, #0f766e, #0284c7);
  color: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.25);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.42rem 0.88rem;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.auth-solid-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.36);
}

.upgrade-btn {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.38rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(15, 118, 110, 0.25);
  transition: transform 150ms ease;
}

.upgrade-btn:hover {
  transform: translateY(-1px);
}

.logout-btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.32rem 0.65rem;
  border-radius: 10px;
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Modals Overlay & Layouts */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 32, 39, 0.55);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.5rem;
  animation: fadeIn 220ms ease-out forwards;
}

.modal-card {
  background: linear-gradient(160deg, #ffffff, #fcfefe);
  border: 1px solid rgba(14, 122, 102, 0.18);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 2.2rem 2rem;
  box-shadow: 0 24px 64px rgba(15, 32, 39, 0.15);
  position: relative;
  font-family: "Manrope", sans-serif;
  animation: scaleUp 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #94a3b8;
  cursor: pointer;
  transition: color 150ms;
}

.modal-close-btn:hover {
  color: #334155;
}

.modal-header {
  margin-bottom: 1.6rem;
  text-align: center;
}

.modal-header h2 {
  font-size: 1.7rem;
  color: var(--heading);
  margin: 0 0 0.45rem;
  font-weight: 800;
}

/* Forms */
.auth-modal-form {
  display: grid;
  gap: 1.15rem;
}

.form-group {
  display: grid;
  gap: 0.45rem;
  text-align: left;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.form-group input {
  min-height: 2.85rem;
  border-radius: 12px;
  border: 1px solid #d2e6ef;
  padding: 0.65rem 0.95rem;
  font-family: inherit;
  font-size: 0.94rem;
  background: #ffffff;
  color: var(--ink);
  transition: border-color 150ms, box-shadow 150ms;
}

.form-group input:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 3px rgba(14, 122, 102, 0.12);
  outline: none;
}

.form-error-msg {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 0.72rem 0.95rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.auth-submit-btn {
  background: linear-gradient(135deg, #0b5a5f, #0e7a66);
  color: #ffffff;
  border: none;
  min-height: 2.9rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(14, 122, 102, 0.22);
  transition: transform 150ms, filter 150ms;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.modal-footer {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.88rem;
}

.modal-footer a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

.modal-footer a:hover {
  text-decoration: underline;
}

/* Pricing Table (SaaS Tiers) */
.pricing-modal-card {
  background: linear-gradient(160deg, #ffffff, #fcfefe);
  border: 1px solid rgba(14, 122, 102, 0.18);
  border-radius: 28px;
  width: 100%;
  max-width: 840px;
  padding: 2.5rem 2rem;
  box-shadow: 0 28px 72px rgba(15, 32, 39, 0.18);
  position: relative;
  font-family: "Manrope", sans-serif;
  animation: scaleUp 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  text-align: center;
}

.pricing-header {
  margin-bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.premium-sparkle-badge {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.3);
}

.pricing-header h2 {
  font-size: 2.1rem;
  color: var(--heading);
  font-weight: 800;
  margin: 0 0 0.55rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.pricing-tier {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 2rem 1.8rem;
  background: #ffffff;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.pricing-tier:hover {
  transform: translateY(-2px);
}

.pricing-tier.popular {
  border: 2px solid var(--link);
  box-shadow: 0 16px 36px rgba(14, 122, 102, 0.08);
}

.popular-ribbon {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: var(--link);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.65rem;
  border-radius: 12px;
  letter-spacing: 0.02em;
}

.pricing-tier h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.45rem;
}

.pricing-tier .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 0.85rem;
  font-family: "Space Grotesk", sans-serif;
}

.pricing-tier .price small {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-left: 0.2rem;
}

.tier-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0 0 1.5rem;
  min-height: 2.6rem;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink);
  flex-grow: 1;
}

.tier-features li {
  line-height: 1.4;
}

.tier-features li strong {
  color: var(--heading);
}

.tier-btn-outline {
  width: 100%;
  min-height: 2.9rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--ink-soft);
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms;
}

.tier-btn-outline:disabled {
  background: #f1f5f9;
  cursor: not-allowed;
  border-color: transparent;
}

.tier-btn-solid {
  width: 100%;
  min-height: 2.9rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0e7a66, #0f766e);
  color: #ffffff;
  border: none;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(14, 122, 102, 0.2);
  transition: filter 150ms, transform 150ms;
}

.tier-btn-solid:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Stripe Mock Checkout Layout */
.mock-stripe-checkout .checkout-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  font-family: "Manrope", sans-serif;
  overflow: hidden;
  animation: scaleUp 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.checkout-header {
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stripe-badge {
  background: #635bff;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
}

.checkout-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #94a3b8;
  cursor: pointer;
}

.checkout-close:hover {
  color: #334155;
}

.checkout-body {
  padding: 2rem 2rem 1.6rem;
  text-align: left;
}

.product-summary {
  margin-bottom: 1.8rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1.2rem;
}

.product-summary h2 {
  font-size: 1.35rem;
  color: #0f172a;
  margin: 0.2rem 0 0.45rem;
  font-weight: 800;
}

.checkout-amount {
  font-size: 1.7rem;
  font-weight: 800;
  color: #635bff;
  font-family: "Space Grotesk", sans-serif;
}

.checkout-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.pay-submit-btn {
  background: #635bff;
  color: #ffffff;
  border: none;
  min-height: 3.1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.25);
  margin-top: 0.5rem;
  transition: filter 150ms;
}

.pay-submit-btn:hover {
  filter: brightness(1.05);
}

.pay-submit-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.checkout-footer {
  background: #f8fafc;
  padding: 0.95rem;
  text-align: center;
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
}

/* Success Card */
.success-celeb-overlay .celeb-card {
  background: #ffffff;
  border-radius: 28px;
  width: 100%;
  max-width: 520px;
  padding: 2.5rem 2.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-family: "Manrope", sans-serif;
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.15);
}

.celeb-card h2 {
  font-size: 1.8rem;
  color: var(--heading);
  font-weight: 800;
  margin: 0 0 0.55rem;
}

.license-display-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 1.25rem;
  margin: 1.6rem 0;
  text-align: left;
}

.license-display-box label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.45rem;
}

.key-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}

.key-container code {
  flex-grow: 1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-all;
}


.copy-key-btn {
  background: #e2e8f0;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: background 150ms;
}

.copy-key-btn:hover {
  background: #cbd5e1;
}

.download-section {
  text-align: left;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.2rem;
  margin-bottom: 1.6rem;
}

.download-section h3 {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.downloads-flex {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.download-btn-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 150ms, border-color 150ms;
}

.download-btn-premium:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  text-decoration: none;
}

.celebrate-finish-btn {
  background: var(--heading);
  color: #ffffff;
  border: none;
  width: 100%;
  min-height: 2.9rem;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 150ms;
}

.celebrate-finish-btn:hover {
  opacity: 0.95;
}

/* Desktop Boot Lock Overlay */
.desktop-boot-lock-screen {
  background: linear-gradient(135deg, #091e23 0%, #0f3037 100%);
}

.boot-lock-card {
  background: #ffffff;
  border-radius: 28px;
  width: 100%;
  max-width: 480px;
  padding: 2.5rem 2.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
  font-family: "Manrope", sans-serif;
  animation: scaleUp 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-header {
  margin-bottom: 1.8rem;
}

.brand-logo {
  margin-bottom: 0.85rem;
}

.brand-header h2 {
  font-size: 1.6rem;
  color: var(--ink);
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.activation-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  background: #f1f5f9;
  padding: 0.3rem;
  border-radius: 10px;
  margin-bottom: 1.4rem;
}

.tab-btn {
  background: transparent;
  border: none;
  min-height: 2.35rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 150ms, color 150ms;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--heading);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.activation-form {
  display: grid;
  gap: 1rem;
}

.activation-submit-btn {
  background: var(--heading);
  color: #ffffff;
  border: none;
  min-height: 2.85rem;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 150ms;
}

.activation-submit-btn:hover {
  opacity: 0.95;
}

.activation-actions-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.trial-btn-outline {
  background: transparent;
  border: 1px dashed rgba(15, 90, 95, 0.4);
  color: var(--heading);
  border-radius: 10px;
  min-height: 2.5rem;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 150ms;
}

.trial-btn-outline:hover {
  background: rgba(11, 90, 95, 0.04);
}

.buy-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 10px;
  min-height: 2.5rem;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 150ms;
}

.buy-link-btn:hover {
  background: #dcfce7;
  text-decoration: none;
}

.hardware-id-box {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.hardware-id-box code {
  font-family: "IBM Plex Mono", monospace;
  background: #f1f5f9;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

/* Trial Banner */
.trial-banner {
  background: linear-gradient(135deg, #fef08a, #fef9c3);
  border-bottom: 1px solid #eab308;
  color: #854d0e;
  padding: 0.55rem 1rem;
  text-align: center;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.banner-upgrade-btn {
  background: #854d0e;
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 150ms;
}

.banner-upgrade-btn:hover {
  opacity: 0.95;
  color: #ffffff;
  text-decoration: none;
}

/* Toasts */
.utilvault-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 11000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.utilvault-toast.animate-fade-in {
  opacity: 1;
  transform: translateY(0);
}

.utilvault-toast.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .85; }
}

/* Responsive Overrides (Mobile Breakpoints) */
@media (max-width: 1023px) {
  .pricing-modal-card {
    padding: 1.8rem 1rem;
  }
  .pricing-header h2 {
    font-size: 1.6rem;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.2rem;
  }
  .pricing-tier {
    padding: 1.4rem 1.1rem;
  }
  
  .auth-bar-wrapper {
    background: transparent;
    border: none;
    padding: 0;
  }
  .user-email-label {
    max-width: 70px;
  }
  
  .modal-card {
    padding: 1.8rem 1.25rem;
  }
  .modal-header h2 {
    font-size: 1.4rem;
  }

  .celeb-card {
    padding: 1.8rem 1.2rem;
  }
  .celeb-card h2 {
    font-size: 1.4rem;
  }
  
  .boot-lock-card {
    padding: 1.8rem 1.2rem;
  }
  .activation-actions-footer {
    grid-template-columns: 1fr;
  }
  
  .utilvault-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    text-align: center;
  }
}

/* Colorized Premium Action Icons in Header */
#helpDocsLink.icon-toggle-btn {
  color: #0ea5e9;
  border-color: rgba(14, 165, 233, 0.4);
  background: radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.22), transparent 45%),
              linear-gradient(155deg, #f0f9ff, #e0f2fe);
}

#helpDocsLink.icon-toggle-btn:hover {
  color: #0284c7;
  border-color: rgba(14, 165, 233, 0.6);
  background: radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.32), transparent 45%),
              linear-gradient(155deg, #ffffff, #bae6fd);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

#offlineModeToggle.icon-toggle-btn {
  color: #ea580c;
  border-color: rgba(234, 88, 12, 0.35);
  background: radial-gradient(circle at 18% 0%, rgba(251, 146, 60, 0.22), transparent 45%),
              linear-gradient(155deg, #fff7ed, #ffedd5);
}

#offlineModeToggle.icon-toggle-btn:hover {
  color: #c2410c;
  border-color: rgba(234, 88, 12, 0.55);
  background: radial-gradient(circle at 18% 0%, rgba(251, 146, 60, 0.32), transparent 45%),
              linear-gradient(155deg, #ffffff, #fed7aa);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.25);
}

#offlineModeToggle.icon-toggle-btn.active {
  color: #ffffff;
  border-color: rgba(220, 38, 38, 0.6);
  background: radial-gradient(circle at 18% 0%, rgba(248, 113, 113, 0.3), transparent 45%),
              linear-gradient(155deg, #dc2626, #b91c1c);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

#themeBtn.icon-toggle-btn {
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.35);
  background: radial-gradient(circle at 18% 0%, rgba(167, 139, 250, 0.22), transparent 45%),
              linear-gradient(155deg, #f5f3ff, #ede9fe);
}

#themeBtn.icon-toggle-btn:hover {
  color: #6d28d9;
  border-color: rgba(139, 92, 246, 0.55);
  background: radial-gradient(circle at 18% 0%, rgba(167, 139, 250, 0.32), transparent 45%),
              linear-gradient(155deg, #ffffff, #ddd6fe);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
}

#analyticsHeaderBtn.icon-toggle-btn {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.35);
  background: radial-gradient(circle at 18% 0%, rgba(52, 211, 153, 0.22), transparent 45%),
              linear-gradient(155deg, #ecfdf5, #d1fae5);
}

#analyticsHeaderBtn.icon-toggle-btn:hover {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.55);
  background: radial-gradient(circle at 18% 0%, rgba(52, 211, 153, 0.32), transparent 45%),
              linear-gradient(155deg, #ffffff, #a7f3d0);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

/* Base tool card visual overrides in default/light theme */
.tool-card.tool-card-themed {
  border-color: var(--cat-border);
  background: color-mix(in srgb, var(--cat-surface) 38%, #ffffff 62%);
}

.tool-card.tool-card-themed::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, var(--cat-accent), transparent);
}

.tool-card.tool-card-themed .tool-title {
  color: var(--cat-text);
}

.tool-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.42rem;
}

.tool-card-kicker,
.tool-card-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  border-radius: 999px;
  padding: 0.08rem 0.42rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-card-kicker {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.tool-card-arrow {
  color: #16435b;
  background: rgba(224, 246, 255, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.2);
}
