/* ===== RESET & TOKENS ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #0061FE;
  --primary-hover: #0052d9;
  --primary-deep: #0047d4;
  --primary-darker: #0039a8;
  --primary-soft: rgba(0, 97, 254, 0.12);
  --primary-softer: rgba(0, 97, 254, 0.06);
  --primary-border: rgba(0, 97, 254, 0.28);
  --primary-glow: rgba(0, 97, 254, 0.38);

  --page-bg: #eef3ff;
  --page-bg-dark: #0047d4;
  --nav-bg: #0056e8;
  --nav-active: rgba(255, 255, 255, 0.16);
  --surface: #ffffff;
  --surface-alt: #f5f8ff;

  --text: #0f1f3d;
  --text-mid: #3d5278;
  --text-dim: #6b7fa3;
  --text-nav: rgba(255, 255, 255, 0.82);
  --text-nav-active: #ffffff;

  --border: #d4e2ff;
  --border-light: #e8f0ff;

  --blue-soft: #e8f0ff;
  --blue-mid: #dce8ff;
  --warm-soft: #eef3ff;
  --green-soft: #e8f0ff;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 97, 254, 0.08);
  --shadow-card: 0 8px 32px rgba(0, 97, 254, 0.12);
  --shadow-hover: 0 16px 40px rgba(0, 97, 254, 0.18);
  --shadow-menu: 0 8px 24px rgba(0, 55, 160, 0.2);
  --shadow-tool: 0 24px 64px rgba(0, 97, 254, 0.42);
  --content-max: 1120px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--page-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 97, 254, 0.14), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(0, 97, 254, 0.08), transparent);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ===== SITE LAYOUT ===== */
.site-header {
  background: linear-gradient(135deg, #0061FE 0%, #0047d4 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 97, 254, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.site-nav__toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.site-nav__toggle-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.site-nav__toggle-icon span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
}

.site-nav {
  display: none;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.site-logo__mark {
  display: block;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow:
    0 2px 14px rgba(0, 24, 90, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.14);
}

.site-logo__text {
  color: #fff;
  white-space: nowrap;
}

/* ===== FULLSCREEN TOOLS MENU ===== */
body.site-menu-open { overflow: hidden; }

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
}

.site-menu.hidden {
  display: none !important;
}

.site-menu.is-open {
  display: block !important;
}

.site-menu__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(0, 97, 254, 0.14), transparent),
    linear-gradient(180deg, #f8fbff 0%, #eef3ff 100%);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.site-menu.is-open .site-menu__panel {
  transform: translateY(0);
  opacity: 1;
}

.site-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
}

.site-menu__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.site-menu__brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow:
    0 4px 18px rgba(0, 97, 254, 0.18),
    0 0 0 1px rgba(0, 97, 254, 0.08);
}

.site-menu__brand-text {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.site-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.site-menu__close:hover {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--primary-border);
}

.site-menu__search-wrap {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.55);
}

.site-menu__search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.site-menu__search:focus-within {
  border-color: var(--primary-border);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.site-menu__search-icon {
  flex-shrink: 0;
  color: var(--text-dim);
}

.site-menu__search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  outline: none;
}

.site-menu__search-input::placeholder { color: var(--text-dim); }

.site-menu__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-5) var(--space-4) var(--space-7);
}

.site-menu__results {
  max-width: var(--content-max);
  margin: 0 auto;
}

.site-menu__section + .site-menu__section {
  margin-top: var(--space-6);
}

.site-menu__section-title {
  margin-bottom: var(--space-4);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.site-menu__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.site-menu__card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.site-menu__card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-card);
}

.site-menu__card--active {
  border-color: var(--primary-border);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 0 0 1px rgba(0, 97, 254, 0.12), var(--shadow-sm);
}

.site-menu__card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.site-menu__card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.site-menu__card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.site-menu__card-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-mid);
}

.site-menu__empty {
  max-width: var(--content-max);
  margin: var(--space-6) auto 0;
  padding: var(--space-5);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-mid);
}

@media (min-width: 640px) {
  .site-menu__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-menu__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-menu__header,
  .site-menu__search-wrap {
    padding-left: max(var(--space-4), calc((100% - var(--content-max)) / 2));
    padding-right: max(var(--space-4), calc((100% - var(--content-max)) / 2));
  }
}

.site-nav__link {
  flex-shrink: 0;
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-nav);
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: color 0.2s, background 0.2s;
}

.site-nav__link:hover,
.site-nav__link--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.page-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-7);
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 100px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  margin-top: var(--space-5);
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0, 97, 254, 0.28);
  -webkit-appearance: none;
  appearance: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: var(--space-4) 0 var(--space-2);
  font-size: 0.84rem;
  color: var(--text-dim);
}

.breadcrumb li + li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: var(--space-2);
  border-right: 1.5px solid var(--text-dim);
  border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(-45deg);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-mid);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--primary); }

.home-hero {
  background: linear-gradient(180deg, #ffffff 0%, #eef3ff 55%, #e3ecff 100%);
  padding: var(--space-6) 0 var(--space-7);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

.home-hero__content {
  text-align: center;
}

.home-hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--primary-deep);
  margin-bottom: var(--space-4);
}

