:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #64707a;
  --line: #d7dee5;
  --paper: #f8fafb;
  --panel: #ffffff;
  --accent: #0b7a75;
  --accent-dark: #075f5b;
  --accent-soft: #e8f7f5;
  --sky: #dff3ff;
  --blue: #1f7ddb;
  --warn: #b54708;
  --shadow: 0 18px 42px rgba(20, 52, 67, 0.09);
  --soft-shadow: 0 10px 28px rgba(20, 52, 67, 0.07);
  --gk-bg: #f6f4fb;
  --gk-surface: #ffffff;
  --gk-low: #f1eef8;
  --gk-container: #e9e5f3;
  --gk-high: #dcd6eb;
  --gk-dot: rgba(185, 178, 244, 0.34);
  --gk-ink: #131b2e;
  --gk-muted: #464555;
  --gk-primary: #0f766e;
  --gk-primary-2: #0d9488;
  --gk-secondary: #12827c;
  --gk-cyan: #9fdad4;
  --gk-cyan-soft: #d9f2ee;
  --gk-tertiary: #684000;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #eefcff 0, #f8fafb 360px, #f8fafb 100%),
    repeating-linear-gradient(135deg, rgba(11, 122, 117, 0.04) 0 1px, transparent 1px 18px);
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(.gk-page) {
  background: #f6f4fb;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 0 18px;
  background:
    linear-gradient(90deg, rgba(255, 48, 48, 0.1), rgba(37, 198, 192, 0.12) 42%, rgba(123, 97, 255, 0.12)),
    rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 26px rgba(20, 52, 67, 0.06);
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  object-fit: contain;
}

