:root {
  --ink: #0c1b24;
  --ink-soft: #243642;
  --muted: #5b6b76;
  --line: rgba(12, 27, 36, 0.1);
  --paper: #f3f6f8;
  --paper-2: #e8eef2;
  --surface: rgba(255, 255, 255, 0.78);
  --accent: #0f8f86;
  --accent-deep: #0b6f68;
  --accent-soft: rgba(15, 143, 134, 0.12);
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(12, 27, 36, 0.08);
  --radius: 18px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 143, 134, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(36, 54, 66, 0.08), transparent 50%),
    linear-gradient(180deg, #eef3f6 0%, var(--paper) 40%, #eef2f5 100%);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 10px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 248, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.header-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 28rem;
  margin-inline: 0.35rem 0.75rem;
}

.header-search-input {
  width: 100%;
  height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 0 1rem 0 2.55rem;
  outline: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21 21-4.3-4.3m1.8-5.2a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.85rem center;
  background-size: 1.05rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.header-search-input::placeholder {
  color: var(--muted);
}

.header-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.header-search-results {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: min(70vh, 26rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 0.4rem;
}

.header-search-item {
  display: grid;
  gap: 0.12rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.header-search-item:hover,
.header-search-item.is-active {
  background: rgba(13, 148, 136, 0.08);
}

.header-search-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.header-search-item-cat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.header-search-item-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.header-search-empty,
.header-search-more {
  display: block;
  padding: 0.75rem 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.header-search-more {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.75rem;
}

.header-search-more:hover {
  background: rgba(13, 148, 136, 0.08);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
  flex-shrink: 0;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent-deep);
}

.nav-flyout {
  position: relative;
}

.nav-flyout-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
}

.nav-flyout-toggle:hover,
.nav-flyout-toggle[aria-expanded="true"] {
  color: var(--accent-deep);
}

.nav-caret {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.nav-flyout-toggle[aria-expanded="true"] .nav-caret {
  transform: rotate(225deg) translateY(-1px);
}

.nav-flyout-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  left: auto;
  width: min(760px, calc(100vw - 2rem));
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  z-index: 70;
  overflow: hidden;
}

.nav-flyout-panel[hidden] {
  display: none;
}

.nav-flyout-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 360px;
  max-height: min(70vh, 480px);
}

.nav-flyout-cats {
  list-style: none;
  margin: 0;
  padding: 0.55rem;
  border-right: 1px solid var(--line);
  background: rgba(243, 246, 248, 0.75);
  overflow-y: auto;
}

.nav-flyout-cat-link {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-flyout-cat.is-active .nav-flyout-cat-link,
.nav-flyout-cat-link:hover {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 1px 0 rgba(12, 27, 36, 0.04);
}

.nav-flyout-count {
  min-width: 1.5rem;
  height: 1.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-flyout-arrow {
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}

.nav-flyout-tools {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.nav-flyout-tools-panel {
  position: absolute;
  inset: 0;
  padding: 1rem 1.1rem 1.15rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-flyout-tools-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.nav-flyout-tools-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.nav-flyout-tools-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-flyout-tools-head a {
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-flyout-subgroup + .nav-flyout-subgroup {
  margin-top: 0.95rem;
}

.nav-flyout-subgroup-title {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-flyout-tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem 0.75rem;
}

.nav-flyout-tool-list a {
  display: block;
  padding: 0.42rem 0.5rem;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-flyout-tool-list a:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.mobile-nav-label {
  margin: 0.5rem 0 0.15rem;
  padding: 0.35rem 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-flyout {
  border-radius: 0.75rem;
}

.mobile-flyout summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
}

.mobile-flyout summary::-webkit-details-marker {
  display: none;
}

.mobile-flyout[open] summary {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.mobile-nav-child {
  display: block;
  padding: 0.5rem 0.5rem 0.5rem 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: 0.65rem;
}

.mobile-nav-child:hover {
  background: rgba(15, 143, 134, 0.08);
  color: var(--accent-deep);
}

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--accent-deep) !important;
  color: #fff !important;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
}

.mobile-nav {
  display: grid;
  gap: 0.35rem;
  padding: 0 1.25rem 1rem;
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
}

.mobile-nav a:hover {
  background: var(--accent-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

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

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(12, 27, 36, 0.04), transparent 40%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(15, 143, 134, 0.18), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(36, 54, 66, 0.08), transparent 45%);
  animation: atmosphere-drift 14s ease-in-out infinite alternate;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 12% 8% auto auto;
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  border-radius: 40% 60% 55% 45%;
  background:
    linear-gradient(160deg, rgba(15, 143, 134, 0.35), rgba(12, 27, 36, 0.18));
  filter: blur(2px);
  opacity: 0.55;
  animation: blob-float 10s ease-in-out infinite alternate;
}

.hero-inner {
  padding: 4.5rem 0 5rem;
  max-width: 720px;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--ink);
  animation: rise-in 0.8s ease both;
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink-soft);
  animation: rise-in 0.9s ease 0.08s both;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
  animation: rise-in 1s ease 0.14s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise-in 1.05s ease 0.2s both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes atmosphere-drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.04) translate(-1%, 1%); }
}

@keyframes blob-float {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-4%, 6%) rotate(8deg); }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.35);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.page-header h1,
.tool-header h1,
.about-grid h2,
.tool-howto h2,
.tool-faq h2,
.related-tools h2,
.footer-heading {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-heading h2,
.about-grid h2,
.tool-howto h2,
.tool-faq h2,
.related-tools h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-heading p,
.page-header p,
.tool-lead {
  margin: 0;
  color: var(--muted);
}

.section-cta {
  margin-top: 2rem;
  text-align: center;
}

.search-section {
  padding-top: 0;
  margin-top: -1.5rem;
}

.tool-search {
  display: flex;
  gap: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.tool-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.65rem 1rem;
  outline: none;
  min-width: 0;
}

/* Category / tool grids — interactive links, not decorative cards */
.category-grid,
.tool-grid {
  display: grid;
  gap: 0.9rem;
}

.category-grid {
  grid-template-columns: 1fr;
}

.category-link,
.tool-card-link {
  display: block;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.category-link:hover,
.tool-card-link:hover {
  border-color: rgba(15, 143, 134, 0.45);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.category-name,
.tool-card-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.category-desc,
.tool-card-desc {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
}

.category-count,
.tool-card-cat,
.tool-card-cta,
.tool-eyebrow {
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.subcategory-preview {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.tool-card-title {
  font-size: 1.15rem;
  margin: 0.2rem 0 0.4rem;
}

.tool-card h3 {
  margin: 0;
}

.about-grid {
  display: grid;
  gap: 2rem;
}

.about-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.about-points li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-soft);
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Tool pages */
.tool-page,
.tools-index {
  padding: 2rem 0 4rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.breadcrumbs a:hover {
  color: var(--accent-deep);
}

.page-header,
.tool-header {
  margin-bottom: 1.75rem;
  max-width: 42rem;
}

.page-header h1,
.tool-header h1 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.subcategory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.25rem 0 2rem;
}

.category-chips a {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.5);
}

.category-chips a:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.subcategory-chips a {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(15, 143, 134, 0.22);
  border-radius: 999px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.subcategory-chips a:hover {
  border-color: var(--accent);
  background: rgba(15, 143, 134, 0.18);
}

.subcategory-sections {
  display: grid;
  gap: 3rem;
}

.subcategory-section {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.subcategory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
}

.subcategory-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.03em;
}

.subcategory-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.search-meta {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.tool-workspace {
  margin-bottom: 2.5rem;
}

.tool-root {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.tool-loading {
  margin: 0;
  color: var(--muted);
}

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

.tool-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.tool-field input,
.tool-field textarea,
.tool-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: #fff;
  color: var(--ink);
}

.tool-field textarea {
  min-height: 160px;
  resize: vertical;
}

.tool-field input:focus,
.tool-field textarea:focus,
.tool-field select:focus {
  outline: 2px solid rgba(15, 143, 134, 0.35);
  border-color: var(--accent);
}

.tool-row {
  display: grid;
  gap: 0.85rem;
}

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

.tool-output {
  margin-top: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(15, 143, 134, 0.18);
}

.tool-output h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.tool-output pre,
.tool-stat {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-body);
}

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

.tool-stat-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
}

.tool-stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.tool-stat-box span {
  color: var(--muted);
  font-size: 0.85rem;
}

.tool-checklist {
  display: grid;
  gap: 0.55rem;
}

.tool-checklist label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.timer-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: center;
  margin: 0.5rem 0 1rem;
}

.flashcard {
  min-height: 140px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.25rem;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed rgba(15, 143, 134, 0.35);
  cursor: pointer;
  font-size: 1.1rem;
}

.tool-howto,
.tool-faq,
.related-tools,
.tool-keywords,
.tool-guides {
  margin-top: 2.75rem;
}

.tool-howto ol {
  color: var(--ink-soft);
  padding-left: 1.2rem;
}

.tool-faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.tool-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.tool-faq p {
  color: var(--muted);
  margin: 0.55rem 0 0;
}

.keyword-cloud {
  list-style: none;
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(circle at 12% 20%, rgba(15, 143, 134, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.7);
}

.keyword-cloud li,
.keyword-list {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 143, 134, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.keyword-cloud li:nth-child(5n + 1) { font-size: 1.05rem; }
.keyword-cloud li:nth-child(5n + 2) { font-size: 0.8rem; color: var(--ink-soft); }
.keyword-cloud li:nth-child(5n + 3) { font-size: 0.94rem; background: var(--accent-soft); }
.keyword-cloud li:nth-child(5n + 4) { font-size: 0.76rem; }
.keyword-cloud li:nth-child(5n) { font-size: 0.9rem; }

.blog-grid {
  display: grid;
  gap: 0.9rem;
}

.blog-grid-compact {
  margin-top: 1rem;
}

.blog-card-link {
  display: block;
  height: 100%;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.blog-card-link:hover {
  border-color: rgba(15, 143, 134, 0.45);
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-2px);
}

.blog-card h2,
.blog-card h3 {
  margin: 0.35rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.blog-card p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-page {
  padding: 2rem 0 4rem;
}

.article-content {
  max-width: 760px;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  margin: 0.35rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.article-header p,
.article-content p {
  color: var(--muted);
}

.article-content section {
  margin-top: 2rem;
}

.article-content h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.03em;
}

.article-content ul {
  color: var(--ink-soft);
  padding-left: 1.2rem;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.article-content .keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem 0.65rem;
  margin: 1.1rem 0 0;
  padding: 1.1rem 1.15rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(circle at 12% 20%, rgba(15, 143, 134, 0.08), transparent 45%),
    radial-gradient(circle at 88% 70%, rgba(12, 27, 36, 0.04), transparent 40%),
    rgba(255, 255, 255, 0.7);
}

.article-content .keyword-cloud li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 143, 134, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-deep);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.article-content .keyword-cloud li:nth-child(4n + 1) {
  font-size: 1.05rem;
  padding: 0.55rem 1rem;
}

.article-content .keyword-cloud li:nth-child(4n + 2) {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.article-content .keyword-cloud li:nth-child(4n + 3) {
  font-size: 0.95rem;
  background: var(--accent-soft);
}

.article-content .keyword-cloud li:nth-child(4n) {
  font-size: 0.78rem;
  opacity: 0.92;
}

.article-content .keyword-cloud li:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 143, 134, 0.4);
  background: #fff;
}

.article-content section + section {
  margin-top: 2.35rem;
}

.article-content p + p {
  margin-top: 0.9rem;
}

.article-tool-cta {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.72);
}

.content-block {
  padding: 2.5rem 0 4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  background: rgba(255, 255, 255, 0.4);
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  color: var(--muted);
  max-width: 28rem;
}

.footer-cols {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.footer-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: 1fr;
}

.footer-subcategory-list {
  list-style: none;
  margin: 0.35rem 0 0.75rem;
  padding: 0 0 0 0.75rem;
  display: grid;
  gap: 0.25rem;
  border-left: 1px solid var(--line);
}

.footer-subcategory-list a {
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-heading {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-cols a:hover {
  color: var(--accent-deep);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 1100px) {
  .header-search {
    max-width: 28rem;
  }
}

@media (max-width: 719px) {
  .brand-name {
    display: none;
  }

  .header-search {
    margin-inline: 0.15rem 0.35rem;
    max-width: none;
  }
}

@media (min-width: 720px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .header-search {
    max-width: 22rem;
  }

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

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

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

  .tool-row.cols-2,
  .tool-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-stats.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about-grid,
  .footer-inner {
    grid-template-columns: 1.2fr 1.8fr;
    align-items: start;
  }

  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-category-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 980px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .blog-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    padding-block: 5.5rem 6rem;
  }

  .footer-cols .footer-category-list {
    column-count: 2;
    column-gap: 1.25rem;
    display: block;
  }

  .footer-cols .footer-category-list li {
    break-inside: avoid;
    margin-bottom: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* New tool workspaces: files, diagrams, printables */
.file-drop {
  border: 1.5px dashed var(--line, #cbd5e1);
  border-radius: 14px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.file-drop.is-drag {
  border-color: var(--teal, #0d9488);
  background: rgba(13, 148, 136, 0.08);
}

.file-drop input[type="file"] {
  max-width: 100%;
}

.diagram-canvas,
.qr-canvas {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  display: block;
  margin-top: 0.75rem;
}

.tool-hint {
  color: var(--muted, #64748b);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tool-chip {
  font-size: 0.88rem;
  padding: 0.35rem 0.7rem;
}

.tool-hook-list {
  display: grid;
  gap: 0.65rem;
}

.tool-hook-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.tool-hook-text {
  margin: 0;
  flex: 1 1 14rem;
  line-height: 1.45;
}

.tool-element-card h3 {
  font-family: var(--font-display);
}

.tool-results-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tool-result-link {
  color: var(--teal-ink, #0f766e);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.print-sheet {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  background: #fff;
}

.print-sheet table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}

.print-sheet th,
.print-sheet td {
  border: 1px solid #e2e8f0;
  padding: 0.4rem 0.55rem;
  text-align: left;
}

.business-card-sheet .biz-card {
  width: min(100%, 360px);
  min-height: 200px;
  padding: 1.25rem;
  border: 2px solid #0f172a;
  border-radius: 10px;
  display: grid;
  gap: 0.35rem;
  align-content: center;
}

.letterhead-sheet header h2 {
  margin: 0;
}

.letterhead-sheet .muted {
  color: #64748b;
}

.tool-privacy-note {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
  font-size: 0.92rem;
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .tool-howto,
  .tool-keywords,
  .tool-guides,
  .tool-faq,
  .related-tools,
  .breadcrumbs,
  .tool-actions,
  .tool-eyebrow {
    display: none !important;
  }

  .tool-workspace,
  .print-sheet,
  .diagram-canvas {
    break-inside: avoid;
  }
}

/* ── PDF visual workspaces (Sejda-style) ── */
.tool-root--app {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.tool-root--app .tool-workspace-app,
.tool-root--app .pdf-tool-app {
  width: 100%;
}

.pdf-app {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.pdf-app__hero {
  display: grid;
  gap: 0.65rem;
}

.pdf-app__body {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.pdf-app__body.has-sidebar {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: start;
}

.pdf-app__stage {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.pdf-app__sidebar {
  display: grid;
  gap: 0.75rem;
}

.pdf-app__bar {
  position: sticky;
  bottom: 0.75rem;
  z-index: 20;
}

.pdf-app__footer {
  display: grid;
  gap: 0.5rem;
}

.pdf-privacy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.pdf-honest-note {
  margin: 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border-radius: 0 10px 10px 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Hero drop */
.pdf-hero-drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 168px;
  padding: 1.75rem 1.25rem;
  border: 2px dashed rgba(15, 143, 134, 0.35);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(15, 143, 134, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 238, 242, 0.65));
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  outline: none;
}

.pdf-hero-drop:hover,
.pdf-hero-drop:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.pdf-hero-drop.is-drag {
  border-color: var(--accent-deep);
  border-style: solid;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(15, 143, 134, 0.18), transparent 65%),
    rgba(255, 255, 255, 0.95);
}

.pdf-hero-drop__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.25rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.pdf-hero-drop__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.pdf-hero-drop__sub {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
  max-width: 28rem;
}

.pdf-hero-drop__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

/* Empty state */
.pdf-empty-state {
  display: grid;
  gap: 0.25rem;
  place-items: center;
  padding: 2rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.pdf-empty-state__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-soft);
}

.pdf-empty-state__hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Merge file cards */
.pdf-merge-list {
  display: grid;
  gap: 0.65rem;
}

.pdf-merge-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  cursor: grab;
}

.pdf-merge-card.is-dragging {
  opacity: 0.5;
}

.pdf-merge-card.is-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.pdf-merge-card__thumb {
  width: 72px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.pdf-merge-card__thumb canvas,
.pdf-merge-card__thumb .pdf-thumb__canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.pdf-merge-card__thumb-ph {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.pdf-merge-card__body {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.pdf-merge-card__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-merge-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--muted);
}

.pdf-merge-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 650;
}

.pdf-merge-card__badge.is-loading {
  opacity: 0.6;
}

.pdf-merge-card__actions {
  display: flex;
  gap: 0.25rem;
}

/* Page grid */
.pdf-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 0.75rem;
  outline: none;
}

.pdf-page-cell {
  position: relative;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  padding: 0.55rem;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(12, 27, 36, 0.04);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  outline: none;
}

.pdf-page-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(12, 27, 36, 0.08);
}

.pdf-page-cell.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.pdf-page-cell.is-dragging {
  opacity: 0.45;
}

.pdf-page-cell.is-over {
  border-color: var(--accent-deep);
}

.pdf-page-cell__stage {
  display: grid;
  place-items: center;
  min-height: 110px;
  width: 100%;
}

.pdf-page-cell__stage canvas,
.pdf-page-cell .pdf-thumb__canvas {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  transition: transform 0.25s ease;
  background: #fff;
}

.pdf-page-cell__ph {
  color: var(--muted);
  font-size: 0.85rem;
}

.pdf-page-cell__num {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
}

.pdf-page-cell__hover {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: none;
  gap: 0.2rem;
}

.pdf-page-cell:hover .pdf-page-cell__hover,
.pdf-page-cell:focus-within .pdf-page-cell__hover {
  display: flex;
}

.pdf-page-cell__hover .btn {
  min-height: 1.7rem;
  padding: 0.15rem 0.45rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(12, 27, 36, 0.12);
}

.pdf-select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Sticky action bar */
.pdf-sticky-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 36px rgba(12, 27, 36, 0.1);
}

.pdf-sticky-bar__left,
.pdf-sticky-bar__right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.pdf-sticky-bar .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Compress presets */
.pdf-compress-preview {
  display: grid;
  gap: 0.75rem;
}

.pdf-compress-preview__frame {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
}

.pdf-compress-preview__frame canvas {
  max-width: 140px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.pdf-compress-preview__meta {
  display: grid;
  gap: 0.25rem;
}

.pdf-compress-preview__meta strong {
  font-family: var(--font-display);
  word-break: break-word;
}

.pdf-compress-preview__meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.pdf-preset-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.pdf-preset-card {
  display: grid;
  gap: 0.4rem;
  text-align: left;
  padding: 1rem 1.05rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pdf-preset-card:hover {
  border-color: rgba(15, 143, 134, 0.45);
}

.pdf-preset-card.is-active {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(15, 143, 134, 0.1), rgba(255, 255, 255, 0.9));
}

.pdf-preset-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-deep);
}

.pdf-preset-card__desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.pdf-size-compare {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.pdf-size-compare:empty {
  display: none;
}

.pdf-size-compare__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.pdf-size-compare__row strong {
  font-family: var(--font-display);
  color: var(--accent-deep);
}

/* Editor */
.pdf-editor-layout {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.pdf-editor-rail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 70vh;
  overflow: auto;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}

.pdf-editor-rail__item {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  padding: 0.35rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.pdf-editor-rail__item canvas {
  max-width: 72px;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.pdf-editor-rail__item.is-active {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.pdf-editor-main {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.pdf-toolbar .btn,
.pdf-toolbar__btn {
  min-height: 2.2rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.88rem;
}

.pdf-toolbar .is-active,
.pdf-toolbar__btn.is-active {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: var(--accent);
  font-weight: 700;
}

.pdf-editor-stage-wrap {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(45deg, var(--paper-2) 25%, transparent 25%),
    linear-gradient(-45deg, var(--paper-2) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--paper-2) 75%),
    linear-gradient(-45deg, transparent 75%, var(--paper-2) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  padding: 0.75rem;
}

.pdf-editor-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 8px 28px rgba(12, 27, 36, 0.1);
}

.pdf-editor-base,
.pdf-editor-overlay {
  display: block;
  max-width: 100%;
  height: auto;
}

.pdf-editor-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.pdf-editor-overlay-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pdf-text-editor {
  position: absolute;
  z-index: 5;
  min-width: 8rem;
  min-height: 1.4em;
  padding: 0.15rem 0.35rem;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  font: 16px var(--font-body);
  color: var(--ink);
  outline: none;
  box-shadow: 0 4px 16px rgba(12, 27, 36, 0.12);
}

/* Watermark */
.wm-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.wm-controls {
  display: grid;
  gap: 0.75rem;
}

.wm-preview-col {
  display: grid;
  gap: 0.5rem;
}

.wm-preview-label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--muted);
}

.wm-preview {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(12, 27, 36, 0.06);
}

.pdf-range-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdf-range-row input[type="range"] {
  flex: 1;
}

.pdf-range-val {
  min-width: 2.5rem;
  font-weight: 650;
  color: var(--accent-deep);
  font-size: 0.9rem;
}

/* Word counter stats */
.pdf-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.pdf-stat-cards:empty {
  display: none;
}

.pdf-stat-card {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(15, 143, 134, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.85);
  text-align: center;
}

.pdf-stat-card__val {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1.1;
}

.pdf-stat-card__label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pdf-text-preview {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.pdf-text-preview__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pdf-text-preview__body {
  margin: 0;
  max-height: 240px;
  overflow: auto;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--paper);
  font-size: 0.88rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.pdf-ocr-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
}

/* Mode tabs (image converter) */
.pdf-mode-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  width: fit-content;
  max-width: 100%;
}

.pdf-mode-tabs__btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0.55rem 1rem;
  border-radius: 9px;
  font: inherit;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pdf-mode-tabs__btn.is-active {
  background: var(--accent);
  color: #fff;
}

.pdf-conv-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pdf-conv-panel {
  display: grid;
  gap: 0.75rem;
}

/* Progress + status */
.pdf-progress {
  display: grid;
  gap: 0.35rem;
}

.pdf-progress[hidden] {
  display: none !important;
}

.pdf-progress__track {
  height: 8px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}

.pdf-progress__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.25s ease;
}

.pdf-progress.is-done .pdf-progress__fill {
  background: var(--accent-deep);
}

.pdf-progress.is-fail .pdf-progress__fill {
  background: var(--danger);
}

.pdf-progress__label {
  font-size: 0.88rem;
  color: var(--muted);
}

.pdf-status {
  margin: 0;
}

.pdf-thumb__canvas {
  max-width: 140px;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease;
}

/* Legacy leftovers kept harmless */
.pdf-workspace,
.pdf-file-list-wrap,
.pdf-file-list {
  display: grid;
  gap: 0.75rem;
}

.pdf-stats {
  display: grid;
  gap: 0.45rem;
}

@media (max-width: 860px) {
  .pdf-app__body.has-sidebar {
    grid-template-columns: 1fr;
  }

  .pdf-preset-cards {
    grid-template-columns: 1fr;
  }

  .wm-layout {
    grid-template-columns: 1fr;
  }

  .pdf-editor-layout {
    grid-template-columns: 1fr;
  }

  .pdf-editor-rail {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
  }

  .pdf-stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdf-compress-preview__frame {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .pdf-sticky-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .pdf-sticky-bar__left,
  .pdf-sticky-bar__right {
    justify-content: stretch;
  }

  .pdf-sticky-bar .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 520px) {
  .pdf-merge-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .pdf-merge-card__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .pdf-hero-drop {
    min-height: 140px;
    padding: 1.25rem 1rem;
  }

  .pdf-mode-tabs {
    width: 100%;
  }

  .pdf-mode-tabs__btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.65rem;
    font-size: 0.88rem;
  }

  .pdf-conv-opts {
    grid-template-columns: 1fr;
  }
}

.tool-limitations {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  list-style: disc inside;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.92rem;
}

.tool-limitations li + li {
  margin-top: 0.35rem;
}

.cite-autocite-row,
.cite-date-fields,
.cite-author-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cite-autocite-row input,
.cite-author-row input {
  flex: 1 1 12rem;
}

.cite-date-fields input {
  width: 5.5rem;
}

.cite-warnings {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--danger, #9b2c2c);
  font-size: 0.9rem;
}

.cite-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.cite-html-preview {
  margin-top: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--paper-2, #f3f6f4);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cite-tray-panel {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cite-tray-list {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.cite-tray-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.cite-tray-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .cite-date-fields input {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* ——— Citation app (ZoteroBib-style workspace) ——— */
.tool-root--app {
  padding: 0;
  overflow: hidden;
}

.cite-workspace {
  margin: 0;
}

.cite-app {
  display: grid;
  gap: 0;
}

.cite-hero {
  padding: 1.35rem 1.35rem 1rem;
  background:
    linear-gradient(135deg, rgba(15, 143, 134, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 238, 242, 0.65));
  border-bottom: 1px solid var(--line);
}

.cite-hero-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.55rem;
  color: var(--ink);
}

.cite-hero-row {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}

.cite-hero-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-size: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(12, 27, 36, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cite-hero-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cite-hero-btn {
  flex: 0 0 auto;
  padding-inline: 1.35rem;
  border-radius: 14px;
}

.cite-lookup-status {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  min-height: 1.2em;
}

.cite-privacy {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.cite-picker,
.cite-results-picker {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.cite-picker[hidden],
.cite-results-picker[hidden] {
  display: none;
}

.cite-picker-heading {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.cite-picker-card {
  display: grid;
  gap: 0.25rem;
  text-align: left;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.cite-picker-card:hover,
.cite-picker-card:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
  transform: translateY(-1px);
}

.cite-picker-title {
  font-size: 0.95rem;
  line-height: 1.35;
}

.cite-picker-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.cite-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.cite-preview-pane {
  padding: 1.15rem 1.35rem;
  background:
    radial-gradient(600px 280px at 0% 0%, rgba(15, 143, 134, 0.07), transparent 60%),
    rgba(255, 255, 255, 0.45);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
}

.cite-preview-card {
  display: grid;
  gap: 0.45rem;
}

.cite-preview-label {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cite-preview-label:first-child {
  margin-top: 0;
}

.cite-preview-bib,
.cite-html-preview {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
  min-height: 3.2rem;
}

.cite-preview-bib i,
.cite-html-preview i,
.cite-preview-bib em,
.cite-html-preview em {
  font-style: italic;
}

.cite-preview-intext {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--paper-2);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  min-height: 1.5rem;
}

.cite-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.cite-editor-pane {
  padding: 1rem 1.25rem 1.35rem;
  background: rgba(243, 246, 248, 0.5);
}

.cite-editor-details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.35rem 0.85rem 0.85rem;
}

.cite-editor-details > summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 0.15rem;
  list-style: none;
  color: var(--ink);
}

.cite-editor-details > summary::-webkit-details-marker {
  display: none;
}

.cite-editor-details > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--accent-deep);
  transition: transform 0.15s ease;
}

.cite-editor-details[open] > summary::before {
  transform: rotate(90deg);
}

.cite-field-grid {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.cite-field-grid .tool-field[hidden],
.cite-date-row[hidden] {
  display: none;
}

.cite-chicago-toggle {
  display: grid;
  gap: 0.35rem;
}

.cite-chicago-toggle label {
  font-size: 0.88rem;
  font-weight: 600;
}

.cite-tray {
  padding: 1.15rem 1.35rem 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(232, 238, 242, 0.35));
}

.cite-tray-head {
  margin-bottom: 0.65rem;
}

.cite-tray-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.cite-tray-hint {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.cite-tray-list {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.cite-tray-empty {
  padding: 0.85rem 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
}

.cite-tray-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.cite-tray-item.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.cite-tray-item.is-dragging {
  opacity: 0.55;
}

.cite-tray-item.is-drop-target {
  border-color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.cite-tray-text {
  flex: 1;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.2rem 0.15rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}

.cite-tray-text:hover {
  color: var(--accent-deep);
}

.cite-tray-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.cite-tray-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.cite-warnings {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: var(--danger, #9b2c2c);
  font-size: 0.85rem;
}

.cite-warnings[hidden] {
  display: none;
}

.cite-author-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.cite-author-row input {
  flex: 1 1 12rem;
}

.cite-date-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .cite-split {
    grid-template-columns: 1fr;
  }

  .cite-preview-pane {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    order: -1;
  }

  .cite-hero-row {
    flex-direction: column;
  }

  .cite-hero-btn {
    width: 100%;
  }
}

/* App tool page chrome */
.tool-page--app .tool-workspace--app {
  padding: 0;
  overflow: visible;
}

.tool-page--app .tool-workspace--app > .tool-privacy-note,
.tool-page--app .tool-workspace--app > .tool-limitations-details {
  margin: 0.85rem 1rem 1rem;
}

.tool-limitations-details {
  margin-top: 0.85rem;
  padding: 0.65rem 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.92rem;
}

.tool-limitations-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink, #14201c);
}

.tool-limitations-details .tool-limitations {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  border: 0;
  background: transparent;
}

.tool-workspace--app .tool-root--app-host {
  min-height: 22rem;
}

.category-tools-section {
  margin: 2.5rem 0 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.category-tools-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.category-tools-section .subcategory-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.category-tools-section .subcategory-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.category-tools-section .subcategory-heading a {
  font-weight: 600;
  color: var(--accent-deep, #1f6b5c);
  text-decoration: none;
}

.category-tools-section .subcategory-heading a:hover {
  text-decoration: underline;
}

/* Production shells — GPA / writing / math */
.prod-shell {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.1rem 1.25rem;
}

.prod-shell__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.prod-shell__split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .prod-shell__split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.prod-shell__card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
}

.prod-shell__card h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.prod-shell__result {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.98rem;
  line-height: 1.45;
}

.prod-shell__steps {
  margin-top: 0.65rem;
}

.prod-shell__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.prod-shell__fields {
  display: grid;
  gap: 0.75rem;
}

.prod-shell__editor {
  min-height: 14rem;
  width: 100%;
}

.check-shell__progress {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.check-shell__bar {
  height: 8px;
  border-radius: 999px;
  background: var(--paper-2, #e8eeea);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.check-shell__bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}

.check-shell__item {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.gpa-app .gpa-summary {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(45, 122, 110, 0.08), rgba(255, 255, 255, 0.8));
}

.gpa-summary__hero {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gpa-summary__hero strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent-deep, #1d5c52);
  line-height: 1;
}

.gpa-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.gpa-grid {
  display: grid;
  gap: 0.75rem;
}

.gpa-grid__row {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}

@media (min-width: 720px) {
  .gpa-grid__row {
    grid-template-columns: 1.4fr 0.7fr 0.7fr auto;
    align-items: end;
  }
}

.write-app__split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .write-app__split {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.write-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.write-metrics__card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 0.15rem;
}

.write-metrics__card strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-deep, #1d5c52);
}

.write-metrics__card span {
  font-size: 0.78rem;
  color: var(--muted);
}

.write-findings__item {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.write-findings__item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.write-findings__summary {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.write-disclaimer {
  margin: 0;
}

.sci-calc__display {
  font-size: 1.35rem !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  text-align: right;
}

.sci-calc__pad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.sci-calc__key {
  min-height: 2.6rem;
}

.sci-calc__history {
  min-height: 1.4rem;
}

.timer-shell__display {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0.5rem 0;
}

.flashcard--app {
  display: block;
  width: 100%;
  min-height: 10rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(45, 122, 110, 0.1), rgba(255, 255, 255, 0.9));
  padding: 1.5rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  cursor: pointer;
  text-align: center;
}

.diagram-shell__preview {
  overflow: auto;
}

.diagram-shell .diagram-canvas {
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.tool-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.tool-table th,
.tool-table td {
  border: 1px solid var(--line);
  padding: 0.4rem 0.55rem;
  text-align: left;
}

.tool-table th {
  background: rgba(45, 122, 110, 0.08);
}

.style-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.55rem;
  margin: 0.75rem 0;
}

.style-gallery__card {
  display: grid;
  gap: 0.35rem;
  text-align: left;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font: inherit;
}

.style-gallery__card.is-active {
  border-color: var(--accent, #0d9488);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

.style-gallery__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.style-gallery__sample {
  font-size: 1.05rem;
  line-height: 1.35;
  word-break: break-word;
}

.style-gallery__active {
  font-size: 1.35rem;
  line-height: 1.4;
}

.pwd-meter {
  height: 10px;
  border-radius: 999px;
  background: var(--paper-2, #e8eeea);
  overflow: hidden;
  margin: 0.5rem 0;
}

.pwd-meter__fill {
  height: 100%;
  width: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.password-out {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.15rem;
  word-break: break-all;
}

.name-pick__hero {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  padding: 1.25rem 0.5rem;
  color: var(--accent-deep, #1d5c52);
}

.group-grid {
  display: grid;
  gap: 0.55rem;
}

.group-grid__card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
}

.group-grid__card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.themed-sheet.theme-teal {
  --sheet-accent: #0d9488;
  border-top: 4px solid #0d9488;
}

.themed-sheet.theme-ink {
  --sheet-accent: #0f172a;
  border-top: 4px solid #0f172a;
}

.themed-sheet.theme-gold {
  --sheet-accent: #b45309;
  border-top: 4px solid #b45309;
  background: #fffbeb;
}

.themed-sheet .lh-head h2,
.themed-sheet .biz-card strong,
.themed-sheet .inv-head h2 {
  color: var(--sheet-accent, #0d9488);
}

.biz-card {
  min-height: 10rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 0.25rem;
  max-width: 22rem;
}

.biz-role {
  font-weight: 600;
}

.biz-meta,
.themed-sheet .muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.print-preview-card {
  overflow: auto;
}

.inv-total {
  font-size: 1.1rem;
  margin-top: 0.75rem;
}