.home-hero__desc {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.home-hero__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--primary-border);
  background: #fff;
}

.home-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tool-hero {
  text-align: center;
  padding: var(--space-5) 0 var(--space-4);
}

.tool-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

.tool-hero__content {
  text-align: center;
}

.tool-hero__art {
  display: flex;
  justify-content: center;
}

.tool-hero--premium {
  padding: var(--space-5) 0 var(--space-4);
}

.tool-hero--premium .tool-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

.tool-hero--premium .tool-hero__content {
  text-align: center;
}

.tool-hero__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--primary-border);
  background: #fff;
}

.tool-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 200;
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-menu);
}

.skip-link:focus {
  top: var(--space-3);
}

.content-spotlight__img,
.related__banner-img,
.home-hero__img,
.tool-hero__img {
  max-width: 100%;
}

@media (max-width: 767px) {
  .content-spotlight,
  .related--premium {
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .content-spotlight--soft {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .tool-hero--premium .tool-hero__content {
    text-align: center;
  }

  .tool-hero--premium .trust-badges {
    justify-content: center;
  }
}

.tool-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.15;
  margin-bottom: var(--space-3);
  letter-spacing: -0.03em;
}

.tool-hero__desc {
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  color: var(--text-mid);
  max-width: 580px;
  margin: 0 auto var(--space-5);
  line-height: 1.7;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  list-style: none;
  margin-top: var(--space-5);
}

.trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 16px;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--primary-border);
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

.trust-badges__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
}

.category-block {
  padding: var(--space-7) 0;
}

.category-block--blue { background: linear-gradient(180deg, #dce8ff 0%, #eef3ff 100%); }
.category-block--warm { background: linear-gradient(180deg, #e3ecff 0%, #f0f5ff 100%); }
.category-block--green { background: linear-gradient(180deg, #e8f0ff 0%, #f5f8ff 100%); }

.category-block__intro {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.category-block__intro h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.category-block__intro p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 520px;
}

/* ===== HOMEPAGE CATEGORY SPOTLIGHT ===== */
.category-spotlight {
  padding: var(--space-7) 0;
}

.category-spotlight--soft {
  background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 100%);
}

.category-spotlight__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-6);
}

.category-spotlight__intro h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.category-spotlight__intro p {
  font-size: 0.98rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 520px;
}

.section {
  padding: var(--space-7) 0;
}

.section h2 {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-5);
  text-align: center;
  letter-spacing: -0.02em;
}

.features-grid,
.tools-grid,
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
}

.feature-card,
.tool-card,
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.feature-card__illus {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.25rem;
}

.feature-card h3,
.tool-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.feature-card p,
.tool-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-decoration: none;
  min-height: 100%;
  height: 100%;
}