.topbar nav a,
.nav-dropdown-trigger,
.back-link {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.topbar nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 12px;
  display: none;
  min-width: 190px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.topbar nav.open {
  display: grid;
}

.topbar nav a,
.nav-dropdown-trigger {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.topbar nav a:hover,
.nav-dropdown-trigger:hover {
  background: #edf7f6;
  color: var(--accent-dark);
}

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

.tool-suite-nav a,
.nav-dropdown-trigger {
  white-space: nowrap;
}

.tool-suite-nav .top-tool-shortcut {
  color: #5d6974;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(185, 199, 211, 0.34);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.tool-suite-nav .top-tool-shortcut:hover {
  color: var(--accent-dark);
  background: rgba(232, 247, 245, 0.72);
  border-color: rgba(157, 210, 206, 0.76);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  height: 18px;
}

.nav-dropdown.open::after {
  display: block;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 112px;
  min-height: 34px;
  padding: 0 13px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-caret {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.nav-dropdown.open .nav-caret {
  transform: translateY(1px) rotate(225deg);
}

.nav-mega-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  z-index: 20;
  display: none;
  width: min(660px, calc(100vw - 24px));
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(215, 222, 229, 0.95);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(20, 52, 67, 0.16);
  scrollbar-width: thin;
}

.nav-dropdown.wide .nav-mega-menu {
  left: auto;
  right: 0;
  width: min(1120px, calc(100vw - 24px));
  transform: none;
}

.nav-dropdown.open .nav-mega-menu {
  display: block;
}

.nav-mega-menu::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 80px;
  width: 18px;
  height: 18px;
  background: inherit;
  border-left: 1px solid rgba(215, 222, 229, 0.95);
  border-top: 1px solid rgba(215, 222, 229, 0.95);
  transform: rotate(45deg);
}

.nav-dropdown.wide .nav-mega-menu::before {
  right: 80px;
}

.nav-mega-head {
  display: none;
}

.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 18px 24px;
}

.nav-mega-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.nav-mega-column strong {
  color: #6a737d;
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar nav .nav-mega-link {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 2px 0;
  color: #24313a;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
}

.topbar nav .nav-mega-link span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.topbar nav .nav-mega-link:hover {
  color: var(--accent-dark);
  background: transparent;
}

.nav-tool-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 4px;
  font-size: 0.48rem;
  font-weight: 900;
  line-height: 1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 8px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  background: linear-gradient(180deg, #3f536f, #34465f);
  border: 1px solid rgba(42, 199, 214, 0.5);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 10px 24px rgba(20, 52, 67, 0.12);
  scrollbar-width: thin;
}

.breadcrumbs::-webkit-scrollbar {
  height: 6px;
}

.breadcrumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.breadcrumb-step {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 220px;
  padding: 0 22px 0 14px;
  flex: 0 0 auto;
  color: #ffffff;
  background: linear-gradient(180deg, #183e6b, #102f55);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%, 13px 50%);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.breadcrumb-step + .breadcrumb-step {
  margin-left: -10px;
  padding-left: 26px;
  background: linear-gradient(180deg, #244f77, #193e63);
}

.breadcrumb-step:first-child {
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%);
}

.breadcrumb-step.active {
  color: #062a31;
  background: linear-gradient(105deg, #33d3db 0%, #8fcab2 52%, #ff8d50 100%);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -2px 0 rgba(126, 68, 25, 0.18),
    0 5px 10px rgba(0, 0, 0, 0.2);
}

.breadcrumb-step a {
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.breadcrumb-step:has(a) {
  cursor: pointer;
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease;
}

.breadcrumb-step:has(a):hover,
.breadcrumb-step:has(a):focus-within {
  z-index: 3;
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 5px 12px rgba(0, 0, 0, 0.18);
}

.breadcrumb-step a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: -2px;
}

.breadcrumb-step[aria-current="page"] {
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(20, 52, 67, 0.08);
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: min(1120px, 100%);
  margin: 8px auto 0;
  padding: 26px 16px 42px;
  background: linear-gradient(180deg, rgba(223, 243, 255, 0.58), rgba(232, 247, 245, 0.36));
  border-top: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
}

.footer a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 26px 16px 56px;
}

.narrow {
  width: min(720px, 100%);
}

.intro {
  padding: 20px 0 18px;
}

.home-page .intro {
  position: relative;
  overflow: hidden;
  padding: 26px 0 24px;
}

.home-page .intro::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(320px, 52vw);
  height: 92px;
  pointer-events: none;
  opacity: 0.75;
  background:
    linear-gradient(135deg, transparent 0 52%, rgba(31, 125, 219, 0.12) 52% 64%, transparent 64%),
    linear-gradient(45deg, transparent 0 44%, rgba(11, 122, 117, 0.1) 44% 57%, transparent 57%);
}

.search-panel {
  display: grid;
  gap: 8px;
  width: min(620px, 100%);
  margin-top: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(185, 199, 211, 0.76);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.search-panel label {
  font-size: 0.9rem;
}

.search-panel input {
  min-height: 52px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #bfd0dc;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(20, 52, 67, 0.04);
}

.search-panel input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(11, 122, 117, 0.16);
}

.search-panel p {
  margin: 0;
  font-size: 0.92rem;
}

.search-chips,
.popular-grid,
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-chips button {
  min-height: 34px;
  padding: 0 11px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #b8dedb;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.search-chips button:hover,
.search-chips button:focus {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.search-chips button:focus {
  outline: 3px solid rgba(11, 122, 117, 0.18);
  outline-offset: 2px;
}

.home-tool-tabs {
  display: flex;
  gap: 10px;
  margin: 4px 0 16px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.home-tool-tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 16px;
  color: #424b55;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #cfd8e3;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(20, 52, 67, 0.04);
  cursor: pointer;
}

.home-tool-tab:hover,
.home-tool-tab:focus-visible {
  color: var(--accent-dark);
  border-color: #9fd7d3;
  outline: 0;
}

.home-tool-tab.active {
  color: #ffffff;
  background: #242731;
  border-color: #242731;
  box-shadow: 0 8px 18px rgba(20, 52, 67, 0.16);
}

.home-tool-tabs .home-tool-tab:hover,
.home-tool-tabs .home-tool-tab:focus-visible {
  color: #0b6763;
  background: #f6ffff;
  border-color: #8ed4cf;
  box-shadow: 0 6px 14px rgba(20, 52, 67, 0.09);
  transform: translateY(-1px);
}

.home-tool-tabs .home-tool-tab.active,
.home-tool-tabs .home-tool-tab.active:hover,
.home-tool-tabs .home-tool-tab.active:focus-visible {
  color: #ffffff;
  background: #0b7a75;
  border-color: #0b7a75;
  box-shadow: 0 10px 20px rgba(11, 122, 117, 0.18);
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.home-tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.popular-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 126px;
  padding: 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(20, 52, 67, 0.03);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.popular-card:hover {
  border-color: #9fd7d3;
  box-shadow: 0 14px 28px rgba(20, 52, 67, 0.11);
  transform: translateY(-2px);
}

.popular-card span {
  font-weight: 700;
}

.popular-card small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.32;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-flow {
  display: grid;
  grid-template-columns: 36px minmax(20px, 1fr) 36px;
  align-items: center;
  width: min(112px, 100%);
  min-height: 31px;
  margin: 1px 0;
}

.mini-format {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 29px;
  justify-self: center;
  color: var(--accent-dark);
  background: #edf7f6;
  border: 1px solid #9dd2ce;
  border-radius: 4px;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
}

.mini-format::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-left: 1px solid #9dd2ce;
  border-bottom: 1px solid #9dd2ce;
  border-radius: 0 4px 0 3px;
}

.mini-format.from {
  transform: rotate(-4deg);
}

.mini-format.to {
  transform: rotate(4deg);
}

.mini-arrow {
  position: relative;
  height: 2px;
  background-image: linear-gradient(to right, #0b7a75 54%, transparent 0);
  background-size: 7px 2px;
  background-repeat: repeat-x;
}

.mini-arrow::before,
.mini-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
}

.mini-arrow::before {
  left: 50%;
  width: 6px;
  height: 6px;
  background: #0b7a75;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.mini-arrow::after {
  right: -1px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #0b7a75;
  border-right: 2px solid #0b7a75;
  transform: translateY(-50%) rotate(45deg);
}

.trust-strip {
  margin: 16px 0 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(185, 199, 211, 0.7);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.trust-strip div {
  flex: 1 1 180px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff, #f6fbfb);
  border: 1px solid #e2edf0;
  border-radius: 12px;
}

.trust-strip strong {
  font-size: 0.94rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.teacher-promo-card {
  position: relative;
  display: grid;
  gap: 13px;
  overflow: hidden;
  margin: 20px 0 14px;
  background:
    linear-gradient(135deg, rgba(11, 122, 117, 0.12), rgba(223, 243, 255, 0.75) 100%),
    #ffffff;
  border-color: #b9dcf1;
}

.teacher-promo-card::after,
.guru-pdf-ad::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 12px;
  width: 120px;
  height: 76px;
  pointer-events: none;
  opacity: 0.52;
  background:
    linear-gradient(135deg, transparent 0 50%, rgba(31, 125, 219, 0.16) 50% 64%, transparent 64%),
    linear-gradient(45deg, transparent 0 42%, rgba(11, 122, 117, 0.14) 42% 58%, transparent 58%);
}

.teacher-promo-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.85rem);
}

.teacher-promo-card p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(2.05rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 22px 0 10px;
}

.section-heading,
.crumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h2 {
  margin: 22px 0 10px;
}

.home-page .tool-section {
  margin-top: 6px;
}

.home-page .section-heading {
  padding: 0 2px;
}

.section-heading a,
.section-heading span,
.crumbs span {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.section-heading a:hover,
.footer a:hover {
  color: var(--accent-dark);
}

.crumbs {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.category-intro {
  padding-bottom: 6px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

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

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.guide-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 16px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(20, 52, 67, 0.03);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.guide-card:hover {
  border-color: #9fd7d3;
  box-shadow: 0 14px 28px rgba(20, 52, 67, 0.1);
  transform: translateY(-2px);
}

.guide-card span {
  font-weight: 800;
}

.guide-card small {
  color: var(--muted);
  line-height: 1.4;
}

.guide-card .guide-card-meta {
  color: #0b7a75;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.home-compact-section {
  overflow: hidden;
}

.home-horizontal-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(330px, 1fr);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 2px 14px;
  background:
    linear-gradient(90deg, rgba(11, 122, 117, 0.72), rgba(11, 122, 117, 0.46)) left bottom / 86px 3px no-repeat,
    linear-gradient(90deg, rgba(214, 229, 235, 0.92), rgba(214, 229, 235, 0.92)) left bottom / 100% 3px no-repeat;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 122, 117, 0.58) rgba(214, 229, 235, 0.85);
}

.home-horizontal-list::-webkit-scrollbar {
  height: 7px;
}

.home-horizontal-list::-webkit-scrollbar-track {
  background: rgba(214, 229, 235, 0.85);
  border-radius: 999px;
}

.home-horizontal-list::-webkit-scrollbar-thumb {
  background: rgba(11, 122, 117, 0.58);
  border-radius: 999px;
}

.home-article-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(20, 52, 67, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.home-article-card:hover {
  border-color: #9fd7d3;
  box-shadow: 0 12px 24px rgba(20, 52, 67, 0.1);
  transform: translateY(-1px);
}

.home-article-thumb {
  display: grid;
  place-items: center;
  width: 96px;
  height: 76px;
  overflow: hidden;
  background: #e9f7f6;
  border: 1px solid #c8e8e5;
  border-radius: 8px;
}

.home-article-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-guide-thumb {
  background: linear-gradient(135deg, #e9fbf9, #fff8ea);
}

.home-blog-thumb span {
  color: #0b7a75;
  font-size: 0.86rem;
  font-weight: 800;
}

.home-guide-thumb .card-flow {
  width: 74px;
  height: 34px;
}

.home-guide-thumb .mini-format {
  font-size: 0.58rem;
}

.home-article-body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.home-article-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-article-body small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-article-body em {
  color: #0b7a75;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.inline-guides {
  margin-top: 10px;
}

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

.tool-card {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 146px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(23, 32, 38, 0.03);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tool-card:hover {
  border-color: #9fd7d3;
  box-shadow: 0 14px 28px rgba(20, 52, 67, 0.1);
  transform: translateY(-2px);
}

.tool-card span {
  overflow-wrap: anywhere;
  font-weight: 700;
  line-height: 1.2;
}

.tool-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-style: normal;
  font-weight: 700;
}

.tool-badge.ready {
  color: #075f5b;
  background: #dff4f1;
  border: 1px solid #bce1dd;
}

.tool-badge.soon {
  color: #6b4f00;
  background: #fff3c4;
  border: 1px solid #f2df94;
}

.tool-card small,
.limits,
.expires {
  color: var(--muted);
  line-height: 1.45;
}

.tool-card small {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.upload-panel {
  margin-top: 18px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.tool-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.tool-panel-head > div:first-child {
  min-width: 0;
}

.tool-panel-head h1 {
  margin-right: 0;
}

.tool-share {
  position: relative;
  flex: 0 0 auto;
  z-index: 2;
}

.tool-share-button,
.tool-share-button.secondary {
  gap: 6px;
  min-height: 34px;
  padding: 0 12px 0 6px;
  background: #e92424;
  border-color: #e92424;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.tool-share-button:hover,
.tool-share-button.secondary:hover {
  background: #c91616;
  border-color: #c91616;
  color: #ffffff;
}

.share-icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  background: #ffffff;
  border-radius: 999px;
}

.share-icon {
  width: 18px;
  height: 18px;
}

.share-icon circle {
  fill: #e92424;
}

.share-icon path {
  fill: none;
  stroke: #e92424;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.share-menu a,
.share-menu button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.share-menu a:hover,
.share-menu button:hover {
  background: #edf7f6;
  color: var(--accent-dark);
}

.share-menu-item svg {
  width: 21px;
  height: 21px;
}

.share-menu-item.facebook {
  color: #1877f2;
}

.share-menu-item.link {
  color: var(--accent-dark);
}

.share-menu-item svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-menu-item.facebook svg path {
  fill: currentColor;
  stroke: none;
}

.share-menu-item.whatsapp {
  color: #25d366;
}

.share-menu-item.whatsapp svg {
  width: 26px;
  height: 26px;
}

.wa-logo .wa-bg {
  fill: #25d366;
}

.wa-logo .wa-bubble {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.wa-logo .wa-phone {
  fill: #ffffff;
  stroke: none;
}

.share-menu-item.copied {
  background: #edf7f6;
  color: var(--accent-dark);
}

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

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.5;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(11, 122, 117, 0.16);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

button:hover,
.button:hover {
  background: var(--accent-dark);
  box-shadow: 0 14px 24px rgba(11, 122, 117, 0.2);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.process-submit-button {
  justify-self: start;
  width: auto;
  min-width: 0;
  gap: 10px;
  padding: 0 18px 0 20px;
  white-space: nowrap;
}

.process-submit-button::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.secondary {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: none;
}

.secondary:hover {
  background: #edf7f6;
}

.danger {
  background: #fff;
  border-color: #d54b4b;
  color: #b42323;
}

.danger:hover {
  background: #fff1f1;
}

.legal-copy h2 {
  margin: 0;
  font-size: 1.2rem;
}

.contact-grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-info {
  display: grid;
  gap: 12px;
}

.contact-info p,
.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-details {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
}

.contact-details div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-details dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-details dd {
  margin: 0;
  font-weight: 800;
}

.contact-details a {
  color: var(--accent-dark);
}

.contact-form {
  margin-top: 0;
}

.contact-form textarea {
  min-height: 160px;
}

.compression-estimate {
  display: grid;
  gap: 4px;
  margin-top: -2px;
  padding: 12px;
  color: var(--accent-dark);
  background: #edf7f6;
  border: 1px solid #b8dedb;
  border-radius: 8px;
}

.compression-estimate strong {
  font-size: 0.9rem;
}

.compression-estimate span,
.compression-estimate small {
  color: var(--muted);
  line-height: 1.4;
}

.compression-estimate small {
  font-size: 0.78rem;
}

.limits {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.alert {
  margin: 14px 0;
  padding: 12px;
  color: var(--warn);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
}

.file-label {
  margin-bottom: -6px;
}

.upload-dropzone {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 16px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%),
    var(--accent);
  border: 1px solid #0a716c;
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(11, 122, 117, 0.18);
}

.upload-dropzone.dragging {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    var(--accent-dark);
  border-color: #064d4a;
}

.upload-dropzone .file-input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  border: 0;
  white-space: nowrap;
}

.upload-dropzone .visible-file-input {
  position: static;
  width: auto;
  min-height: auto;
  height: auto;
  margin: 8px auto 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  opacity: 1;
  border: 0;
  color: #ffffff;
  white-space: normal;
}

.compact-upload {
  min-height: 170px;
}

.watermark-upload-form {
  display: grid;
  gap: 14px;
}

.watermark-options {
  display: grid;
  gap: 14px;
}

.watermark-image-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f6fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.watermark-image-field input[type="file"] {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.watermark-image-field button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
}

.watermark-image-field span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-visual {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(58px, 1fr) 64px;
  align-items: center;
  width: min(232px, 100%);
  height: 58px;
}

.format-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 56px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  justify-self: center;
  text-align: center;
}

.format-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 13px;
  height: 13px;
  background: rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 0 4px 0 3px;
}

.format-card.from {
  transform: rotate(-5deg);
}

.format-card.to {
  transform: rotate(5deg);
}

.format-arrow {
  position: relative;
  height: 2px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.9) 52%, transparent 0);
  background-size: 10px 2px;
  background-repeat: repeat-x;
}

.format-arrow::before,
.format-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
}

.format-arrow::before {
  left: 50%;
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.format-arrow::after {
  right: -1px;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(255, 255, 255, 0.95);
  border-right: 2px solid rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) rotate(45deg);
}

.file-picker-button {
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  width: min(240px, 100%);
  padding: 0 18px;
  color: var(--ink);
  background: #ffffff;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(23, 32, 38, 0.16);
  font-weight: 850;
}

.file-picker-button::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-2px);
}

.file-picker-icon {
  position: relative;
  width: 18px;
  height: 22px;
  border: 1.8px solid var(--ink);
  border-radius: 2px;
}

.file-picker-icon::before,
.file-picker-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.file-picker-icon::before {
  left: 4px;
  right: 4px;
  top: 10px;
  height: 1.8px;
}

.file-picker-icon::after {
  top: 6px;
  bottom: 6px;
  left: 8px;
  width: 1.8px;
}

.upload-dropzone p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
  font-weight: 700;
}

.file-summary {
  margin-top: -4px;
  padding: 12px;
  background: #f4f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.file-summary p {
  margin: 0;
  font-size: 0.92rem;
}

.file-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.file-summary-head span {
  flex: 0 0 auto;
  color: var(--muted);
}

.file-summary ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-summary li {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #e1e8ee;
  border-radius: 7px;
}

.file-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.file-row-main span {
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-row-main button {
  min-height: 30px;
  padding: 5px 9px;
  color: var(--warn);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 800;
}

.add-file-button {
  justify-self: start;
  min-height: 42px;
  margin-top: 2px;
  border: 1px solid #b8ddd8;
}

.camera-tools {
  display: grid;
  gap: 10px;
}

.camera-open-button {
  justify-self: start;
  min-height: 42px;
  border: 1px solid #b8ddd8;
}

.camera-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: #f4f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.camera-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0f1b22;
  border-radius: 7px;
  object-fit: cover;
}

.camera-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.camera-actions button {
  min-width: 0;
}

.camera-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.camera-panel p.error {
  color: var(--warn);
  font-weight: 700;
}

.file-summary li small {
  color: var(--muted);
}

.file-warning {
  margin-top: 10px;
  color: var(--warn);
  font-size: 0.9rem;
  font-weight: 700;
}

.coming-soon-panel {
  margin-top: 18px;
  padding: 14px;
  background: #fff9e6;
  border: 1px solid #f2d98d;
  border-radius: 8px;
}

.coming-soon-panel p {
  margin: 6px 0 0;
}

.notice-box {
  margin: 0 0 14px;
  padding: 12px;
  color: #6b4f00;
  background: #fff8db;
  border: 1px solid #f2d98d;
  border-radius: 8px;
  line-height: 1.45;
}

.service-check {
  display: grid;
  gap: 4px;
  margin: 18px 0 14px;
  padding: 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-check strong {
  font-size: 0.92rem;
}

.service-check span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.service-check.ok {
  background: #eefaf7;
  border-color: #afe2d8;
}

.service-check.ok span {
  color: #075f5b;
}

.service-check.missing {
  background: #fff7ed;
  border-color: #fed7aa;
}

.service-check.missing span {
  color: var(--warn);
}

.seo-copy {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seo-copy h2 {
  margin-top: 18px;
}

.seo-copy h2:first-child {
  margin-top: 0;
}

.seo-accordion {
  padding: 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seo-accordion summary {
  cursor: pointer;
  font-weight: 900;
  line-height: 1.35;
}

.seo-accordion summary::marker {
  color: var(--accent-dark);
}

.seo-accordion[open] summary {
  margin-bottom: 12px;
}

.seo-copy h3 {
  margin: 18px 0 6px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.seo-copy p {
  color: var(--muted);
  line-height: 1.62;
}

.seo-copy ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.seo-copy ul {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list details {
  padding: 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 8px 0 0;
}

.article-copy h2 {
  margin: 24px 0 8px;
}

.article-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.article-topbar .eyebrow {
  margin: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.article-meta span {
  position: relative;
}

.article-meta span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a9bac4;
  transform: translateY(-50%);
}

.article-meta a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.article-meta a:hover {
  text-decoration: underline;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 16px;
}

.article-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  color: #0b6763;
  background: #ecfbfa;
  border: 1px solid #b8e7e3;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.article-share {
  margin-left: auto;
}

.article-copy ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.article-image {
  margin: 22px 0;
}

.article-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.article-cta {
  margin-top: 22px;
}

.article-tool-cards {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  background: #f0fbfb;
  border: 1px solid #b8e7e3;
  border-radius: 8px;
}

.article-tool-cards > strong {
  color: var(--text);
  font-size: 1rem;
}

.article-tool-cards .popular-grid {
  margin: 0;
}

.blog-comments,
.blog-related-tools {
  margin-top: 18px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.blog-comments h2,
.blog-related-tools h2 {
  margin: 0 0 12px;
}

.comment-form {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.comment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.comment-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.comment-form textarea {
  resize: vertical;
  min-height: 120px;
}

.comment-form p {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.comment-form button {
  justify-self: start;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comment-item div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.comment-item span,
.comment-item time,
.comment-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.comment-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.blog-related-tools .section-heading {
  align-items: flex-start;
}

.blog-related-tools .section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.related-tool-grid {
  margin-top: 14px;
}

.guide-top-cta {
  margin: 4px 0 8px;
}

.admin-page h2 {
  margin-top: 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.admin-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-grid strong {
  font-size: 1.3rem;
}

.admin-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.admin-list a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.admin-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-language-grid fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-language-grid legend {
  padding: 0 6px;
  color: var(--accent-dark);
  font-weight: 900;
}

.admin-post-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-post-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-post-row strong,
.admin-post-row span {
  overflow-wrap: anywhere;
}

.admin-post-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions form {
  margin: 0;
}

.admin-actions .button,
.admin-actions button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 0.86rem;
}

.admin-inline-status {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-title-row h1 {
  margin-bottom: 0;
}

.admin-period-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-period-filter label {
  display: inline;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.admin-period-filter select {
  min-height: 36px;
  width: auto;
  min-width: 170px;
  margin: 0;
  padding: 0 34px 0 10px;
  font-size: 0.9rem;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.admin-section-head h2 {
  margin: 0;
  font-size: 1rem;
}

.admin-section-head span {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-bars {
  display: grid;
  gap: 10px;
}

.admin-bar-row {
  display: grid;
  gap: 5px;
}

.admin-bar-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-bar-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-bar-label strong {
  color: var(--ink);
}

.admin-bar-track {
  height: 9px;
  overflow: hidden;
  background: #edf3f5;
  border-radius: 999px;
}

.admin-bar-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6fcb7d);
  border-radius: inherit;
}

.admin-line-chart {
  width: 100%;
  height: auto;
  min-height: 160px;
  background: #f8fafb;
  border: 1px solid #e1e8ee;
  border-radius: 8px;
}

.admin-line-chart line {
  stroke: #cbd6de;
  stroke-width: 1;
}

.admin-line-chart polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-line-chart circle {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 3;
}

.admin-date-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 6px;
}

.admin-date-row span {
  display: grid;
  gap: 2px;
  padding: 7px;
  color: var(--muted);
  background: #f8fafb;
  border: 1px solid #e1e8ee;
  border-radius: 7px;
  font-size: 0.76rem;
  text-align: center;
}

.admin-date-row strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e1e8ee;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--accent-dark);
  background: #edf7f6;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--muted);
}

.admin-empty {
  margin: 0;
  color: var(--muted);
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inline-check input {
  width: 18px;
  min-height: 18px;
}

.sitemap-copy h2 {
  margin: 22px 0 8px;
}

.sitemap-copy ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.sitemap-copy a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.service-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.install-box {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  background: #f4f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.install-box code {
  overflow-x: auto;
  padding: 10px;
  color: #0d2f2c;
  background: #ffffff;
  border: 1px solid #d6e3e1;
  border-radius: 7px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.status-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.status-links a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.utility-panel {
  display: grid;
  gap: 14px;
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(20, 52, 67, 0.06);
}

.language-switch a {
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.language-switch a.active {
  color: #fff;
  background: var(--accent);
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.option-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.option-row input {
  width: 18px;
  min-height: 18px;
}

.result-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.qr-result {
  display: grid;
  justify-items: start;
  gap: 12px;
  min-height: 90px;
  color: var(--muted);
}

.qr-result img {
  width: min(260px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qr-logo-option {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qr-logo-option input[type="file"] {
  display: none;
}

.qr-logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qr-logo-actions button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.qr-logo-option p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.qr-logo-preview img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.view-pdf-panel {
  display: grid;
  gap: 14px;
}

.view-pdf-status {
  padding: 12px 14px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.view-pdf-frame-wrap {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.view-pdf-frame {
  width: 100%;
  height: min(76vh, 760px);
  min-height: 420px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.service-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-state {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.service-state.ok {
  color: #075f5b;
  background: #dff4f1;
}

.service-state.missing {
  color: #7a1f1f;
  background: #ffe1e1;
}

.progress-shell {
  width: 100%;
  height: 10px;
  overflow: hidden;
  background: #e8eef2;
  border-radius: 999px;
}

.progress-bar {
  width: 20%;
  height: 100%;
  background: var(--accent);
  transition: width 240ms ease;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.actions form {
  margin: 0;
}

.tool-rating-summary {
  display: grid;
  gap: 6px;
  margin: 8px 0 18px;
  color: var(--muted);
}

.rating-stars {
  color: #f2a900;
  letter-spacing: 1px;
}

.rating-distribution {
  display: flex;
  gap: 7px;
  align-items: end;
}

.rating-distribution span {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 22px;
}

.rating-distribution em {
  color: var(--ink);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.rating-distribution b {
  color: #f2a900;
  font-size: 1rem;
  line-height: 1;
}

.rating-panel {
  margin-top: 14px;
  text-align: center;
}

.rating-panel h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.rating-panel form {
  display: grid;
  gap: 14px;
}

.rating-picker {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.rating-picker input {
  position: absolute;
  width: 1px;
  min-height: 0;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.rating-picker span {
  color: #83909a;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: color 120ms ease, transform 120ms ease;
}

.rating-picker label.active span {
  color: #f2a900;
}

.rating-picker label:hover span {
  transform: translateY(-1px);
}

.rating-panel textarea {
  min-height: 96px;
}

.rating-message {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--muted);
}

.recommendations {
  margin-top: 18px;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.recommendation-card {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 13px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.recommendation-card span {
  font-weight: 800;
}

.recommendation-card small {
  color: var(--muted);
  line-height: 1.35;
}

.sign-editor {
  min-height: 100vh;
  background: #eef3f7;
  overflow-x: hidden;
}

body:has(.sign-editor) .topbar,
body:has(.sign-editor) .footer {
  display: none;
}

.sign-editor-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.edit-top-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.86rem;
}

.edit-top-controls input {
  width: 56px;
  min-height: 34px;
  padding: 0 8px;
  text-align: center;
}

.edit-inline-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.edit-inline-control input,
.edit-inline-control select {
  width: auto;
  min-height: 26px;
  padding: 0 4px;
  border: 0;
  background: transparent;
}

.sign-editor-actions,
.sign-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sign-editor-actions .button,
.sign-editor-actions button,
.editor-bottom-actions .button,
.editor-bottom-actions button,
.sign-editor-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.sign-editor-toolbar button.active,
.edit-toolbar button.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.sign-editor-toolbar button.active .button-icon,
.edit-toolbar button.active .button-icon {
  color: #ffffff;
}

.button-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sign-editor-actions .button-icon {
  width: 18px;
  height: 18px;
}

.editor-bottom-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: min(760px, calc(100% - 28px));
  margin: 16px auto 28px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.merge-editor .editor-bottom-actions {
  width: min(980px, calc(100% - 28px));
}

.split-bottom-actions {
  width: min(720px, calc(100% - 28px));
}

.editor-bottom-actions .button,
.editor-bottom-actions button {
  min-height: 44px;
  text-decoration: none;
}

.editor-bottom-actions .button-icon {
  width: 18px;
  height: 18px;
}

.sign-editor-toolbar .secondary .button-icon {
  color: currentColor;
}

.icon-only {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
}

.sign-editor-toolbar {
  position: sticky;
  top: 57px;
  z-index: 18;
  overflow-x: auto;
  padding: 8px 16px;
  background: #f9fbfc;
  border-bottom: 1px solid var(--line);
}

.merge-editor {
  padding-bottom: 32px;
}

.merge-editor-panel {
  width: min(980px, calc(100% - 28px));
  margin: 18px auto 0;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.merge-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.merge-editor-head h1 {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 3.1rem);
}

.merge-editor-head p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.merge-editor-head > strong {
  flex: 0 0 auto;
  padding: 8px 11px;
  background: #e7fbf8;
  color: #006d68;
  border-radius: 999px;
  font-size: 0.82rem;
}

.merge-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.merge-file-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(150px, 1fr) auto;
  gap: 10px;
  min-width: 0;
  min-height: 250px;
  padding: 14px 12px 12px;
  background: #f8fafb;
  border: 1px solid #cdd8df;
  border-radius: 8px;
  cursor: grab;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.merge-file-card.dragging {
  opacity: 0.75;
  transform: scale(0.98);
}

.merge-file-card:hover,
.merge-file-card:focus-within {
  border-color: #8da1ad;
  box-shadow: 0 10px 24px rgba(23, 32, 38, 0.1);
}

.merge-card-actions {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 5px;
}

.merge-card-actions .icon-only {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  background: rgba(255, 255, 255, 0.92);
  border-color: #cdd8df;
  color: #26333b;
  box-shadow: 0 4px 12px rgba(23, 32, 38, 0.12);
}

.merge-card-actions .button-icon {
  width: 15px;
  height: 15px;
}

.merge-thumb {
  display: grid;
  place-items: center;
  min-height: 154px;
  padding: 16px;
  background: #f2f5f7;
  border-radius: 7px;
  overflow: hidden;
}

.merge-thumb img {
  display: block;
  max-width: 100%;
  max-height: 150px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.12);
  transition: transform 160ms ease;
}

.merge-file-meta {
  min-width: 0;
  text-align: center;
}

.merge-file-meta strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merge-file-meta span {
  color: var(--muted);
  font-size: 0.78rem;
}

.merge-file-card em {
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  background: #0b7a75;
  color: #ffffff;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
}

.merge-editor-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-editor-panel {
  width: min(980px, calc(100% - 28px));
}

.page-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.page-card {
  min-height: 228px;
}

.rotate-editor .page-card {
  cursor: default;
}

.rotation-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 16px;
}

.rotation-picker button {
  min-height: 40px;
  padding: 0 18px;
  background: #f8fafb;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.rotation-picker button.active {
  background: #0b7a75;
  color: #ffffff;
  border-color: #0b7a75;
}

.crop-control {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
  padding: 14px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.crop-control span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.crop-control input {
  width: 100%;
  accent-color: #0b7a75;
}

.crop-page-card {
  cursor: default;
}

.crop-preview {
  position: relative;
}

.crop-preview img {
  position: relative;
  z-index: 1;
}

.crop-box {
  position: absolute;
  z-index: 2;
  inset: var(--crop-margin, 10%);
  border: 2px dashed #ef2f2f;
  border-radius: 5px;
  background: rgba(11, 122, 117, 0.08);
  box-shadow: 0 0 0 999px rgba(23, 32, 38, 0.14);
  pointer-events: none;
}

.split-editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: calc(100vh - 57px);
}

.split-preview-panel {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 24px;
}

.split-editor-head {
  max-width: 760px;
}

.split-editor-head h1 {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 3.1rem);
}

.split-editor-head p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
}

.split-range-preview {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 18px;
  border: 1px dashed #8fa4af;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
}

.split-range-preview > span {
  color: var(--muted);
  font-weight: 800;
}

.split-preview-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: 100%;
}

.split-preview-cards figure {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: 0;
  min-width: 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 38, 0.09);
}

.split-preview-cards img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.split-preview-cards b {
  color: var(--text);
  font-size: 1.4rem;
}

.split-preview-cards figcaption {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.split-preview-cards figcaption span {
  color: #0b7a75;
  font-weight: 900;
}

.split-control-panel {
  position: sticky;
  top: 57px;
  align-self: start;
  min-height: calc(100vh - 57px);
  padding: 20px 14px;
  background: #ffffff;
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 28px rgba(23, 32, 38, 0.06);
}

.split-control-panel form {
  display: grid;
  gap: 14px;
}

.split-control-panel h2 {
  margin: 0;
  font-size: 1rem;
}

.split-range-list {
  display: grid;
  gap: 10px;
}

.split-range-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  padding: 10px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.split-range-row.active {
  border-color: #0b7a75;
  box-shadow: 0 0 0 2px rgba(11, 122, 117, 0.1);
}

.split-row-title {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.split-range-row label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.split-range-row input[type="number"] {
  width: 100%;
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid #cdd8df;
  border-radius: 7px;
  font: inherit;
}

.split-range-row .icon-only {
  align-self: end;
}

.split-add-range {
  justify-self: start;
}

.split-combine-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.35;
}

.split-combine-check input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-top: 1px;
}

.split-submit {
  min-height: 56px;
  background: #e92424;
  border-color: #e92424;
  font-size: 1rem;
}

.split-submit:hover {
  background: #c91616;
  border-color: #c91616;
}

.sign-editor-shell {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: calc(100vh - 107px);
}

.sign-thumbs {
  overflow-y: auto;
  padding: 14px 10px;
  background: #f5f8fa;
  border-right: 1px solid var(--line);
}

.sign-thumb {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0 0 14px;
  padding: 8px;
  background: #ffffff;
  border: 2px solid transparent;
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.08);
}

.sign-thumb.active {
  border-color: #3157ff;
}

.sign-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.sign-thumb span {
  justify-self: center;
  min-width: 34px;
  padding: 4px 8px;
  background: #3157ff;
  color: #ffffff;
  border-radius: 5px;
  font-weight: 800;
  font-size: 0.78rem;
}

.image-thumb-item {
  margin: 0 0 14px;
}

.image-thumb-item .sign-thumb {
  margin-bottom: 8px;
}

.image-thumb-order {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.image-thumb-order .icon-only {
  width: 100%;
  min-height: 34px;
  padding: 6px;
  border-radius: 6px;
}

.image-thumb-order .icon-only:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sign-stage-wrap {
  overflow: auto;
  display: grid;
  place-items: start center;
  padding: 24px;
}

.sign-stage {
  width: min(760px, 100%);
}

.edit-pdf-editor .sign-stage {
  width: min(calc(760px * var(--edit-zoom, 1)), 1400px);
  max-width: none;
}

.image-pdf-stage {
  width: min(720px, 100%);
}

.image-pdf-page {
  position: relative;
  display: none;
  width: min(100%, 620px);
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(23, 32, 38, 0.14);
}

.image-pdf-page.active {
  display: block;
}

.image-pdf-safe-area {
  position: absolute;
  inset: 4%;
  border: 1px dashed rgba(11, 122, 117, 0.26);
  pointer-events: none;
}

.image-pdf-photo {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px dashed transparent;
  touch-action: none;
  cursor: move;
}

.image-pdf-photo.selected,
.image-pdf-photo:hover {
  border-color: #3157ff;
}

.image-pdf-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.image-pdf-toolbar {
  align-items: center;
}

.image-pdf-toolbar .edit-inline-control.is-disabled {
  opacity: 0.55;
}

.image-pdf-toolbar .edit-inline-control.is-disabled select {
  cursor: not-allowed;
}

.sign-page {
  position: relative;
  display: none;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(23, 32, 38, 0.14);
}

.sign-page.active {
  display: block;
}

.sign-page > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.placed-signature {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 80px;
  min-height: 36px;
  touch-action: none;
  border: 1px dashed #3157ff;
  background: rgba(255, 255, 255, 0.04);
  cursor: move;
}

.placed-signature img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.placed-watermark {
  border-color: rgba(11, 122, 117, 0.72);
}

.placed-watermark img {
  opacity: 0.72;
}

.placed-edit {
  position: absolute;
  z-index: 5;
  min-width: 42px;
  min-height: 24px;
  border: 1px dashed rgba(11, 122, 117, 0.55);
  border-radius: 4px;
  touch-action: none;
}

.placed-edit.edge-move {
  cursor: move;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.placed-edit.edge-resize {
  cursor: nwse-resize;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.placed-edit.selected {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.placed-edit-text {
  resize: none;
  overflow: hidden;
  padding: 3px 5px;
  background: rgba(255, 255, 255, 0.72);
  color: #172026;
  font: 700 16px/1.2 Arial, sans-serif;
}

.placed-edit-box {
  background: rgba(250, 204, 21, 0.34);
  border-color: rgba(202, 138, 4, 0.86);
}

.placed-edit-image,
.placed-edit-draw {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}

.placed-edit-image img,
.placed-edit-draw canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.placed-edit-draw canvas {
  background: transparent;
  touch-action: none;
}

.signature-resize {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 15px;
  height: 15px;
  background: #3157ff;
  border: 2px solid #ffffff;
  border-radius: 999px;
  cursor: nwse-resize;
}

.signature-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(11, 17, 29, 0.68);
}

.signature-dialog {
  width: min(760px, 100%);
  overflow: hidden;
  background: #111820;
  color: #ffffff;
  border: 1px solid #3b4653;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.signature-dialog-head,
.signature-dialog-actions,
.signature-tabs,
.signature-colors {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signature-dialog-head {
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #3b4653;
}

.signature-tabs {
  padding: 10px 16px;
  border-bottom: 1px solid #26303b;
}

.signature-tabs button,
.signature-dialog-actions button,
.signature-dialog-head button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.signature-tabs button,
.signature-dialog-head button.secondary,
.signature-dialog-actions button.secondary {
  background: #1c2530;
  border-color: #49576a;
  color: #ffffff;
}

.signature-tabs button.active {
  border-color: #9ab0ff;
  box-shadow: inset 0 0 0 1px #9ab0ff;
}

.signature-colors {
  justify-content: flex-end;
  padding: 10px 16px 0;
}

.signature-colors button {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 999px;
}

.signature-colors .black {
  background: #111827;
}

.signature-colors .blue {
  background: #1677ff;
}

.signature-colors .purple {
  background: #4f46e5;
}

.signature-colors button.active {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.signature-pane {
  display: none;
  padding: 18px 26px 10px;
}

.signature-pane.active {
  display: block;
}

.signature-pane canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #f2f6fb;
  border: 1px dashed #95a2b3;
  border-radius: 4px;
  touch-action: none;
}

.signature-pane small {
  display: block;
  margin-top: 8px;
  color: #8793a4;
  text-align: center;
}

.signature-upload {
  display: grid;
  place-items: center;
  min-height: 170px;
  border: 1px dashed #6d7b8c;
  border-radius: 5px;
  cursor: pointer;
}

.signature-upload input {
  display: none;
}

.signature-upload span {
  padding: 10px 14px;
  background: #26303b;
  border: 1px solid #49576a;
  border-radius: 4px;
  font-weight: 800;
}

[data-sign-image-preview] {
  display: block;
  max-width: 100%;
  max-height: 180px;
  margin: 12px auto 0;
  background: #ffffff;
}

[data-sign-text] {
  width: 100%;
  padding: 16px;
  background: #f2f6fb;
  border: 1px solid #95a2b3;
  border-radius: 4px;
  color: #111827;
  font-size: 1.4rem;
  text-align: center;
}

.signature-fonts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid #3b4653;
  border-left: 1px solid #3b4653;
}

.signature-fonts label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px;
  border-right: 1px solid #3b4653;
  border-bottom: 1px solid #3b4653;
}

.signature-fonts span {
  font-size: 1.35rem;
}

.signature-dialog-actions {
  justify-content: flex-end;
  padding: 14px 16px;
  background: #0d131a;
}

.sign-error {
  max-width: 980px;
  margin: 12px auto 0;
}

.guru-page .eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.guru-hero {
  display: grid;
  gap: 18px;
  width: min(860px, 100%);
  max-width: 860px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(11, 122, 117, 0.1), rgba(255, 255, 255, 0) 44%),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
}

.guru-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.8rem, 5.4vw, 3.15rem);
  line-height: 1.06;
}

.guru-chat-hero {
  display: grid;
  gap: 10px;
  width: min(780px, 100%);
}

.guru-chat-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: end;
  gap: 12px;
  min-height: 112px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fbfb);
  border: 1px solid #cddcda;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 26px rgba(15, 23, 42, 0.05);
}

.guru-chat-prompt {
  min-width: 0;
  padding: 2px 0 8px;
  color: var(--ink);
}

.guru-chat-textarea {
  width: 100%;
  min-height: 68px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: clamp(0.92rem, 2.5vw, 1.06rem);
  font-weight: 750;
  line-height: 1.55;
  resize: none;
}

.guru-chat-textarea::placeholder {
  color: #7a8a94;
}

.guru-chat-textarea:focus {
  outline: 0;
}

.guru-chat-send {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.guru-chat-send svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.guru-chat-send:disabled {
  cursor: progress;
  opacity: 0.65;
}

.guru-chat-status {
  display: none;
  margin: 0;
  padding: 14px 15px;
  color: #0d5652;
  background: #edf8f7;
  border: 1px solid #cce6e2;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  white-space: pre-line;
}

.guru-chat-status.active {
  display: grid;
  gap: 10px;
}

.guru-chat-status a {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.guru-chat-status small {
  color: #60717a;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: normal;
}

.guru-hero-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.guru-generator-section {
  display: grid;
  gap: 14px;
  width: min(1080px, 100%);
}

.guru-generator-section .section-heading {
  align-items: flex-end;
  margin-bottom: 0;
}

.guru-generator-section .section-heading h2 {
  margin: 0;
  font-size: clamp(1.22rem, 3vw, 1.65rem);
}

.guru-generator-section .section-heading span {
  max-width: 440px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: right;
}

.guru-generator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.guru-generator-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 150px;
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(11, 122, 117, 0.08), rgba(255, 255, 255, 0) 42%),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.guru-generator-card:hover {
  border-color: rgba(11, 122, 117, 0.42);
  transform: translateY(-1px);
}

.guru-generator-card strong {
  font-size: 1.02rem;
  line-height: 1.25;
}

.guru-generator-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.guru-generator-card small {
  align-self: end;
  width: fit-content;
  max-width: 100%;
  padding: 6px 8px;
  color: #0d5652;
  background: #e8f7f5;
  border: 1px solid #c4e4e0;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
}

.guru-tool-grid .popular-card {
  min-height: 136px;
}

.guru-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.guru-tool-page {
  max-width: 1280px;
}

.guru-workspace {
  display: grid;
  gap: 18px;
  align-items: start;
}

.guru-result-only-page .guru-workspace {
  display: block;
}

.guru-result-only-page .guru-result {
  margin-top: 0;
}

.guru-tool-panel,
.guru-result {
  min-width: 0;
}

.guru-tool-panel h1 {
  max-width: 100%;
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.04;
}

.guru-tool-panel > p:not(.eyebrow):not(.notice) {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.guru-form label,
.guru-copy {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.guru-form input,
.guru-form select,
.guru-form textarea,
.guru-copy textarea {
  width: 100%;
}

.guru-form textarea {
  min-height: 112px;
}

.guru-form option.is-unavailable-subject,
.guru-form option[data-dataset-ready="false"] {
  color: #8a949d;
  text-decoration: line-through;
}

.guru-topic-field {
  display: grid;
  gap: 10px;
}

.guru-form .inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
}

.guru-form .inline-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
}

.guru-form .inline-check span {
  min-width: 0;
}

.guru-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.guru-result .section-heading {
  align-items: flex-start;
  margin-bottom: 14px;
}

.guru-result .section-heading h2 {
  margin: 0 0 4px;
}

.guru-result .section-heading > div {
  min-width: 0;
}

.guru-result-loading {
  min-height: 360px;
}

.guru-loading-card {
  display: grid;
  justify-items: start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 22px;
  background: linear-gradient(135deg, #f8fcff, #eefaf8);
  border: 1px solid #cfe4e2;
  border-radius: 8px;
}

.guru-loading-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.guru-loading-card p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.guru-loading-estimate {
  font-weight: 800;
}

.guru-loading-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #d8ecea;
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: guru-spin 0.9s linear infinite;
}

.guru-loading-bar {
  position: relative;
  overflow: hidden;
  width: min(100%, 520px);
  height: 9px;
  background: #d8ecea;
  border-radius: 999px;
}

.guru-loading-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(90deg, var(--accent), #3bb8b2);
  border-radius: inherit;
  animation: guru-loading-bar 1.35s ease-in-out infinite;
}

@keyframes guru-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes guru-loading-bar {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(270%);
  }
}

.guru-download-menu {
  position: relative;
  flex: 0 0 auto;
}

.guru-download-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 900;
  list-style: none;
}

.guru-download-menu summary::-webkit-details-marker {
  display: none;
}

.guru-download-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  display: grid;
  gap: 6px;
  min-width: 176px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.guru-download-options button {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  color: var(--accent-dark);
  background: #f8fbfc;
  border: 1px solid #cfe1e0;
  border-radius: 7px;
  font-size: 0.86rem;
  text-align: left;
}

.guru-download-options button:hover {
  background: #edf7f6;
}

.guru-related-tools {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.guru-related-tools .section-heading h2 {
  font-size: 1.05rem;
}

.guru-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.guru-related-card {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff 0%, #f0fbfb 100%);
  border: 1px solid #cfe1e0;
  border-radius: 8px;
}

.guru-related-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
}

.guru-related-card strong {
  font-size: 1rem;
  line-height: 1.25;
}

.guru-related-card span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.guru-related-card small {
  justify-self: start;
  align-self: end;
  padding: 6px 9px;
  color: var(--accent-dark);
  background: #dff7f4;
  border: 1px solid #b9e4df;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.guru-related-modal {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  background: transparent;
  border: 0;
}

.guru-related-modal::backdrop {
  background: rgba(15, 23, 42, 0.38);
}

.guru-related-modal-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.guru-related-modal-card h3,
.guru-related-modal-card p {
  margin: 0;
}

.guru-related-modal-card h3 {
  font-size: 1.3rem;
}

.guru-related-modal-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.guru-asn-reference {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-self: start;
}

.guru-asn-reference .section-heading {
  align-items: flex-start;
  margin-bottom: 2px;
}

.guru-asn-reference h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.asn-reference-stack {
  display: grid;
  gap: 12px;
}

.asn-reference-stack section {
  display: grid;
  gap: 7px;
  padding: 13px;
  background: #f8fbfc;
  border: 1px solid #d8e5ea;
  border-radius: 8px;
}

.asn-reference-stack h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.asn-reference-stack ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.asn-reference-stack li {
  overflow-wrap: anywhere;
}

.asn-reference-stack strong {
  color: var(--ink);
}

.asn-reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asn-reference-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: #0b625e;
  background: #e6fffb;
  border: 1px solid #b8e4df;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.asn-reference-links a:hover {
  color: #ffffff;
  background: #0f766e;
  border-color: #0f766e;
}

.guru-related-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  color: var(--muted);
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.guru-related-current {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guru-related-current span {
  color: var(--muted);
  font-size: 0.78rem;
}

.guru-related-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.guru-related-actions button,
.guru-related-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
}

.guru-related-actions button {
  color: var(--accent-dark);
  background: #f8fbfc;
  border: 1px solid #cfe1e0;
  cursor: pointer;
}

.guru-identity-box {
  display: grid;
  gap: 10px;
  margin: -2px 0 14px;
  padding: 12px;
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guru-identity-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.guru-identity-box button {
  justify-self: start;
  min-height: 36px;
  padding: 8px 13px;
  color: var(--accent);
  background: #ffffff;
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.guru-identity-fields {
  display: grid;
  gap: 10px;
}

.guru-identity-fields label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.guru-identity-fields input {
  width: 100%;
}

.guru-result {
  margin-top: 18px;
  padding: 20px;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.guru-document-scroll {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding-bottom: 8px;
  scrollbar-color: var(--accent) #e5edf2;
  scrollbar-width: thin;
}

.guru-document-scroll::-webkit-scrollbar {
  height: 10px;
}

.guru-document-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

.guru-document-scroll::-webkit-scrollbar-track {
  background: #e5edf2;
  border-radius: 999px;
}

.guru-document {
  display: grid;
  gap: 14px;
  width: max(1240px, 100%);
  min-width: 1240px;
  padding: 18px;
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: clip;
  overflow-wrap: anywhere;
  word-break: normal;
}

.guru-document.guru-document-fluid {
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.guru-document h3,
.guru-document h4,
.guru-document p,
.guru-document ul {
  margin: 0;
}

.guru-document h3 {
  font-size: 1.35rem;
}

.guru-document ul {
  padding-left: 20px;
  color: var(--muted);
}

.guru-document li,
.guru-document p {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.guru-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.guru-table-block {
  margin-top: 14px;
}

.guru-table-block h5 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.98rem;
}

.guru-document-table {
  width: max-content;
  min-width: 640px;
  max-width: none;
  table-layout: auto;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 0.88rem;
}

.guru-document-table:not(.cols-5):not(.cols-6) {
  min-width: 100%;
}

.guru-document-table.cols-2 {
  min-width: 760px;
}

.guru-document-table.cols-4 {
  min-width: 880px;
}

.guru-document-table.cols-5 {
  min-width: 1080px;
}

.guru-document-table.cols-6 {
  min-width: 1120px;
}

.guru-document-table th,
.guru-document-table td {
  padding: 9px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.guru-document-table th {
  color: var(--ink);
  background: #eef6f6;
  font-weight: 900;
}

.guru-document-table td:first-child {
  color: var(--ink);
  font-weight: 800;
}

.guru-document-table td:last-child {
  white-space: normal;
}

.guru-document-table.cols-4 th:first-child,
.guru-document-table.cols-4 td:first-child,
.guru-document-table.cols-6 th:first-child,
.guru-document-table.cols-6 td:first-child {
  width: 54px;
  text-align: center;
}

.guru-document-table.cols-4 th:nth-child(2),
.guru-document-table.cols-4 td:nth-child(2) {
  width: 150px;
}

.guru-document-table.cols-4 th:last-child,
.guru-document-table.cols-4 td:last-child {
  width: 120px;
}

.guru-document-table.cols-2 th:first-child,
.guru-document-table.cols-2 td:first-child {
  width: 210px;
}

.guru-document-table.has-number-col th:first-child,
.guru-document-table.has-number-col td:first-child {
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  text-align: center;
  white-space: nowrap;
}

.guru-document-table.cols-5 th:first-child,
.guru-document-table.cols-5 td:first-child {
  width: 180px;
  min-width: 180px;
  max-width: 220px;
  text-align: left;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.guru-document-table.cols-5.has-number-col th:first-child,
.guru-document-table.cols-5.has-number-col td:first-child {
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  text-align: center;
  white-space: nowrap;
}

.guru-document-table.cols-6 th:first-child,
.guru-document-table.cols-6 td:first-child {
  width: 50px;
}

.guru-document-table.cols-6 th:nth-child(4),
.guru-document-table.cols-6 td:nth-child(4),
.guru-document-table.cols-6 th:nth-child(5),
.guru-document-table.cols-6 td:nth-child(5) {
  width: 70px;
  text-align: center;
}

.guru-document-table.table-cp-tp-atp {
  width: 1180px;
  min-width: 1180px;
  table-layout: fixed;
}

.guru-document-table.table-cp-tp-atp th,
.guru-document-table.table-cp-tp-atp td,
.guru-document-table.table-atp-meeting th,
.guru-document-table.table-atp-meeting td {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: left;
}

.guru-document-table.table-cp-tp-atp th:first-child,
.guru-document-table.table-cp-tp-atp td:first-child {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  text-align: center;
}

.guru-document-table.table-cp-tp-atp th:nth-child(2),
.guru-document-table.table-cp-tp-atp td:nth-child(2) {
  width: 220px;
}

.guru-document-table.table-cp-tp-atp th:nth-child(3),
.guru-document-table.table-cp-tp-atp td:nth-child(3) {
  width: 180px;
}

.guru-document-table.table-cp-tp-atp th:nth-child(4),
.guru-document-table.table-cp-tp-atp td:nth-child(4) {
  width: 260px;
}

.guru-document-table.table-cp-tp-atp th:nth-child(5),
.guru-document-table.table-cp-tp-atp td:nth-child(5) {
  width: 360px;
}

.guru-document-table.table-cp-tp-atp th:nth-child(6),
.guru-document-table.table-cp-tp-atp td:nth-child(6) {
  width: 88px;
}

.guru-document-table.table-atp-meeting {
  width: 980px;
  min-width: 980px;
  table-layout: fixed;
}

.guru-document-table.table-atp-meeting th:first-child,
.guru-document-table.table-atp-meeting td:first-child {
  width: 92px;
  min-width: 92px;
  max-width: 92px;
  text-align: center;
}

.guru-document-table.table-atp-meeting th:nth-child(2),
.guru-document-table.table-atp-meeting td:nth-child(2) {
  width: 220px;
}

.guru-document-table.table-atp-meeting th:nth-child(3),
.guru-document-table.table-atp-meeting td:nth-child(3) {
  width: 430px;
}

.guru-document-table.table-atp-meeting th:nth-child(4),
.guru-document-table.table-atp-meeting td:nth-child(4) {
  width: 238px;
}

.guru-document-table.table-asn-analysis {
  width: 1120px;
  min-width: 1120px;
  table-layout: fixed;
}

.guru-document-table.table-asn-analysis th,
.guru-document-table.table-asn-analysis td {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: left;
}

.guru-document-table.table-asn-analysis th:first-child,
.guru-document-table.table-asn-analysis td:first-child {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  text-align: center;
}

.guru-document-table.table-asn-analysis th:nth-child(2),
.guru-document-table.table-asn-analysis td:nth-child(2) {
  width: 190px;
}

.guru-document-table.table-asn-analysis th:nth-child(3),
.guru-document-table.table-asn-analysis td:nth-child(3) {
  width: 70px;
  text-align: center;
}

.guru-document-table.table-asn-analysis th:nth-child(4),
.guru-document-table.table-asn-analysis td:nth-child(4) {
  width: 420px;
}

.guru-document-table.table-asn-analysis th:nth-child(5),
.guru-document-table.table-asn-analysis td:nth-child(5) {
  width: 388px;
}

.guru-table-list {
  margin: 0;
  padding-left: 18px;
}

.guru-table-list li + li {
  margin-top: 5px;
}

.guru-syntax-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.82rem;
  color: var(--muted);
  table-layout: fixed;
}

.guru-syntax-table th,
.guru-syntax-table td {
  padding: 7px 8px;
  border: 1px solid #d8e4ea;
  vertical-align: top;
  text-align: left;
}

.guru-syntax-table th {
  background: #f5fbfb;
  color: var(--ink);
  font-weight: 900;
}

.guru-document-table .guru-syntax-table th:first-child,
.guru-document-table .guru-syntax-table td:first-child {
  width: 128px;
  min-width: 128px;
  max-width: 128px;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.guru-document-table .guru-syntax-table th:nth-child(2),
.guru-document-table .guru-syntax-table td:nth-child(2),
.guru-document-table .guru-syntax-table th:last-child,
.guru-document-table .guru-syntax-table td:last-child {
  width: auto;
  min-width: 0;
  max-width: none;
  text-align: left;
}

.guru-document-table.cols-4 td:nth-child(3) {
  min-width: 520px;
}

.guru-question-list {
  display: grid;
  gap: 14px;
  margin: 10px 0 18px;
}

.guru-question-item {
  break-inside: avoid;
}

.guru-question-prompt {
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 700;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.guru-question-options {
  display: grid;
  gap: 5px;
  margin-left: 22px;
  min-width: 0;
}

.guru-question-options p {
  margin: 0;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

body:has(.asn-cat-page) .topbar,
body:has(.asn-cat-page) .footer {
  display: none;
}

.asn-cat-page {
  min-height: 100vh;
  background: #edf4f7;
  color: var(--ink);
}

.asn-cat-preparing-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(20, 184, 166, 0.16), transparent 34%),
    linear-gradient(135deg, #eef8fb 0%, #f8fbfc 58%, #edf4f7 100%);
  color: var(--ink);
}

.asn-cat-preparing-card {
  display: grid;
  gap: 14px;
  width: min(560px, 100%);
  padding: 28px;
  background: #ffffff;
  border: 1px solid #cfdee5;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
}

.asn-cat-preparing-card h1,
.asn-cat-preparing-card p {
  margin: 0;
}

.asn-cat-preparing-card h1 {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.08;
}

.asn-cat-preparing-card p,
.asn-cat-preparing-card small {
  color: var(--muted);
  line-height: 1.55;
}

.asn-cat-preparing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asn-cat-preparing-meta span {
  padding: 7px 10px;
  color: #0b625e;
  background: #e6fffb;
  border: 1px solid #b8e4df;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.asn-cat-preparing-bar {
  position: relative;
  overflow: hidden;
  height: 10px;
  background: #d8e8ec;
  border-radius: 999px;
}

.asn-cat-preparing-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  border-radius: inherit;
  animation: guru-loading-bar 1.25s ease-in-out infinite;
}

.asn-cat-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid #cfdee5;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.asn-cat-brand {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: #ffffff;
  background: #0b7a75;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.asn-cat-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.asn-cat-title span,
.asn-cat-timer span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.asn-cat-title strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asn-cat-timer {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 116px;
}

.asn-cat-timer strong {
  color: #dc2626;
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

.asn-cat-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 16px;
  width: min(1240px, calc(100% - 28px));
  margin: 16px auto;
}

.asn-cat-side,
.asn-cat-main {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.asn-cat-card,
.asn-cat-question-card,
.asn-cat-review {
  min-width: 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #cfdee5;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.asn-cat-card h1,
.asn-cat-card p,
.asn-cat-review h2,
.asn-cat-review p {
  margin: 0;
}

.asn-cat-card h1 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.asn-cat-card p,
.asn-cat-card small {
  color: var(--muted);
  line-height: 1.5;
}

.asn-cat-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.asn-cat-meta div {
  min-width: 0;
  padding: 10px;
  background: #f5fafb;
  border: 1px solid #d8e5ea;
  border-radius: 8px;
}

.asn-cat-meta dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.asn-cat-meta dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.asn-cat-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.asn-cat-number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 8px;
}

.asn-cat-number {
  min-height: 38px;
  padding: 0;
  color: #1f3b4d;
  background: #f7fbfc;
  border: 1px solid #cfdde5;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 900;
}

.asn-cat-number:hover,
.asn-cat-number.active {
  color: #ffffff;
  background: #0f766e;
  border-color: #0f766e;
}

.asn-cat-number.answered:not(.active) {
  color: #065f46;
  background: #dcfce7;
  border-color: #86efac;
}

.asn-cat-question-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.asn-cat-question-head span {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #0f766e;
  background: #e6fffb;
  border: 1px solid #b8e4df;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.asn-cat-question-head strong {
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.asn-cat-prompt {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.asn-cat-options {
  display: grid;
  gap: 10px;
}

.asn-cat-option {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  color: var(--ink);
  background: #f8fbfc;
  border: 1px solid #d7e3e9;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.45;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.asn-cat-option::after {
  content: "";
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: end;
  width: 26px;
  height: 26px;
  color: #ffffff;
  background: transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.asn-cat-option:hover {
  border-color: #0f766e;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.1);
  transform: translateY(-1px);
}

.asn-cat-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.asn-cat-option:has(input:checked) {
  background: linear-gradient(135deg, #e3fbf5 0%, #d3f7ef 100%);
  border-color: #0f766e;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16), 0 12px 24px rgba(15, 118, 110, 0.13);
}

.asn-cat-option:has(input:checked)::after {
  content: "\2713";
  background: #0f766e;
  opacity: 1;
  transform: scale(1);
}

.asn-cat-option-key {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #0f766e;
  background: #ffffff;
  border: 1px solid #b8d8d4;
  border-radius: 999px;
  font-weight: 900;
}

.asn-cat-option:has(input:checked) .asn-cat-option-key {
  color: #ffffff;
  background: #0f766e;
  border-color: #0f766e;
}

.asn-cat-option.best {
  background: #ecfdf5;
  border-color: #22c55e;
}

.asn-cat-option.best::after {
  content: "\2713";
  background: #16a34a;
  opacity: 1;
  transform: scale(1);
}

.asn-cat-option.selected:not(.best) {
  background: #fff7ed;
  border-color: #fb923c;
}

.asn-cat-option.selected:not(.best)::after {
  content: "!";
  background: #f97316;
  opacity: 1;
  transform: scale(1);
}

.asn-cat-option.selected:not(.best) .asn-cat-option-key {
  color: #ffffff;
  background: #f97316;
  border-color: #f97316;
}

.asn-cat-explanation {
  margin-top: 16px;
  padding: 14px;
  background: #f5fafb;
  border: 1px solid #d8e5ea;
  border-radius: 8px;
}

.asn-cat-explanation p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.asn-cat-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 10px;
  padding: 12px;
  background: rgba(237, 244, 247, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid #cfdee5;
  border-radius: 8px;
}

.asn-cat-actions button {
  min-height: 44px;
}

.asn-cat-review {
  display: grid;
  gap: 12px;
}

.asn-cat-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.asn-cat-result-grid div {
  padding: 14px;
  background: #f5fafb;
  border: 1px solid #d8e5ea;
  border-radius: 8px;
}

.asn-cat-result-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.asn-cat-result-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

@media (max-width: 860px) {
  .asn-cat-top {
    grid-template-columns: 1fr auto;
  }

  .asn-cat-brand {
    display: none;
  }

  .asn-cat-shell {
    grid-template-columns: 1fr;
  }

  .asn-cat-side {
    order: 2;
  }

  .asn-cat-main {
    order: 1;
  }

  .asn-cat-meta,
  .asn-cat-result-grid {
    grid-template-columns: 1fr;
  }

  .asn-cat-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .asn-cat-top {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .asn-cat-timer {
    justify-items: start;
    min-width: 0;
  }

  .asn-cat-title strong {
    white-space: normal;
  }

  .asn-cat-question-head {
    display: grid;
  }

  .asn-cat-question-head strong {
    text-align: left;
  }

  .asn-cat-question-card,
  .asn-cat-card,
  .asn-cat-review {
    padding: 14px;
  }
}

@media print {
  .asn-cat-top,
  .asn-cat-side,
  .asn-cat-actions {
    display: none;
  }

  .asn-cat-page {
    background: #ffffff;
  }

  .asn-cat-shell {
    display: block;
    width: 100%;
    margin: 0;
  }

  .asn-cat-question-card,
  .asn-cat-review {
    box-shadow: none;
  }
}

.guru-mindmap-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
}

.guru-mindmap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guru-mindmap-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.guru-mindmap-actions button:first-child {
  color: var(--accent-dark);
  background: #ecfbf9;
  border: 1px solid #b9dfda;
}

.guru-mindmap-canvas {
  width: min(100%, 1120px);
  min-width: 980px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.guru-mindmap-svg {
  display: block;
  width: 100%;
  height: auto;
}

.guru-copy {
  margin-top: 14px;
}

.guru-copy textarea {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  font-weight: 500;
}

.guru-result-empty .guru-document {
  min-height: 220px;
  align-content: center;
}

.guru-info p {
  margin-bottom: 0;
}

.guru-pdf-ad {
  position: relative;
  display: grid;
  gap: 13px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11, 122, 117, 0.12), rgba(223, 243, 255, 0.75) 100%),
    #ffffff;
  border-color: #b9dcf1;
}

.guru-pdf-ad h2 {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.85rem);
}

.guru-pdf-ad p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
}

.guru-ad-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guru-ad-points span {
  padding: 7px 10px;
  color: #0d5652;
  background: #e8f7f5;
  border: 1px solid #c4e4e0;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.guru-ad-button {
  width: fit-content;
  margin-top: 2px;
  text-decoration: none;
}

.guruid-page {
  --gid-primary: #3525cd;
  --gid-primary-soft: #e7e5ff;
  --gid-secondary: #00778b;
  --gid-cyan: #a8efff;
  --gid-surface: #faf8ff;
  --gid-panel: #ffffff;
  --gid-ink: #111827;
  --gid-muted: #4b5563;
  --gid-border: #d8dcf0;
  max-width: none;
  padding: 0;
  color: var(--gid-ink);
  background: var(--gid-surface);
}

.guruid-nav a {
  border-radius: 14px;
}

.guruid-hero,
.guruid-community-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: center;
  padding: clamp(34px, 7vw, 82px) clamp(18px, 4vw, 48px);
  background:
    radial-gradient(circle at 88% 18%, rgba(79, 70, 229, 0.16), transparent 32%),
    radial-gradient(circle at 12% 68%, rgba(87, 223, 254, 0.24), transparent 34%),
    linear-gradient(180deg, #f7fbff 0%, #faf8ff 100%);
}

.guruid-hero-copy,
.guruid-community-hero > div {
  max-width: 820px;
}

.guruid-page .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  padding: 7px 11px;
  color: var(--gid-primary);
  background: var(--gid-primary-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.guruid-hero h1,
.guruid-community-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--gid-ink);
  font-size: clamp(2.2rem, 6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.guruid-hero p,
.guruid-community-hero p,
.guruid-section-head p,
.guruid-asn p,
.guruid-game p {
  color: var(--gid-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.guruid-hero-actions,
.guruid-asn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.guruid-hero-actions .button.secondary,
.guruid-asn-actions .button.secondary {
  color: var(--gid-primary);
  background: #eef2ff;
  box-shadow: none;
}

.guruid-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 760px;
  margin-top: 26px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--gid-border);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(53, 37, 205, 0.14);
}

.guruid-search span,
.guruid-search a {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--gid-primary);
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none;
}

.guruid-search span {
  color: var(--gid-primary);
  background: var(--gid-primary-soft);
}

.guruid-search input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  font: inherit;
  font-weight: 650;
}

.guruid-chips,
.guruid-community-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin-top: 16px;
  padding-bottom: 6px;
}

.guruid-chips::-webkit-scrollbar,
.guruid-community-tabs::-webkit-scrollbar {
  height: 5px;
}

.guruid-chips::-webkit-scrollbar-thumb,
.guruid-community-tabs::-webkit-scrollbar-thumb {
  background: #b8c2e6;
  border-radius: 999px;
}

.guruid-chips a,
.guruid-community-tabs a {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #26324a;
  background: #eef2ff;
  border: 1px solid #dce3ff;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.guruid-hero-panel,
.guruid-community-spotlight,
.guruid-cat-preview,
.guruid-game-board {
  padding: clamp(18px, 3vw, 28px);
  background: var(--gid-panel);
  border: 1px solid var(--gid-border);
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(31, 41, 55, 0.12);
}

.guruid-live-card {
  min-height: 220px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 20px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.82)),
    linear-gradient(135deg, #4f46e5, #00778b);
  border-radius: 22px;
}

.guruid-live-card span,
.guruid-community-spotlight span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guruid-live-card strong,
.guruid-community-spotlight strong {
  font-size: 1.35rem;
  line-height: 1.2;
}

.guruid-live-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.guruid-stat-grid,
.guruid-community-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.guruid-stat-grid div,
.guruid-community-stats div {
  display: grid;
  gap: 5px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--gid-border);
  border-radius: 18px;
}

.guruid-stat-grid strong,
.guruid-community-stats strong {
  color: var(--gid-primary);
  font-size: 1.25rem;
  line-height: 1;
}

.guruid-stat-grid span,
.guruid-community-stats span {
  color: var(--gid-muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.guruid-section,
.guruid-asn,
.guruid-game,
.guruid-community-layout,
.guruid-community-stats,
.guruid-community-tabs {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.guruid-section,
.guruid-asn,
.guruid-game {
  padding: clamp(32px, 6vw, 70px) 0;
}

.guruid-section-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.guruid-section-head.compact {
  margin-bottom: 14px;
}

.guruid-section h2,
.guruid-asn h2,
.guruid-game h2,
.guruid-community-section h2 {
  margin: 0;
  color: var(--gid-ink);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.guruid-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guruid-tool-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 22px;
  color: var(--gid-ink);
  background: #ffffff;
  border: 1px solid var(--gid-border);
  border-radius: 22px;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(42, 50, 82, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.guruid-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(53, 37, 205, 0.16);
}

.guruid-tool-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--gid-secondary);
  background: linear-gradient(135deg, #edf0ff, #b8f0ff);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(53, 37, 205, 0.12), 0 10px 22px rgba(8, 145, 178, 0.12);
}

.guruid-tool-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guruid-tool-card span {
  width: fit-content;
  padding: 6px 9px;
  color: var(--gid-secondary);
  background: #dbf8ff;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.guruid-tool-card strong {
  font-size: 1.2rem;
}

.guruid-tool-card small {
  color: var(--gid-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.guruid-tool-card em {
  margin-top: auto;
  color: var(--gid-primary);
  font-style: normal;
  font-weight: 900;
}

.guruid-asn,
.guruid-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 22px;
  padding: clamp(26px, 5vw, 44px);
  border-radius: 30px;
}

.guruid-asn {
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #312e81);
}

.guruid-asn h2,
.guruid-asn p {
  color: #ffffff;
}

.guruid-asn p {
  opacity: 0.86;
}

.guruid-asn-actions span {
  color: #c7d2fe;
  font-weight: 750;
}

.guruid-cat-preview {
  display: grid;
  gap: 10px;
  color: var(--gid-ink);
}

.guruid-cat-preview strong {
  color: #dc2626;
  font-size: 2.2rem;
}

.guruid-cat-preview div {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  font-weight: 850;
}

.guruid-cat-preview div.active {
  color: #064e3b;
  background: #dffcf4;
  border-color: #0f9f87;
}

.guruid-game {
  background: linear-gradient(135deg, #eef2ff, #e8fbff);
  border: 1px solid #d7def6;
}

.guruid-game-board {
  color: #ffffff;
  background: #101827;
}

.guruid-game-board strong {
  display: block;
  font-size: 1.5rem;
}

.guruid-game-board p {
  color: #cbd5e1;
}

.guruid-game-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.guruid-game-options span {
  min-height: 70px;
  display: grid;
  place-items: center;
  background: #3730a3;
  border-radius: 16px;
  font-size: 1.8rem;
  font-weight: 950;
}

.guruid-community-teaser {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--gid-border);
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
}

.guruid-community-hero {
  align-items: stretch;
}

.guruid-community-spotlight {
  display: grid;
  align-content: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5, #00778b);
}

.guruid-community-spotlight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.guruid-community-stats {
  margin-top: -28px;
  position: relative;
  z-index: 1;
}

.guruid-community-tabs {
  margin-top: 26px;
}

.guruid-community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 28px 0 70px;
}

.guruid-community-main,
.guruid-community-section,
.guruid-community-side {
  display: grid;
  gap: 18px;
}

.guruid-community-card,
.guruid-discussion-card,
.guruid-community-side section {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--gid-border);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.06);
}

.guruid-community-card {
  grid-template-columns: auto minmax(0, 1fr);
}

.guruid-doc-type,
.guruid-discussion-card > span {
  width: fit-content;
  height: fit-content;
  padding: 8px 10px;
  color: var(--gid-primary);
  background: var(--gid-primary-soft);
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 950;
}

.guruid-community-card strong,
.guruid-discussion-card strong,
.guruid-community-side h3 {
  color: var(--gid-ink);
  font-size: 1.05rem;
}

.guruid-community-card small,
.guruid-community-card p,
.guruid-discussion-card p,
.guruid-community-side p {
  color: var(--gid-muted);
  line-height: 1.55;
}

.guruid-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guruid-card-actions button,
.guruid-discussion-card a {
  width: fit-content;
  padding: 8px 12px;
  color: var(--gid-primary);
  background: #eef2ff;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

@media (min-width: 760px) {
  .topbar {
    padding: 0 28px;
  }

  .brand-logo {
    width: 26px;
    height: 26px;
  }

  .menu-toggle {
    display: none;
  }

  .topbar nav,
  .topbar nav.open {
    position: static;
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .topbar nav.tool-suite-nav {
    align-items: center;
    overflow: visible;
    scrollbar-width: none;
  }

  .topbar nav a {
    padding: 0;
    font-weight: 400;
  }

  .topbar nav a:hover,
  .nav-dropdown-trigger:hover {
    background: transparent;
    color: var(--accent-dark);
  }

  .tool-suite-nav .top-tool-shortcut {
    padding: 7px 12px;
  }

  .nav-dropdown-trigger {
    min-height: 34px;
    padding: 0 13px;
    font-weight: 500;
  }

  .page {
    padding-top: 38px;
  }

  .tool-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
  }

  .compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .guru-form-actions {
    grid-template-columns: 1fr;
  }

  .tool-card {
    gap: 8px;
    min-height: 148px;
    padding: 16px;
  }

  .tool-card small {
    font-size: 0.82rem;
  }

  .upload-panel {
    padding: 28px;
  }

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

@media (min-width: 980px) {
  .guru-tool-page {
    width: min(1240px, 100%);
  }

  .guru-workspace {
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.35fr);
  }

  .guru-asn-tool-page .guru-workspace {
    grid-template-columns: minmax(500px, 1.2fr) minmax(360px, 0.8fr);
  }

  .guru-result-only-page .guru-workspace {
    grid-template-columns: none;
  }

  .guru-tool-panel {
    position: sticky;
    top: 82px;
    max-height: calc(100vh - 104px);
    overflow: auto;
  }

  .guru-tool-panel h1 {
    font-size: clamp(1.95rem, 2.8vw, 2.55rem);
  }

  .guru-result {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .topbar nav.open {
    width: min(360px, calc(100vw - 24px));
    max-height: calc(100vh - 86px);
    overflow: auto;
  }

  .nav-dropdown {
    display: grid;
  }

  .nav-dropdown-trigger {
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
  }

  .nav-mega-menu,
  .nav-dropdown.wide .nav-mega-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: none;
    transform: none;
  }

  .nav-mega-menu::before {
    display: none;
  }

  .nav-mega-head {
    display: block;
    margin-bottom: 10px;
  }

  .topbar nav .nav-mega-head a {
    padding: 0;
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 900;
  }

  .nav-mega-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .guru-hero {
    gap: 16px;
    padding: 18px;
  }

  .guru-chat-input {
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: end;
    gap: 10px;
    min-height: 118px;
    padding: 15px;
    border-radius: 18px;
  }

  .guru-chat-textarea {
    min-height: 72px;
    font-size: 0.92rem;
  }

  .guru-chat-send {
    width: 38px;
    height: 38px;
  }

  .guru-hero-copy {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .guru-generator-section .section-heading {
    align-items: flex-start;
  }

  .guru-generator-section .section-heading span {
    max-width: 100%;
    text-align: left;
  }

  .guru-generator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .guru-generator-card {
    min-height: 142px;
    padding: 11px;
  }

  .guru-generator-card strong {
    font-size: 0.93rem;
  }

  .guru-generator-card span {
    font-size: 0.76rem;
  }

  .guru-generator-card small {
    padding: 5px 7px;
    border-radius: 8px;
    font-size: 0.66rem;
  }

  .guru-result {
    padding: 14px;
  }

  .guru-result .section-heading {
    gap: 10px;
  }

  .guru-related-grid {
    grid-template-columns: 1fr;
  }

  .guru-related-modal-card {
    padding: 18px;
  }

  .guru-related-actions {
    grid-template-columns: 1fr;
  }

  .guru-document {
    width: 1180px;
    min-width: 1180px;
    padding: 14px;
  }

  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .popular-card {
    gap: 6px;
    min-height: 142px;
    padding: 10px;
  }

  .popular-card span {
    font-size: 0.96rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .popular-card small {
    font-size: 0.74rem;
    line-height: 1.28;
    -webkit-line-clamp: 4;
  }

  .popular-card .card-flow {
    grid-template-columns: 30px minmax(16px, 1fr) 30px;
    width: min(94px, 100%);
    min-height: 27px;
  }

  .popular-card .mini-format {
    width: 27px;
    height: 25px;
    font-size: 0.46rem;
  }

  .tool-panel-head {
    gap: 10px;
  }

  .tool-share-button {
    min-height: 32px;
    padding: 0 9px 0 5px;
    font-size: 0.68rem;
    gap: 5px;
  }

  .share-icon-wrap {
    width: 22px;
    height: 22px;
  }

  .share-icon {
    width: 16px;
    height: 16px;
  }

  .merge-editor-panel {
    width: calc(100% - 20px);
    padding: 14px;
  }

  .editor-bottom-actions,
  .merge-editor .editor-bottom-actions,
  .split-bottom-actions {
    width: calc(100% - 20px);
    gap: 8px;
    padding: 10px;
  }

  .editor-bottom-actions .button,
  .editor-bottom-actions button {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .merge-editor-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .merge-file-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .merge-file-card {
    min-height: 214px;
    padding: 10px 8px;
  }

  .merge-card-actions {
    top: 6px;
    right: 6px;
    gap: 3px;
  }

  .merge-card-actions .icon-only {
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
  }

  .merge-card-actions .button-icon {
    width: 13px;
    height: 13px;
  }

  .merge-thumb {
    min-height: 132px;
    padding: 12px 8px;
  }

  .merge-thumb img {
    max-height: 125px;
  }

  .merge-file-meta strong {
    font-size: 0.78rem;
  }

  .split-editor-shell {
    grid-template-columns: 1fr;
  }

  .split-preview-panel {
    padding: 14px 10px;
  }

  .split-range-preview {
    padding: 12px;
  }

  .split-preview-cards {
    gap: 8px;
  }

  .split-preview-cards figure {
    padding: 8px;
  }

  .split-preview-cards img {
    max-height: 150px;
  }

  .split-control-panel {
    position: static;
    min-height: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    box-shadow: none;
  }

  .article-topbar {
    align-items: center;
  }

  .blog-comments,
  .blog-related-tools {
    padding: 16px;
  }

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

  .admin-title-row {
    flex-direction: column;
    gap: 10px;
  }

  .admin-period-filter {
    width: 100%;
    justify-content: space-between;
  }

  .admin-period-filter select {
    min-width: 0;
    flex: 1 1 auto;
  }

  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-language-grid {
    grid-template-columns: 1fr;
  }

  .admin-post-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .admin-grid div {
    padding: 11px;
  }

  .admin-grid strong {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
  }

  .sign-editor-top {
    align-items: flex-start;
    flex-direction: column;
    padding: 9px 12px;
  }

  .sign-editor-actions {
    width: 100%;
  }

  .sign-editor-actions .button,
  .sign-editor-actions button {
    flex: 1 1 0;
    justify-content: center;
    padding: 0 10px;
    gap: 6px;
    font-size: 0.78rem;
  }

  .sign-editor-toolbar {
    top: 93px;
    padding: 7px 12px;
  }

  .sign-editor-toolbar button {
    flex: 0 0 auto;
    padding: 0 10px;
    gap: 6px;
    font-size: 0.76rem;
  }

  .button-icon {
    width: 16px;
    height: 16px;
  }

  .sign-editor-shell {
    grid-template-columns: 1fr;
  }

  .sign-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sign-thumb {
    flex: 0 0 74px;
    margin: 0;
    padding: 5px;
  }

  .sign-thumb span {
    min-width: 28px;
    padding: 3px 7px;
    font-size: 0.7rem;
  }

  .sign-stage-wrap {
    padding: 12px;
    overflow-x: hidden;
  }

  .sign-stage {
    width: 100%;
  }

  .signature-modal {
    align-items: end;
    padding: 8px;
  }

  .signature-dialog {
    max-height: calc(100vh - 16px);
    overflow-y: auto;
  }

  .signature-pane {
    padding: 14px 12px 8px;
  }

  .signature-tabs,
  .signature-dialog-head,
  .signature-dialog-actions {
    padding-left: 12px;
    padding-right: 12px;
  }

  .signature-fonts {
    grid-template-columns: 1fr;
  }

  .watermark-image-field {
    align-items: stretch;
    flex-direction: column;
  }

  .watermark-image-field button {
    width: 100%;
  }

  .watermark-image-field span {
    white-space: normal;
  }
}

@media (max-width: 860px) {
  .guruid-hero,
  .guruid-community-hero,
  .guruid-asn,
  .guruid-game,
  .guruid-community-layout {
    grid-template-columns: 1fr;
  }

  .guruid-tool-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .guruid-tool-grid::-webkit-scrollbar {
    height: 5px;
  }

  .guruid-tool-grid::-webkit-scrollbar-thumb {
    background: #b8c2e6;
    border-radius: 999px;
  }

  .guruid-tool-card {
    min-width: 260px;
    scroll-snap-align: start;
  }

  .guruid-stat-grid,
  .guruid-community-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guruid-community-teaser {
    align-items: flex-start;
    flex-direction: column;
  }

  .guruid-community-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .guruid-hero,
  .guruid-community-hero {
    padding: 26px 14px 34px;
  }

  .guruid-hero h1,
  .guruid-community-hero h1 {
    font-size: 2.15rem;
  }

  .guruid-search {
    align-items: stretch;
    flex-direction: column;
  }

  .guruid-search span,
  .guruid-search a,
  .guruid-search input {
    width: 100%;
  }

  .guruid-section,
  .guruid-asn,
  .guruid-game,
  .guruid-community-layout,
  .guruid-community-stats,
  .guruid-community-tabs {
    width: min(100% - 20px, 1180px);
  }

  .guruid-asn,
  .guruid-game {
    padding: 20px;
    border-radius: 22px;
  }

  .guruid-community-card {
    grid-template-columns: 1fr;
  }
}

.topbar:has(.guruid-nav) {
  height: auto;
  min-height: 76px;
  padding: 10px 28px;
  background: rgba(250, 248, 255, 0.94);
  border-bottom: 1px solid rgba(199, 196, 216, 0.75);
  backdrop-filter: blur(18px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
}

.topbar:has(.guruid-nav) .brand {
  gap: 10px;
  color: #3525cd;
  font-size: 1.2rem;
  font-weight: 900;
}

.guruid-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #3525cd, #00778b);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(53, 37, 205, 0.22);
}

.topbar:has(.guruid-nav) .language-switch {
  background: #ffffff;
  border-color: #d9def3;
}

.topbar:has(.guruid-nav) .language-switch a.active {
  background: #3525cd;
}

.topbar:has(.guruid-nav) .guruid-nav {
  justify-content: center;
  gap: 6px;
  padding: 5px;
  background: #eaedff;
  border: 1px solid #d7dcfb;
  border-radius: 18px;
}

.topbar:has(.guruid-nav) .guruid-nav a {
  padding: 11px 15px;
  color: #464555;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
}

.topbar:has(.guruid-nav) .guruid-nav a:hover,
.topbar:has(.guruid-nav) .guruid-nav a:focus-visible {
  color: #ffffff;
  background: #4f46e5;
}

.guruid-page {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  background:
    linear-gradient(180deg, #f7fbff 0%, #faf8ff 42%, #f3f5ff 100%);
}

.guruid-top-strip {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 8px clamp(16px, 4vw, 46px);
  color: #004e5c;
  background: #acedff;
  border-bottom: 1px solid rgba(0, 104, 122, 0.18);
  font-size: 0.82rem;
  font-weight: 650;
}

.guruid-top-strip strong {
  color: #0f0069;
  font-weight: 750;
}

.guruid-hero,
.guruid-community-hero {
  min-height: 470px;
  padding-top: clamp(34px, 5vw, 64px);
  background:
    radial-gradient(circle at 84% 12%, rgba(79, 70, 229, 0.2), transparent 30%),
    radial-gradient(circle at 8% 68%, rgba(87, 223, 254, 0.24), transparent 36%),
    linear-gradient(145deg, #f7fbff 0%, #faf8ff 58%, #eef2ff 100%);
}

.guruid-hero h1,
.guruid-community-hero h1 {
  max-width: 820px;
  font-size: clamp(2.3rem, 4.45vw, 4rem);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: 0;
}

.guruid-hero-copy > p:not(.eyebrow),
.guruid-community-hero > div > p {
  max-width: 760px;
  margin-top: 18px;
  font-size: 1rem;
}

.guruid-page .button {
  border-radius: 15px;
  font-weight: 760;
  box-shadow: 0 10px 0 rgba(15, 23, 42, 0.12), 0 18px 34px rgba(53, 37, 205, 0.18);
}

.guruid-page .button:active {
  transform: translateY(3px);
  box-shadow: 0 4px 0 rgba(15, 23, 42, 0.1);
}

.guruid-hero-panel {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  box-sizing: border-box;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 30px;
}

.guruid-live-card {
  min-height: 285px;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.86)),
    linear-gradient(135deg, #4f46e5, #00778b);
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.guruid-live-head,
.guruid-cat-head,
.guruid-game-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.guruid-live-head em,
.guruid-game-top span {
  padding: 6px 9px;
  color: #001f26;
  background: #acedff;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 760;
}

.guruid-live-card > strong {
  margin-top: 24px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 760;
}

.guruid-hero-panel .guruid-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.guruid-hero-panel .guruid-stat-grid div {
  min-width: 0;
  padding: 12px 8px;
}

.guruid-hero-panel .guruid-stat-grid strong,
.guruid-hero-panel .guruid-stat-grid span {
  overflow-wrap: anywhere;
}

.guruid-hero-panel .guruid-stat-grid strong {
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  font-weight: 760;
}

.guruid-hero-panel .guruid-stat-grid span {
  font-size: 0.72rem;
}

.guruid-mini-preview {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 13px;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
}

.guruid-mini-preview.alt {
  background: rgba(172, 237, 255, 0.92);
}

.guruid-mini-preview b {
  color: #0f0069;
}

.guruid-mini-preview small {
  color: #464555;
  font-weight: 750;
}

.guruid-section {
  padding-top: 74px;
}

.guruid-section-head {
  max-width: 760px;
}

.guruid-tool-card {
  min-height: 230px;
  border-radius: 24px;
  border-color: #d9def3;
  box-shadow: 0 18px 44px rgba(42, 50, 82, 0.11);
}

.guruid-live-card,
.guruid-stat-grid > div,
.guruid-cat-preview,
.guruid-game-panel,
.guruid-community-card,
.guruid-community-item,
.guruid-sidebar-card {
  box-shadow: 0 18px 42px rgba(42, 50, 82, 0.1);
}

.guruid-asn {
  border: 1px solid rgba(199, 196, 216, 0.22);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.guruid-cat-preview {
  border: 0;
  border-radius: 24px;
}

.guruid-cat-head strong {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.guruid-cat-nav {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.guruid-cat-nav span {
  display: grid;
  place-items: center;
  min-height: 40px;
  color: #ffffff;
  background: #00778b;
  border-radius: 10px;
  font-weight: 950;
}

.guruid-game-board {
  border: 2px solid #0f172a;
  box-shadow: 0 7px 0 #111827, 0 22px 42px rgba(15, 23, 42, 0.18);
}

.guruid-game-top b {
  padding: 8px 15px;
  color: #ffffff;
  background: #4f46e5;
  border-radius: 999px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.4rem;
}

@media (max-width: 1180px) and (min-width: 861px) {
  .guruid-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.72fr);
    gap: 26px;
  }

  .guruid-hero h1 {
    font-size: clamp(2.55rem, 4vw, 3.5rem);
    max-width: 720px;
  }

  .guruid-hero-panel {
    max-width: 370px;
  }

  .guruid-hero-panel .guruid-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.guruid-community-teaser,
.guruid-community-stats div,
.guruid-community-card,
.guruid-discussion-card,
.guruid-community-side section {
  border-radius: 24px;
  border-color: #d9def3;
}

.guruid-community-spotlight {
  min-height: 300px;
  box-shadow: 0 22px 48px rgba(53, 37, 205, 0.18);
}

.guruid-avatar-row {
  display: flex;
  margin-top: 18px;
}

.guruid-avatar-row b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-right: -8px;
  color: #35225d;
  background: #ffffff;
  border: 3px solid #4f46e5;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 950;
}

.guruid-community-tabs {
  padding: 8px;
  background: #ffffff;
  border: 1px solid #d9def3;
  border-radius: 18px;
}

.guruid-community-tabs a:first-child {
  color: #ffffff;
  background: #4f46e5;
}

@media (max-width: 920px) {
  .topbar:has(.guruid-nav) {
    min-height: 64px;
    padding: 8px 16px;
  }

  .topbar:has(.guruid-nav) .menu-toggle {
    display: inline-flex;
  }

  .topbar:has(.guruid-nav) .guruid-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    display: none;
    flex: initial;
    min-width: min(260px, calc(100vw - 24px));
    padding: 8px;
    background: #ffffff;
    border: 1px solid #d7dcfb;
    border-radius: 18px;
    box-shadow: 0 20px 46px rgba(42, 50, 82, 0.16);
  }

  .topbar:has(.guruid-nav) .guruid-nav.open {
    display: grid;
  }

  .topbar:has(.guruid-nav) .guruid-nav a {
    padding: 12px 13px;
    white-space: normal;
  }

  .guruid-top-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

@media (max-width: 540px) {
  .guruid-hero,
  .guruid-community-hero {
    min-height: 0;
    padding-top: 34px;
  }

  .guruid-hero h1,
  .guruid-community-hero h1 {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  .guruid-hero-copy > p:not(.eyebrow),
  .guruid-community-hero > div > p {
    margin-top: 14px;
    font-size: 0.95rem;
  }

  .guruid-search {
    gap: 9px;
    padding: 9px;
  }

  .guruid-search span,
  .guruid-search a,
  .guruid-search input {
    min-height: 42px;
  }

  .guruid-search input {
    width: 100%;
  }

  .guruid-hero-panel {
    padding: 12px;
    border-radius: 24px;
  }

  .guruid-live-card {
    min-height: 0;
  }

  .guruid-top-strip {
    font-size: 0.76rem;
  }

  .guruid-hero-panel .guruid-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guruid-hero-actions .button,
  .guruid-asn-actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* GuruID Stitch-aligned homepage */
.gk-page {
  --gk-bg: #f6f4fb;
  --gk-surface: #ffffff;
  --gk-low: #f1eef8;
  --gk-container: #e9e5f3;
  --gk-high: #dcd6eb;
  --gk-dot: rgba(185, 178, 244, 0.34);
  --gk-ink: #131b2e;
  --gk-muted: #464555;
  --gk-primary: #0f766e;
  --gk-primary-2: #0d9488;
  --gk-secondary: #12827c;
  --gk-cyan: #9fdad4;
  --gk-cyan-soft: #d9f2ee;
  --gk-tertiary: #684000;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gk-ink);
  background: linear-gradient(180deg, var(--gk-bg), #fbfaff 56%, #f6f4fb);
  overflow-x: hidden;
}

.gk-app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 255, 0.95);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(18px);
}

.gk-app-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 5px clamp(16px, 4vw, 40px);
  color: #001f26;
  background: rgba(172, 237, 255, 0.5);
  font-size: 0.76rem;
  font-weight: 700;
}

.gk-app-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.gk-app-strip i {
  color: var(--gk-secondary);
}

.gk-app-nav {
  min-height: 80px;
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 40px);
}

.gk-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--gk-ink);
  text-decoration: none;
}

.gk-brand span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--gk-primary);
  border-radius: 12px;
}

.gk-brand b {
  color: var(--gk-primary);
  font-size: 1.08rem;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.gk-brand small {
  color: var(--gk-muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.gk-app-nav nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 5px;
  background: var(--gk-container);
  border-radius: 14px;
}

.gk-app-nav nav a {
  padding: 10px 14px;
  color: var(--gk-muted);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.gk-app-nav nav a:hover {
  color: var(--gk-ink);
  background: var(--gk-high);
}

.gk-app-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.gk-app-actions a {
  min-height: 40px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 0 16px;
  color: #ffffff;
  background: var(--gk-primary);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.gk-app-actions button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--gk-muted);
  background: var(--gk-low);
  border: 0;
  border-radius: 12px;
}

.gk-avatar {
  width: 36px;
  height: 36px;
  display: block;
  background: linear-gradient(135deg, #ece8f7, #d9f2ee);
  border: 2px solid #ece8f7;
  border-radius: 999px;
}

.gk-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 32px clamp(16px, 4vw, 40px);
  color: var(--gk-muted);
  background: var(--gk-low);
  font-size: 0.82rem;
}

.gk-footer div,
.gk-footer span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.gk-footer b {
  color: var(--gk-primary);
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 1.2em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.topbar:has(.guruid-nav) {
  min-height: 80px;
  padding: 10px 24px;
  background: rgba(250, 248, 255, 0.96);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.topbar:has(.guruid-nav) .guruid-nav {
  max-width: 720px;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  background: var(--gk-container);
  border: 0;
  border-radius: 16px;
}

.topbar:has(.guruid-nav) .guruid-nav a {
  padding: 10px 14px;
  color: var(--gk-muted);
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 700;
}

.topbar:has(.guruid-nav) .guruid-nav a:hover {
  color: #ffffff;
  background: var(--gk-primary-2);
}

.gk-sync div,
.gk-sync small,
.gk-pill,
.gk-showcase-head span,
.gk-card-meta span,
.gk-card-action b,
.gk-primary-btn,
.gk-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.gk-sync i,
.gk-pill i {
  color: var(--gk-secondary);
}

.gk-sync {
  max-width: 1280px;
  margin: 16px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 10px 18px;
  color: var(--gk-muted);
  background: var(--gk-low);
  border-radius: 14px;
  font-size: 0.86rem;
}

.gk-sync div:first-child span {
  width: 10px;
  height: 10px;
  background: var(--gk-secondary);
  border-radius: 999px;
}

.gk-sync b {
  color: var(--gk-secondary);
  text-transform: uppercase;
  font-size: 0.74rem;
}

.gk-sync em,
.gk-sync small {
  font-style: normal;
}

.gk-sync > div:last-child {
  gap: 20px;
}

.gk-hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.75fr);
  gap: 36px;
  align-items: center;
  padding: 36px clamp(16px, 2vw, 24px) 56px;
}

.gk-hero-simple {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(42px, 6vw, 70px) clamp(16px, 4vw, 40px) 32px;
  text-align: left;
}

.gk-hero-simple .gk-hero-copy {
  max-width: 680px;
  margin: 0;
  justify-items: start;
}

.gk-hero.gk-hero-simple h1 {
  max-width: 640px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
}

.gk-hero-simple .gk-hero-copy > p:not(.gk-pill) {
  max-width: 620px;
  text-align: justify;
}

.gk-hero-simple .gk-search {
  width: 100%;
  max-width: none;
}

.gk-search-card {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 24px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(220, 214, 235, 0.92);
  border-radius: 24px;
  box-shadow: 0 20px 46px rgba(19, 27, 46, 0.1);
  backdrop-filter: blur(12px);
}

.gk-search-card > strong {
  color: var(--gk-ink);
  font-size: 1.05rem;
}

.gk-search-card .gk-quick {
  margin-top: 2px;
}

.gk-hero::before,
.gk-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 360px;
  pointer-events: none;
  opacity: 0.85;
  background: radial-gradient(circle, var(--gk-dot) 1.05px, transparent 1.15px) 0 0 / 8px 8px;
}

.gk-hero::before {
  left: -70px;
  top: 24px;
  border-radius: 42% 58% 52% 48%;
  transform: rotate(-11deg);
}

.gk-hero::after {
  right: -80px;
  bottom: -28px;
  border-radius: 58% 42% 50% 50%;
  transform: rotate(10deg);
}

.gk-hero > * {
  position: relative;
  z-index: 1;
}

.gk-hero-copy {
  display: grid;
  gap: 20px;
}

.gk-pill {
  width: fit-content;
  margin: 0;
  padding: 8px 14px;
  color: var(--gk-primary);
  background: rgba(15, 118, 110, 0.08);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gk-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--gk-ink);
  font-size: clamp(2.6rem, 5.7vw, 5rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gk-hero h1 span {
  display: inline-block;
  color: var(--gk-primary);
  text-decoration: underline;
  text-decoration-color: var(--gk-cyan);
  text-decoration-thickness: 7px;
  text-underline-offset: 7px;
}

.gk-hero-copy > p:not(.gk-pill) {
  max-width: 720px;
  margin: 0;
  color: var(--gk-muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.gk-search {
  max-width: 720px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(19, 27, 46, 0.15);
}

.gk-search > i {
  padding-left: 10px;
  color: var(--gk-primary);
  font-size: 1.5rem;
}

.gk-search input {
  width: 100%;
  min-height: 48px;
  color: var(--gk-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.gk-search a,
.gk-primary-btn {
  min-height: 48px;
  justify-content: center;
  padding: 0 20px;
  color: #ffffff;
  background: var(--gk-primary);
  border-radius: 13px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.2);
}

.gk-quick,
.gk-section-head nav,
.gk-game > div > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.gk-quick {
  color: var(--gk-muted);
  font-size: 0.78rem;
}

.gk-quick a,
.gk-section-head nav a {
  padding: 7px 12px;
  color: var(--gk-ink);
  background: var(--gk-low);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.gk-stats {
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gk-stats div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  padding: 12px;
  background: var(--gk-low);
  border-radius: 14px;
}

.gk-stats i {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--gk-primary);
  background: #d9f2ee;
  border-radius: 12px;
}

.gk-stats strong,
.gk-showcase-grid strong {
  color: var(--gk-ink);
  font-size: 0.9rem;
}

.gk-stats span,
.gk-showcase-grid small {
  min-width: 0;
  overflow: hidden;
  color: var(--gk-muted);
  font-size: 0.76rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gk-showcase {
  position: relative;
}

.gk-showcase::before {
  content: "";
  position: absolute;
  inset: 12px -8px -12px 8px;
  background: rgba(15, 118, 110, 0.09);
  border-radius: 32px;
  transform: rotate(2deg);
}

.gk-showcase-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(19, 27, 46, 0.16);
}

.gk-showcase-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.gk-showcase-head i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #001f26;
  background: var(--gk-cyan);
  border-radius: 999px;
}

.gk-showcase-head em {
  padding: 5px 10px;
  color: var(--gk-muted);
  background: var(--gk-low);
  border-radius: 999px;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 700;
}

.gk-showcase figure,
.gk-game figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
}

.gk-showcase img,
.gk-game img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
}

.gk-showcase figcaption,
.gk-game figcaption {
  position: absolute;
  inset: auto 12px 12px;
  display: grid;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.gk-showcase figure::after,
.gk-game figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(19, 27, 46, 0.76), transparent 58%);
}

.gk-showcase figcaption > *,
.gk-game figcaption > * {
  position: relative;
  z-index: 1;
}

.gk-showcase figcaption small,
.gk-game figcaption small {
  color: var(--gk-cyan);
  font-weight: 800;
  text-transform: uppercase;
}

.gk-showcase figcaption b,
.gk-game figcaption b {
  font-size: 1.3rem;
}

.gk-showcase figcaption i {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.gk-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gk-showcase-grid div {
  display: grid;
  gap: 3px;
  padding: 13px;
  background: var(--gk-low);
  border-radius: 14px;
}

.gk-showcase-grid span {
  color: var(--gk-muted);
  font-size: 0.74rem;
}

.gk-showcase-grid strong {
  color: var(--gk-primary);
  font-size: 1.5rem;
}

.gk-showcase-link {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px;
  color: #0f766e;
  background: rgba(236, 232, 247, 0.72);
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.gk-generators,
.gk-activity {
  padding: 34px clamp(16px, 4vw, 40px) 56px;
  background: #ffffff;
}

.gk-generators > *,
.gk-asn,
.gk-game,
.gk-activity > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.gk-section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.gk-section-head.compact {
  align-items: center;
}

.gk-section-head p {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin: 0 0 6px;
  color: var(--gk-primary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gk-section-head h2,
.gk-asn h2,
.gk-game h2 {
  max-width: 720px;
  margin: 0;
  color: var(--gk-ink);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.gk-section-head span,
.gk-game p,
.gk-asn-copy > p:not(.gk-pill) {
  color: var(--gk-muted);
  line-height: 1.65;
}

.gk-section-head nav {
  flex: 0 0 auto;
  padding: 5px;
  background: var(--gk-container);
  border-radius: 14px;
}

.gk-section-head nav a:first-child {
  color: var(--gk-primary);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(19, 27, 46, 0.08);
}

.gk-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gk-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  min-height: 310px;
  padding: 26px;
  color: var(--gk-ink);
  background: var(--gk-low);
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(19, 27, 46, 0.14);
}

.gk-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 110px;
  background: rgba(15, 118, 110, 0.055);
  border-bottom-left-radius: 999px;
}

.gk-card-top,
.gk-card-action,
.gk-wide-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.gk-card-top {
  position: relative;
  z-index: 1;
  min-height: 50px;
  align-items: flex-start;
}

.gk-card-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--gk-primary);
  border-radius: 13px;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.16);
  font-size: 1.45rem;
  line-height: 1;
}

.gk-card-secondary .gk-card-icon,
.gk-card-secondary .gk-card-action b {
  background: var(--gk-secondary);
}

.gk-card-dark .gk-card-icon {
  background: #283044;
}

.gk-card-brown .gk-card-icon,
.gk-card-brown .gk-card-action b {
  background: var(--gk-tertiary);
}

.gk-card-top em {
  max-width: 185px;
  margin-top: 4px;
  padding: 6px 12px;
  color: #0f766e;
  background: #ece8f7;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: right;
}

.gk-card-secondary .gk-card-top em {
  color: #001f26;
  background: var(--gk-cyan-soft);
}

.gk-card-brown .gk-card-top em {
  color: #2a1700;
  background: #ffddb8;
}

.gk-card strong {
  font-size: 1.32rem;
  line-height: 1.2;
}

.gk-card p {
  margin: 0;
  color: var(--gk-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.gk-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--gk-muted);
  font-size: 0.74rem;
}

.gk-card-meta span {
  padding: 4px 8px;
  background: var(--gk-container);
  border-radius: 7px;
}

.gk-card-meta i {
  color: var(--gk-secondary);
}

.gk-card-action {
  margin-top: auto;
  color: var(--gk-primary);
  font-size: 0.76rem;
  font-weight: 800;
}

.gk-card-action b {
  padding: 10px 13px;
  color: #ffffff;
  background: var(--gk-primary);
  border-radius: 12px;
  font-size: 0.8rem;
}

.gk-wide-card {
  margin-top: 18px;
  padding: 22px;
  color: var(--gk-ink);
  background: var(--gk-high);
  border-radius: 20px;
  text-decoration: none;
}

.gk-wide-card > i {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--gk-primary);
  border-radius: 18px;
  font-size: 2rem;
}

.gk-wide-card div {
  flex: 1;
}

.gk-wide-card strong {
  font-size: 1.5rem;
}

.gk-wide-card p {
  margin: 8px 0;
  color: var(--gk-muted);
  line-height: 1.6;
}

.gk-wide-card span {
  color: var(--gk-muted);
  font-size: 0.78rem;
}

.gk-wide-card > b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  color: #ffffff;
  background: var(--gk-primary);
  border-radius: 13px;
}

.gk-asn {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: center;
  margin-top: 56px;
  margin-bottom: 56px;
  padding: clamp(28px, 5vw, 52px);
  color: #eef0ff;
  background: #283044;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(19, 27, 46, 0.18);
}

.gk-asn h2 {
  color: #eef0ff;
}

.gk-asn h2 span {
  color: var(--gk-cyan-soft);
}

.gk-asn .gk-pill {
  color: var(--gk-cyan-soft);
  background: rgba(255, 255, 255, 0.08);
}

.gk-asn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.gk-asn-grid div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 13px;
}

.gk-asn-grid i {
  grid-row: span 2;
  color: var(--gk-cyan-soft);
  font-size: 1.7rem;
}

.gk-asn-grid b {
  color: #ffffff;
}

.gk-asn-grid span {
  color: rgba(238, 240, 255, 0.72);
  font-size: 0.84rem;
}

.gk-cat-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  color: var(--gk-ink);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.18);
}

.gk-cat-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.gk-cat-card b {
  color: var(--gk-primary);
}

.gk-cat-card small {
  color: var(--gk-primary);
  font-weight: 800;
}

.gk-cat-card strong {
  line-height: 1.5;
}

.gk-cat-card p {
  margin: 0;
  padding: 12px;
  background: var(--gk-low);
  border-radius: 12px;
}

.gk-cat-card p.active {
  color: #ffffff;
  background: var(--gk-primary);
}

.gk-game {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 56px;
  margin-bottom: 56px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--gk-low);
  border-radius: 22px;
}

.gk-game p {
  max-width: 620px;
}

.gk-secondary-btn {
  min-height: 44px;
  padding: 0 18px;
  color: var(--gk-primary);
  background: #ffffff;
  border-radius: 13px;
  font-weight: 800;
  text-decoration: none;
}

.gk-game img {
  height: 260px;
}

.gk-game figcaption em {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 6px 9px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-style: normal;
  font-size: 0.74rem;
}

.gk-activity {
  background: var(--gk-bg);
}

.gk-section-head.compact a {
  color: var(--gk-primary);
  font-weight: 800;
  text-decoration: none;
}

.gk-activity-list {
  display: grid;
  gap: 10px;
}

.gk-activity-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  color: var(--gk-ink);
  background: #ffffff;
  border-radius: 13px;
  text-decoration: none;
}

.gk-activity-list i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--gk-primary);
  border-radius: 10px;
}

.gk-activity-list span {
  padding: 6px 10px;
  color: var(--gk-primary);
  background: var(--gk-low);
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .gk-app-nav {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .gk-app-nav nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .gk-app-nav nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .gk-hero,
  .gk-asn,
  .gk-game {
    grid-template-columns: 1fr;
  }

  .gk-hero-simple {
    grid-template-columns: 1fr;
  }

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

  .gk-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .gk-app-strip {
    gap: 4px;
    align-items: flex-start;
    flex-direction: column;
  }

  .gk-app-strip span:nth-child(n+2) {
    display: none;
  }

  .gk-app-nav {
    gap: 12px;
  }

  .gk-brand small,
  .gk-app-actions a,
  .gk-app-actions button {
    display: none;
  }

  .gk-app-actions {
    margin-left: auto;
  }

  .gk-system-bar,
  .gk-sync,
  .gk-stats,
  .gk-asn-grid,
  .gk-showcase-grid,
  .gk-card-grid {
    grid-template-columns: 1fr;
  }

  .gk-system-bar,
  .gk-sync {
    align-items: flex-start;
    flex-direction: column;
  }

  .gk-hero {
    padding-top: 28px;
  }

  .gk-hero h1 {
    font-size: clamp(2.15rem, 10vw, 2.9rem);
  }

  .gk-hero-simple {
    padding-top: 32px;
    text-align: left;
  }

  .gk-hero-simple .gk-hero-copy > p:not(.gk-pill) {
    text-align: left;
  }

  .gk-search-card {
    padding: 14px;
    border-radius: 20px;
  }

  .gk-search {
    grid-template-columns: 1fr;
  }

  .gk-search > i {
    display: none;
  }

  .gk-search a {
    width: 100%;
  }

  .gk-stats {
    display: grid;
  }

  .gk-wide-card,
  .gk-activity-list a {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }
}