.tool-card__illus {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.tool-card__cta {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.tool-card--soon {
  opacity: 0.85;
}

.tool-card--soon .tool-card__cta {
  color: var(--text-dim);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 880px;
  margin: 0 auto;
  list-style: none;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step-card__illus {
  width: 120px;
  height: 96px;
  object-fit: contain;
  flex-shrink: 0;
}

.step-card__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.step-card > div {
  flex: 1;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.55;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 18px;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item[open] {
  border-color: var(--primary-border);
  box-shadow: 0 4px 16px rgba(0, 97, 254, 0.1);
}

.faq-item[open] summary {
  color: var(--primary-deep);
}

.faq-item p {
  padding: 0 18px 16px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.seo-content {
  max-width: 720px;
  margin: 0 auto;
}

/* ===== PREMIUM CONTENT SPOTLIGHT ===== */
.content-spotlight {
  padding: var(--space-7) 0;
}

.content-spotlight--soft {
  background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 100%);
  margin-left: calc(-1 * var(--space-4));
  margin-right: calc(-1 * var(--space-4));
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.content-spotlight__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
}

.content-spotlight__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--primary-border);
  background: #fff;
}

.content-spotlight__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.content-spotlight__body h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  text-align: left;
}

.content-spotlight__subhead {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: var(--space-5) 0 var(--space-3);
}

.content-spotlight__body p {
  font-size: 0.98rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.content-spotlight__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.content-spotlight__list li {
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.content-spotlight__list li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.95rem;
}

.content-spotlight__list li span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ===== PREMIUM RELATED TOOLS ===== */
.related--premium {
  background: linear-gradient(180deg, #fff 0%, var(--blue-soft) 100%);
  margin-left: calc(-1 * var(--space-4));
  margin-right: calc(-1 * var(--space-4));
  padding: var(--space-7) var(--space-4);
}

.related__intro {
  max-width: var(--content-max);
  margin: 0 auto var(--space-6);
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.related__banner {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--primary-border);
}

.related__banner-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}

.related__intro-text {
  text-align: center;
}

.related__intro-text h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.related__intro-text p {
  font-size: 0.98rem;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

.related--premium .related-grid {
  max-width: var(--content-max);
  margin: 0 auto;
}

.related-card__illus {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  min-height: 120px;
  padding: var(--space-5);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.related-card:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.related-card--active {
  border-color: var(--primary);
  background: linear-gradient(180deg, #fff 0%, var(--primary-soft) 100%);
  color: var(--primary-deep);
  box-shadow: 0 8px 24px rgba(0, 97, 254, 0.15);
}

.site-footer {
  background: linear-gradient(160deg, #0047d4 0%, #0039a8 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: 32px 16px;
  margin-top: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.site-footer__brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
}

.site-footer__tagline {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer__nav a:hover { color: #fff; }

.site-footer__copy {
  font-size: 0.78rem;
  opacity: 0.5;
}

.section.features {
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-soft) 100%);
}

.section.steps {
  background: linear-gradient(180deg, var(--blue-soft) 0%, var(--blue-mid) 100%);
}

@media (min-width: 768px) {
  .content-spotlight__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
  }

  .content-spotlight__grid--reverse .content-spotlight__media {
    order: 2;
  }

  .content-spotlight__grid--reverse .content-spotlight__body {
    order: 1;
  }

  .related__intro {
    grid-template-columns: 1.2fr 0.8fr;
    text-align: left;
  }

  .related__intro-text {
    text-align: left;
  }

  .related__intro-text p {
    margin: 0;
  }

  .category-spotlight__header {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
  }

  .category-spotlight__header--reverse .content-spotlight__media {
    order: 2;
  }

  .category-spotlight__header--reverse .category-spotlight__intro {
    order: 1;
  }

  .category-spotlight__intro {
    text-align: left;
  }

  .category-spotlight__intro p {
    margin: 0;
  }

  .home-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    text-align: left;
  }

  .home-hero__content { text-align: left; }
  .home-hero__desc { margin: 0; }
  .trust-badges { justify-content: flex-start; }

  .tool-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .tool-hero__content { text-align: left; }
  .tool-hero--premium .tool-hero__content { text-align: left; }
  .tool-hero--premium .trust-badges { justify-content: flex-start; }
  .tool-hero--with-art .trust-badges { justify-content: flex-start; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .tools-grid,
  .features-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .category-spotlight__intro {
    text-align: center;
  }

  .category-spotlight__intro p {
    margin: 0 auto;
  }
}

/* ===== GENERATOR CARD ===== */
.generator {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-left: calc(-1 * var(--space-4));
  margin-right: calc(-1 * var(--space-4));
  padding: var(--space-5) var(--space-4) var(--space-6);
  background:
    radial-gradient(ellipse 90% 80% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(165deg, #0061FE 0%, #0054eb 42%, #0047d4 100%);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-tool);
}

.generator__card {
  width: 100%;
  max-width: 980px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 20px 56px rgba(0, 40, 130, 0.28),
    0 0 0 1px rgba(0, 97, 254, 0.08);
}

/* ===== TYPE NAV ===== */
.type-nav {
  display: flex;
  align-items: stretch;
  background: linear-gradient(90deg, #0047d4 0%, #0061FE 100%);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.type-nav__item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 14px 18px;
  border: none;
  background: transparent;
  color: var(--text-nav);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.type-nav__item svg { flex-shrink: 0; opacity: 0.8; }

.type-nav__item:hover {
  color: var(--text-nav-active);
  background: rgba(255, 255, 255, 0.05);
}

.type-nav__item.active {
  background: var(--nav-active);
  color: var(--text-nav-active);
  box-shadow: inset 0 -3px 0 #ffffff;
}

.type-nav__item.active svg { opacity: 1; }

/* ===== BODY LAYOUT ===== */
.generator__body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
}

.config {
  border-right: 1px solid var(--border);
  min-width: 0;
  background: #fff;
}

/* ===== ACCORDION ===== */
.accordion {
  border-bottom: 1px solid var(--border-light);
}

.accordion:last-child { border-bottom: none; }

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  border: none;
  background: transparent;
  color: var(--primary-deep);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.accordion__chevron {
  color: var(--text-mid);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.accordion:not(.open) .accordion__chevron {
  transform: rotate(180deg);
}

.accordion__body {
  padding: 0 24px 22px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}

.accordion:not(.open) .accordion__body {
  max-height: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

/* ===== INPUTS ===== */
.input-group { margin-bottom: 4px; }

.input-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field::placeholder { color: var(--text-dim); }

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 97, 254, 0.16);
}

.input-field--textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

.input-hint {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

select.input-field {
  appearance: none;
  margin-bottom: 8px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234a6080' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* ===== DESIGN TABS ===== */
.design-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.design-tabs__item {
  padding: 10px 16px 12px;
  border: none;
  background: transparent;
  color: var(--text-mid);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.design-tabs__item::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s;
}

.design-tabs__item:hover { color: var(--text); }

.design-tabs__item.active {
  color: var(--primary);
  font-weight: 600;
}

.design-tabs__item.active::after { background: var(--primary); }

/* ===== DESIGN PANELS ===== */
.design-panel__hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.logo-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-size: 0.85rem;
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.logo-upload:hover,
.logo-upload:focus-within {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-softer);
  box-shadow: 0 0 0 3px rgba(0, 97, 254, 0.14);
}

.logo-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
}

.logo-preview img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius-xs);
  background: #fff;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.logo-preview__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.logo-preview__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-status {
  min-height: 1.2em;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-mid);
}

.logo-status--success { color: #0d7a3e; }
.logo-status--error { color: #c62828; }
.logo-status--loading { color: var(--primary); }

.logo-upload.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.logo-remove {
  border: none;
  background: transparent;
  color: var(--text-mid);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.logo-remove:hover { color: var(--primary); }

.qr-source {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 512px;
  height: 512px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.color-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.color-pick { flex: 1; }

.color-input {
  width: 100%;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  cursor: pointer;
  padding: 3px;
}

.color-input::-webkit-color-swatch-wrapper { padding: 2px; }
.color-input::-webkit-color-swatch { border-radius: 4px; border: none; }

.range-input {
  width: 100%;
  height: 5px;
  margin-top: 8px;
  appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}

.range-input::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* ===== PREVIEW PANEL ===== */
.preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 28px;
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 97, 254, 0.1) 0%, transparent 65%),
    linear-gradient(180deg, #eef3ff 0%, #f8faff 100%);
  min-width: 0;
  border-left: 1px solid var(--border);
}

.preview__qr {
  --qr-display-size: 220px;
  width: var(--qr-display-size);
  height: var(--qr-display-size);
  max-width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  user-select: none;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--primary-border);
  box-shadow: 0 8px 28px rgba(0, 97, 254, 0.14);
}

.qr-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-placeholder__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-canvas {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.qr-canvas canvas,
.qr-canvas img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ===== DOWNLOAD ===== */
.download-group {
  position: relative;
  display: flex;
  width: 100%;
}

.download-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0, 97, 254, 0.22);
}

.download-btn:hover:not(:disabled) { background: var(--primary-hover); }

.download-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.download-btn__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  padding: 0;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.download-btn__toggle:hover { background: var(--primary-hover); }

.download-btn__toggle svg {
  transition: transform 0.2s;
}

.download-btn__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.download-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-menu);
  overflow: hidden;
  z-index: 10;
}

.download-menu button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.download-menu button:hover { background: var(--surface-alt); }

.download-menu li + li { border-top: 1px solid var(--border-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .generator {
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
    border-radius: var(--radius);
  }

  .generator__body {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .preview {
    order: -1;
    background:
      radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.12), transparent),
      linear-gradient(180deg, #0056e8 0%, #0047d4 100%);
    padding: 28px 20px 24px;
    border-left: none;
  }

  .preview__qr {
    --qr-display-size: 260px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px rgba(0, 40, 130, 0.28);
  }

  .download-group {
    width: 100%;
    max-width: 320px;
  }

  .config {
    order: 1;
    border-right: none;
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .generator__card {
    border-radius: 10px;
  }

  .type-nav__item {
    padding: 12px 14px;
    font-size: 0.78rem;
    gap: 6px;
  }

  .type-nav__item svg {
    width: 14px;
    height: 14px;
  }

  .accordion__header {
    padding: 16px 18px;
  }

  .accordion__body {
    padding: 0 18px 18px;
  }

  .design-tabs__item {
    padding: 8px 12px 10px;
    font-size: 0.78rem;
  }

  .download-btn {
    font-size: 0.85rem;
    padding: 13px 12px;
  }
}

@media (max-width: 400px) {
  .type-nav__item span {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== QR SCANNER ===== */
.preview--scanner {
  align-items: center;
}

.scanner-viewport {
  position: relative;
  width: 100%;
  max-width: 280px;
  min-height: 280px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--primary-border);
  box-shadow: 0 8px 28px rgba(0, 97, 254, 0.14);
  overflow: hidden;
}

.scanner-viewport__reader {
  width: 100%;
  min-height: 280px;
}

.scanner-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fff;
}

.scanner-placeholder.hidden {
  display: none;
}

.scanner-placeholder__img {
  width: 100%;
  height: 100%;
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
}

#scannerViewport video,
#scannerViewport img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: var(--radius);
}

#scannerViewport > div {
  width: 100% !important;
}

.scan-result__empty {
  margin: 0;
  padding: 14px;
  font-size: 0.9rem;
  color: var(--text-dim);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.scan-result__parsed {
  margin-bottom: 12px;
  padding: 14px 16px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
}

.scan-result__parsed strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-deep);
  font-size: 0.95rem;
}

.scan-result__parsed span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.55;
}

.scan-result__parsed span + span {
  margin-top: 4px;
}

.scan-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.scan-action-btn {
  width: 100%;
  min-height: 48px;
  text-align: center;
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  margin-top: 8px;
  margin-right: 8px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(0, 97, 254, 0.12);
}

.scan-status {
  min-height: 1.2em;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-mid);
}

.scan-status--success { color: #0d7a3e; }
.scan-status--error { color: #c62828; }
.scan-status--loading { color: var(--primary); }

@media (max-width: 860px) {
  .scanner-viewport,
  .scanner-viewport__reader {
    max-width: 260px;
    min-height: 260px;
    margin: 0 auto;
  }
}

/* ===== BARCODE GENERATOR ===== */
.preview--barcode {
  align-items: center;
}

.preview__barcode {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-height: 160px;
  padding: 20px 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--primary-border);
  box-shadow: 0 8px 28px rgba(0, 97, 254, 0.14);
}

.barcode-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.barcode-placeholder__img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
}

.barcode-canvas {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.barcode-canvas svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.barcode-source {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.barcode-error {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #c62828;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-mid);
  cursor: pointer;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

@media (max-width: 860px) {
  .preview__barcode {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* ===== COMPOUND INTEREST CALCULATOR ===== */
body.dialog-open {
  overflow: hidden;
}

.calc-card {
  width: 100%;
  max-width: 980px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 20px 56px rgba(0, 40, 130, 0.28),
    0 0 0 1px rgba(0, 97, 254, 0.08);
}

.calc-card__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 16px 20px;
  background: linear-gradient(90deg, #0047d4 0%, #0061FE 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-card__toolbar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.currency-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.currency-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.currency-btn:active {
  transform: scale(0.98);
}

.currency-btn__flag {
  font-size: 1.15rem;
  line-height: 1;
}

.currency-btn__chevron {
  opacity: 0.85;
}

.calc-card__body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
}

.calc-form {
  padding: 24px;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.calc-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calc-form__grid .input-group--full {
  grid-column: 1 / -1;
}

.input-with-prefix {
  position: relative;
}

.input-with-prefix__symbol {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  pointer-events: none;
}

.input-with-prefix .input-field {
  padding-left: 36px;
}

.input-with-suffix {
  position: relative;
}

.input-with-suffix__symbol {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  pointer-events: none;
}

.input-with-suffix .input-field {
  padding-right: 36px;
}

.calc-results {
  padding: 24px 22px;
  background: linear-gradient(180deg, var(--surface-alt) 0%, #fff 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc-results__hero {
  padding: 20px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0061FE 0%, #0047d4 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 97, 254, 0.28);
}

.calc-results__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-bottom: 6px;
}

.calc-results__value {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  word-break: break-word;
}

.calc-results__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-stat {
  padding: 14px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.calc-stat__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.calc-stat__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.calc-results__bar {
  margin-top: 4px;
}

.calc-results__bar-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: var(--text-mid);
}

.calc-results__bar-track {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--border-light);
}

.calc-results__bar-seg {
  height: 100%;
  transition: width 0.35s ease;
}

.calc-results__bar-seg--principal {
  background: linear-gradient(90deg, #7eb0ff, #0061FE);
}

.calc-results__bar-seg--interest {
  background: linear-gradient(90deg, #00c896, #00a67d);
}

.calc-results__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-mid);
}

.calc-results__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calc-results__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.calc-results__legend-dot--principal { background: #0061FE; }
.calc-results__legend-dot--interest { background: #00a67d; }

.calc-breakdown {
  margin-top: 8px;
}

.calc-breakdown__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.calc-breakdown__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.calc-breakdown__table th,
.calc-breakdown__table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.calc-breakdown__table th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--text-mid);
  font-size: 0.75rem;
}

.calc-breakdown__table tr:last-child td {
  border-bottom: none;
}

.calc-breakdown__empty {
  text-align: center;
  color: var(--text-dim);
  padding: 20px 12px !important;
  white-space: normal;
}

/* Currency floating dialog */
.currency-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.currency-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 31, 61, 0.45);
  backdrop-filter: blur(4px);
  animation: currencyFadeIn 0.25s ease;
}

.currency-dialog__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(85vh, 640px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 24px 64px rgba(0, 40, 130, 0.28),
    0 0 0 1px rgba(0, 97, 254, 0.08);
  animation: currencyPanelIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.currency-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--border-light);
}

.currency-dialog__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.02em;
}

.currency-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-mid);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.currency-dialog__close:hover {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.currency-dialog__search-wrap {
  padding: 0 20px 12px;
}

.currency-dialog__search {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  background: var(--surface-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7fa3' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") 12px center no-repeat;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.currency-dialog__search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 97, 254, 0.14);
  background-color: #fff;
}

.currency-dialog__list {
  list-style: none;
  margin: 0;
  padding: 0 10px 14px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.currency-dialog__section {
  padding: 10px 10px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.currency-dialog__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.18s, transform 0.18s;
}

.currency-dialog__option:hover {
  background: var(--primary-softer);
}

.currency-dialog__option--active {
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1.5px var(--primary-border);
}

.currency-dialog__option-flag {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.currency-dialog__option-body {
  flex: 1;
  min-width: 0;
}

.currency-dialog__option-code {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.currency-dialog__option-name {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.currency-dialog__option-check {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
}

.currency-dialog__empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

@keyframes currencyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes currencyPanelIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  .calc-results {
    order: -1;
    border-bottom: 1px solid var(--border);
  }

  .calc-form {
    border-right: none;
  }

  .calc-form__grid {
    grid-template-columns: 1fr;
  }

  .currency-dialog {
    align-items: flex-end;
    padding: 0;
  }

  .currency-dialog__panel {
    max-width: none;
    max-height: 88vh;
    border-radius: calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0 0;
    animation: currencySheetIn 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .currency-dialog__panel::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: var(--border);
  }
}

@keyframes currencySheetIn {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .currency-dialog__backdrop,
  .currency-dialog__panel {
    animation: none;
  }

  .calc-results__bar-seg {
    transition: none;
  }
}

/* ===== PERCENTAGE CALCULATOR ===== */
.pct-summary {
  margin: 0;
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-mid);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.pct-examples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pct-examples li {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--text-mid);
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.pct-examples strong {
  color: var(--primary-deep);
}

/* ===== MERGE PDF ===== */
.pdf-card {
  width: 100%;
  max-width: 980px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 20px 56px rgba(0, 40, 130, 0.28),
    0 0 0 1px rgba(0, 97, 254, 0.08);
}

.pdf-card__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: 16px 20px;
  background: linear-gradient(90deg, #0047d4 0%, #0061FE 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-card__toolbar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.pdf-card__toolbar-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.pdf-card__body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  align-items: start;
}

.pdf-workspace {
  padding: 24px;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.pdf-drop-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  padding: 28px 20px;
  border: 2px dashed var(--primary-border);
  border-radius: var(--radius);
  background: var(--primary-softer);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.pdf-drop-zone:hover,
.pdf-drop-zone:focus-within,
.pdf-drop-zone--active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 4px rgba(0, 97, 254, 0.12);
}

.pdf-drop-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.pdf-drop-zone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.pdf-drop-zone__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.pdf-drop-zone__hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 280px;
}

.pdf-list-empty {
  margin: 16px 0 0;
  padding: 16px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-dim);
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.pdf-file-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdf-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.pdf-file-item:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.pdf-file-item--dragging {
  opacity: 0.45;
}

.pdf-file-item--over {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 97, 254, 0.14);
}

.pdf-file-item__drag {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: grab;
  flex-shrink: 0;
}

.pdf-file-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background: var(--primary-soft);
  color: var(--primary-deep);
  flex-shrink: 0;
}

.pdf-file-item__body {
  flex: 1;
  min-width: 0;
}

.pdf-file-item__name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-file-item__meta {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.pdf-file-item__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pdf-file-item__move,
.pdf-file-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pdf-file-item__move:hover:not(:disabled),
.pdf-file-item__remove:hover {
  background: var(--surface-alt);
  color: var(--primary-deep);
}

.pdf-file-item__move:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pdf-file-item__remove:hover {
  background: rgba(198, 40, 40, 0.08);
  color: #c62828;
}

.pdf-sidebar {
  padding: 24px 20px;
  background: linear-gradient(180deg, var(--surface-alt) 0%, #fff 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdf-summary {
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.pdf-summary__title {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.pdf-summary__stats {
  margin: 0;
}

.pdf-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.pdf-summary__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pdf-summary__row dt {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
}

.pdf-summary__row dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.pdf-merge-btn {
  width: 100%;
  margin-top: 4px;
}

.pdf-merge-btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.pdf-clear-btn {
  width: 100%;
  margin-top: 0;
}

.pdf-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-mid);
}

.pdf-status--success { color: #0d7a3e; }
.pdf-status--error { color: #c62828; }
.pdf-status--loading { color: var(--primary); }

.pdf-sidebar__note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-dim);
}

@media (min-width: 861px) {
  .pdf-file-item__drag {
    display: inline-flex;
  }
}

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

  .pdf-sidebar {
    order: -1;
    border-bottom: 1px solid var(--border);
  }

  .pdf-workspace {
    border-right: none;
    padding: 20px 16px;
  }

  .pdf-sidebar {
    padding: 20px 16px;
  }

  .pdf-drop-zone {
    min-height: 140px;
    padding: 24px 16px;
  }

  .pdf-file-item {
    flex-wrap: wrap;
    padding: 12px;
  }

  .pdf-file-item__body {
    flex: 1 1 calc(100% - 56px);
    order: 1;
  }

  .pdf-file-item__icon {
    order: 0;
  }

  .pdf-file-item__actions {
    order: 2;
    width: 100%;
    justify-content: flex-end;
    padding-top: 4px;
    border-top: 1px solid var(--border-light);
    margin-top: 4px;
  }
}

/* ===== SPLIT PDF ===== */
.pdf-file-preview {
  margin-top: 16px;
}

.pdf-file-item--static {
  cursor: default;
}

.pdf-file-item--static:hover {
  box-shadow: none;
}

.pdf-split-options {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.pdf-split-note {
  margin: 0;
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-mid);
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.pdf-pages-panel {
  margin-top: 20px;
}

.pdf-pages-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-light);
}

.pdf-pages-toolbar__hint {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-mid);
}

.pdf-pages-toolbtn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.pdf-pages-toolbtn:hover {
  background: var(--surface-alt);
  border-color: var(--primary-border);
}

.pdf-pages-loading {
  margin: 0 0 var(--space-3);
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 500;
}

.pdf-pages-loading.hidden {
  display: none;
}

.pdf-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: var(--space-3);
}

.pdf-page-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.pdf-page-thumb__frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 2px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.pdf-page-thumb__canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdf-page-thumb__num {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
}

.pdf-page-thumb__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(15, 31, 61, 0.72);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s, transform 0.15s, background 0.15s;
}

.pdf-page-thumb:hover .pdf-page-thumb__remove,
.pdf-page-thumb:focus-within .pdf-page-thumb__remove,
.pdf-page-thumb--removed .pdf-page-thumb__remove {
  opacity: 1;
  transform: scale(1);
}

.pdf-page-thumb__remove:hover {
  background: #c62828;
}

.pdf-page-thumb--removed .pdf-page-thumb__frame {
  border-color: #ef9a9a;
  opacity: 0.45;
}

.pdf-page-thumb--removed .pdf-page-thumb__frame::after {
  content: 'Removed';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c62828;
  background: rgba(255, 255, 255, 0.55);
}

.pdf-page-thumb--removed {
  cursor: pointer;
}

.pdf-page-thumb__frame {
  position: relative;
}

@media (max-width: 767px) {
  .pdf-page-thumb__remove {
    opacity: 1;
    transform: scale(1);
  }

  .pdf-pages-grid {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: var(--space-2);
  }
}

.pdf-pages-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.pdf-pages-toolbtn--file {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pdf-pages-toolbtn--file input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.pdf-page-thumb--merge {
  cursor: grab;
}

.pdf-page-thumb--merge:active {
  cursor: grabbing;
}

.pdf-page-thumb--dragging {
  opacity: 0.45;
}

.pdf-page-thumb--over .pdf-page-thumb__frame {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 97, 254, 0.14);
}

.pdf-page-thumb__grip {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(15, 31, 61, 0.72);
  color: #fff;
  pointer-events: none;
}

.pdf-page-thumb__source {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 0 2px;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-soft);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-page-thumb__actions {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 6px;
}

.pdf-page-thumb__move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pdf-page-thumb__move:hover {
  background: var(--surface-alt);
  border-color: var(--primary-border);
  color: var(--primary);
}

.pdf-pages-grid--merge .pdf-page-thumb__remove {
  opacity: 1;
  transform: scale(1);
}

@media (min-width: 768px) {
  .pdf-page-thumb__actions {
    opacity: 0;
    transition: opacity 0.2s;
  }

  .pdf-page-thumb--merge:hover .pdf-page-thumb__actions,
  .pdf-page-thumb--merge:focus-within .pdf-page-thumb__actions {
    opacity: 1;
  }
}

/* ===== PDF EDITOR ===== */
.pdf-card--editor {
  max-width: 1060px;
}

.pdf-editor {
  margin-top: 16px;
}

.pdf-editor__mobile-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.pdf-editor__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.pdf-editor__tool:hover:not(:disabled) {
  background: var(--surface-alt);
  border-color: var(--primary-border);
}

.pdf-editor__tool:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pdf-editor__tool--danger:hover:not(:disabled) {
  border-color: #ef9a9a;
  color: #c62828;
}

.pdf-editor__tool--color input[type="color"] {
  width: 36px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

.pdf-editor__tool select {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.85rem;
  background: var(--surface);
}

.pdf-editor__pages {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.pdf-editor__page-btn {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text-mid);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pdf-editor__page-btn--active,
.pdf-editor__page-btn:hover {
  border-color: var(--primary);
  background: rgba(0, 97, 254, 0.08);
  color: var(--primary);
}

.pdf-editor__stage {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-editor__nav {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.pdf-editor__nav:hover:not(:disabled) {
  background: var(--surface-alt);
  border-color: var(--primary-border);
}

.pdf-editor__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pdf-editor__canvas-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: auto;
  max-height: min(72vh, 820px);
  padding: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.pdf-editor__page-inner {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.pdf-editor__canvas-wrap canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.pdf-editor__page-inner > #pageCanvas {
  background: #fff;
  box-shadow: var(--shadow-md);
}

.pdf-editor__mask {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  background: transparent;
}

.pdf-editor__hit-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.pdf-text-hit {
  position: absolute;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: text;
  pointer-events: auto;
  border-radius: 0;
}

.pdf-text-hit:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.pdf-editor__overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
}

.pdf-editor__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-sm);
}

.pdf-editor__loading.hidden {
  display: none;
}

.pdf-editor__page-label {
  margin: 12px 0 4px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
}

.pdf-editor__hint {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.pdf-editor-controls {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.pdf-editor-controls__group {
  margin-top: var(--space-3);
}

.pdf-editor-controls__group:first-of-type {
  margin-top: var(--space-2);
}

.pdf-editor-controls__add {
  width: 100%;
  min-height: 48px;
  margin-top: 0;
}

.pdf-editor-controls__color {
  width: 100%;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  background: var(--surface);
}

.pdf-editor-controls__delete {
  width: 100%;
  min-height: 44px;
}

.pdf-editor__page-inner {
  cursor: text;
}

.pdf-text-box {
  position: absolute;
  z-index: 2;
  padding: 0;
  margin: 0;
  border: none;
  outline: 2px solid transparent;
  outline-offset: 1px;
  border-radius: 0;
  line-height: 1.25;
  min-height: 1em;
  pointer-events: auto;
  background: transparent;
}

.pdf-text-box--extracted .pdf-text-box__content,
.pdf-text-box--new .pdf-text-box__content {
  background: transparent;
  padding: 0;
}

.pdf-text-box--selected,
.pdf-text-box:focus-within {
  outline-color: var(--primary);
}

.pdf-text-box--dragging {
  z-index: 5;
  will-change: transform;
  transition: none;
}

.pdf-text-box--dragging .pdf-text-box__content {
  user-select: none;
  -webkit-user-select: none;
  cursor: grabbing;
}

.pdf-text-box__content--ghost {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

.pdf-text-box__content--ghost::selection {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: rgba(36, 99, 235, 0.22);
}

.pdf-text-box__content {
  outline: none;
  min-width: 24px;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: text;
  touch-action: manipulation;
  user-select: text;
  -webkit-user-select: text;
}

.pdf-text-box__content:focus {
  outline: none;
}

.pdf-text-box__handle {
  position: absolute;
  top: -10px;
  right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(15, 31, 61, 0.78);
  color: #fff;
  cursor: grab;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.15s, transform 0.15s, background 0.15s;
  touch-action: none;
}

.pdf-text-box:hover .pdf-text-box__handle,
.pdf-text-box--selected .pdf-text-box__handle,
.pdf-text-box:focus-within .pdf-text-box__handle {
  opacity: 1;
  transform: scale(1);
}

.pdf-text-box__handle:hover {
  background: var(--primary);
}

.pdf-text-box--dragging .pdf-text-box__handle {
  cursor: grabbing;
}

@media (max-width: 767px) {
  .pdf-text-box__handle {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 861px) {
  .pdf-editor__mobile-bar {
    display: none;
  }
}

@media (max-width: 860px) {
  .pdf-sidebar--editor .pdf-editor-controls {
    display: none;
  }

  .pdf-editor__stage {
    flex-direction: column;
    gap: 10px;
  }

  .pdf-editor__nav {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-xs);
  }

  .pdf-editor__canvas-wrap {
    width: 100%;
    max-height: min(58vh, 640px);
  }

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

  .pdf-sidebar--editor {
    order: -1;
  }
}

@media (max-width: 767px) {
  .pdf-editor__tool span {
    display: none;
  }

  .pdf-editor__tool {
    padding: 0 10px;
  }

  .pdf-editor__tool--color span {
    display: none;
  }
}

/* ===== BLOG ===== */
.blog-main {
  padding-top: var(--space-5);
}

.blog-hero {
  padding: var(--space-6) var(--space-4) var(--space-5);
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-deep);
  margin-bottom: var(--space-3);
}

.blog-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.65;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-card);
}

.blog-card__media {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--blue-soft) 0%, #dce8ff 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.blog-card__media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  max-width: none;
}

.blog-card__media:not(.blog-card__media--photo) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.blog-card__media:not(.blog-card__media--photo) img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
}

.blog-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.blog-card__tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
}

.blog-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.55;
  flex: 1;
}

.blog-card__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-7);
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: var(--space-4);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.blog-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.blog-breadcrumb a:hover { text-decoration: underline; }

.blog-article__header {
  margin-bottom: var(--space-5);
}

.blog-article__header h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: var(--space-5);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.blog-article__tag {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
}

.blog-article__hero {
  margin: 0 0 var(--space-5);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
  background: var(--blue-soft);
}

.blog-article__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
  max-height: none;
}

.blog-article__content {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-mid);
}

.blog-article__content h2 {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  color: var(--text);
  margin: var(--space-6) 0 var(--space-3);
  letter-spacing: -0.02em;
}

.blog-article__content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: var(--space-5) 0 var(--space-2);
}

.blog-article__content p {
  margin-bottom: var(--space-4);
}

.blog-article__content ul,
.blog-article__content ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.35rem;
}

.blog-article__content li {
  margin-bottom: var(--space-2);
}

.blog-article__content a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article__content strong {
  color: var(--text);
  font-weight: 600;
}

.blog-article__content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--text);
}

.blog-toc {
  margin: 0 0 var(--space-5);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.blog-toc__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-3);
}

.blog-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.blog-toc li {
  margin-bottom: var(--space-2);
}

.blog-toc a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.blog-toc a:hover { text-decoration: underline; }

.blog-faq {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-light);
}

.blog-faq h2 {
  margin-top: 0;
}

.blog-faq__item {
  margin-bottom: var(--space-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.blog-faq__item summary {
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.blog-faq__item summary::-webkit-details-marker { display: none; }

.blog-faq__item summary:hover {
  background: var(--surface-alt);
}

.blog-faq__item p {
  margin: 0;
  padding: 0 var(--space-4) var(--space-4);
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.blog-article {
  max-width: 820px;
}

.blog-cta {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0061FE 0%, #0047d4 100%);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-tool);
}

.blog-cta__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-3);
  object-fit: contain;
}

.blog-cta h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: #fff;
}

.blog-cta p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-4);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.blog-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.blog-cta .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.blog-related {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-7);
}

.blog-related h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: var(--space-4);
  text-align: center;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-article {
    padding-bottom: var(--space-8);
  }
}
