/* OBGNAUH TOOLS · Liquid Glass UI
   HTML/CSS/JS only. No external fonts or frameworks. */

:root {
  --ink: #0e1626;
  --ink-2: #26374f;
  --muted: #5d6b82;
  --line: rgba(15, 30, 55, 0.08);
  --accent: #2f6fed;
  --radius: 22px;
  --shadow-soft: 0 10px 30px rgba(30, 50, 85, 0.07);
  --shadow-lift: 0 24px 55px rgba(30, 50, 85, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: #eef3fb;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58% 52% at 12% 4%, rgba(126, 192, 255, 0.52), transparent 62%),
    radial-gradient(46% 44% at 88% 8%, rgba(196, 171, 255, 0.48), transparent 66%),
    radial-gradient(50% 46% at 80% 94%, rgba(137, 241, 208, 0.4), transparent 66%),
    radial-gradient(42% 42% at 6% 90%, rgba(255, 203, 166, 0.36), transparent 66%),
    linear-gradient(180deg, #f4f7fd 0%, #eef3fb 42%, #f7f2fb 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(1200px 620px at 50% -12%, rgba(255, 255, 255, 0.72), transparent 62%);
}

img,
svg {
  max-width: 100%;
}

a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid rgba(47, 111, 237, 0.72);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: #101b2d;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
  overflow: visible;
}

.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.46));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(28, 48, 84, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 -1px 0 rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: rgba(255, 255, 255, 0.93);
  }
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 20px 0;
}

.topbar__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 9px 14px 9px 12px;
  border-radius: 22px;
  animation: topbarIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.topbar.is-scrolled .topbar__inner {
  box-shadow: 0 20px 48px rgba(25, 45, 80, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

@keyframes topbarIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(15, 35, 58, 0.14));
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand__name {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.brand__name b {
  font-weight: 800;
  background: linear-gradient(95deg, #1f5fd8, #7047e8 55%, #c2479c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand__sub {
  margin-top: 3px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7b8aa2;
  white-space: nowrap;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex: 1 1 auto;
  min-width: 0;
}

.topnav__link {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  color: #40526d;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.topnav__link:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.topnav__link.is-active {
  background: rgba(15, 25, 45, 0.06);
  color: var(--ink);
  font-weight: 650;
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.lang-switch {
  display: flex;
  padding: 2px;
  border-radius: 10px;
  background: rgba(15, 25, 45, 0.06);
}

.lang-switch a {
  min-width: 30px;
  padding: 5px 6px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  color: #61728b;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch a.is-on {
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 2px 7px rgba(15, 30, 55, 0.12);
}

.topbar__site {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 9px;
  font-size: 11px;
  color: #66778e;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.topbar__site:hover {
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
}

.topbar__site .icon {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 48px;
  text-align: center;
}

.hero__inner {
  max-width: 940px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #63769a;
}

.hero__eyebrow {
  color: #5a6f92;
}

.hero__title {
  margin: 0;
  font-size: clamp(44px, 7.2vw, 82px);
  line-height: 0.97;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero__grad {
  background: linear-gradient(100deg, #1e5fe0 0%, #6549e6 48%, #c2479c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hero__sub {
  margin: 20px 0 0;
  font-size: clamp(17px, 2.3vw, 25px);
  font-weight: 650;
  letter-spacing: 0.005em;
  color: #22314c;
}

.hero__desc {
  max-width: 650px;
  margin: 13px auto 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 680px;
  margin: 32px auto 0;
  padding: 7px 10px 7px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(35, 64, 120, 0.16), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.search:focus-within {
  box-shadow: 0 22px 55px rgba(47, 111, 237, 0.22), 0 0 0 4px rgba(47, 111, 237, 0.12), inset 0 1px 0 #fff;
  transform: translateY(-1px);
}

.search__icon {
  display: inline-flex;
  color: #53688a;
}

.search__icon .icon {
  width: 21px;
  height: 21px;
}

.search__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  outline: none;
}

.search__input::placeholder {
  color: #7c8aa1;
}

.search__input::-webkit-search-cancel-button,
.search__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search__clear {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: rgba(15, 25, 45, 0.06);
  color: #5d6d84;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.search__clear:hover {
  background: rgba(15, 25, 45, 0.1);
  color: var(--ink);
}

.search__clear .icon {
  width: 14px;
  height: 14px;
}

.search__kbd {
  flex: 0 0 auto;
  min-width: 25px;
  padding: 4px 6px;
  border-radius: 7px;
  border: 1px solid rgba(15, 30, 55, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #7a8aa1;
  font-family: inherit;
  font-size: 10.5px;
  text-align: center;
}

.hero__hot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}

.hero__hot-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8492a6;
}

.hero__hot-link {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.52);
  color: #2b4164;
  font-size: 11.5px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero__hot-link:hover {
  background: #fff;
  transform: translateY(-1px);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #52647f;
}

.trust .icon {
  width: 15px;
  height: 15px;
  color: #2f6fed;
}

.noscript-note {
  margin: 18px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 243, 218, 0.9);
  border: 1px solid rgba(255, 218, 150, 0.9);
  color: #7b5300;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- Sections ---------- */

.section {
  padding: 62px 0;
  position: relative;
}

.section--tight {
  padding: 30px 0 50px;
}

.section--catalog {
  padding-top: 34px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head__title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.section-head__desc {
  max-width: 620px;
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.section-head__action {
  flex: 0 0 auto;
  padding-bottom: 3px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1f55c0;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
}

.link-arrow .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.grid {
  display: grid;
  gap: 15px;
}

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

/* ---------- Tool cards ---------- */

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 208px;
  padding: 19px 19px 15px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.44));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lift), inset 0 1px 0 #fff;
}

.tool-card:hover::before {
  opacity: 0.045;
}

.tool-card__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.tool-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.52));
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(30, 50, 85, 0.08), inset 0 1px 0 #fff;
  transition: transform 0.25s ease;
}

.tool-card:hover .tool-card__icon {
  transform: scale(1.04);
}

.tool-card__icon .icon {
  width: 23px;
  height: 23px;
}

.fav-toggle {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.56);
  color: #8593a8;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.fav-toggle:hover {
  color: #d99a1f;
  background: #fff;
  transform: scale(1.05);
}

.fav-toggle__icon {
  width: 17px;
  height: 17px;
}

.fav-toggle__icon--on {
  display: none;
}

.fav-toggle[aria-pressed="true"] {
  color: #df9f17;
  background: rgba(255, 247, 226, 0.94);
  border-color: rgba(255, 224, 150, 0.95);
}

.fav-toggle[aria-pressed="true"] .fav-toggle__icon--off {
  display: none;
}

.fav-toggle[aria-pressed="true"] .fav-toggle__icon--on {
  display: block;
}

.fav-toggle--wide {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  height: auto;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
}

.fav-toggle--wide .fav-toggle__icon {
  width: 16px;
  height: 16px;
}

.tool-card__title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.tool-card__link {
  color: var(--ink);
  text-decoration: none;
}

.tool-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
}

.tool-card__link:focus-visible {
  outline: none;
}

.tool-card__link:focus-visible::after {
  outline: 2px solid rgba(47, 111, 237, 0.7);
  outline-offset: 3px;
  border-radius: 25px;
}

.tool-card__desc {
  position: relative;
  z-index: 2;
  margin: 7px 0 17px;
  font-size: 12.6px;
  line-height: 1.7;
  color: var(--muted);
}

.tool-card__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-size: 10.5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge--planned {
  background: rgba(255, 238, 205, 0.8);
  border: 1px solid rgba(255, 215, 150, 0.85);
  color: #825500;
}

.badge--live {
  background: rgba(210, 248, 232, 0.85);
  border: 1px solid rgba(150, 230, 200, 0.9);
  color: #08664e;
}

.badge--offline {
  background: rgba(253, 228, 228, 0.88);
  border: 1px solid rgba(243, 186, 186, 0.9);
  color: #9c2626;
}

.tool-card__meta {
  color: #7c8aa0;
}

.tool-card__go {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  color: #37527c;
  font-size: 11px;
  font-weight: 650;
}

.tool-card__go .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-card__go .icon {
  transform: translateX(3px);
}

/* ---------- Catalog toolbar ---------- */

.catalog-bar {
  padding: 13px 15px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.catalog-bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-bar__row--cats {
  justify-content: flex-start;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.catalog-bar__label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8290a4;
}

.catalog-bar__count {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
}

.catalog-bar__pages {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: #2a5bb5;
  font-size: 11.5px;
  font-weight: 650;
  text-decoration: none;
}

.catalog-bar__pages .icon {
  width: 14px;
  height: 14px;
}

.segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(15, 25, 45, 0.055);
}

.segmented__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #60708a;
  font-size: 11.5px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.segmented__btn:hover {
  color: var(--ink);
}

.segmented__btn.is-active {
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 2px 8px rgba(20, 40, 70, 0.1);
}

.segmented__count {
  min-width: 16px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.1);
  color: #2f6fed;
  font-size: 9.5px;
  text-align: center;
}

.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cat-filter--pages {
  margin-bottom: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.5);
  color: #4f6179;
  font-size: 11.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.chip:hover {
  background: #fff;
  color: var(--ink);
}

.chip.is-active {
  background: #17243a;
  border-color: #17243a;
  color: #fff;
  box-shadow: 0 6px 16px rgba(20, 35, 60, 0.2);
}

.chip.is-active .icon {
  color: #fff;
}

.empty-state {
  margin-top: 16px;
  padding: 42px 22px;
  border-radius: 22px;
  text-align: center;
}

.empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #6f8199;
  margin-bottom: 12px;
}

.empty-state__icon .icon {
  width: 22px;
  height: 22px;
}

.empty-state h3 {
  margin: 0;
  font-size: 16px;
}

.empty-state p {
  margin: 7px auto 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.empty-state .btn {
  margin-top: 16px;
}

/* ---------- Latest ---------- */

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

.latest-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.latest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift), inset 0 1px 0 #fff;
}

.latest-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.94);
  flex: 0 0 auto;
}

.latest-card__icon .icon {
  width: 21px;
  height: 21px;
}

.latest-card__body {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.latest-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.latest-card__top h3 {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.4;
}

.latest-card__link {
  color: var(--ink);
  text-decoration: none;
}

.latest-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.latest-card__body p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11.8px;
  line-height: 1.65;
}

.latest-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 7px !important;
  color: #7f8da3 !important;
  font-size: 10px !important;
}

.latest-card__go {
  align-self: center;
  margin-left: auto;
  color: #4a648a;
  position: relative;
  z-index: 0;
}

.latest-card__go .icon {
  width: 16px;
  height: 16px;
}

/* ---------- About panel ---------- */

.about-panel {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 36px;
  border-radius: 30px;
}

.about-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 33px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.about-panel__text > p:not(.eyebrow) {
  max-width: 560px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.about-panel .btn {
  margin-top: 20px;
}

.about-panel__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-panel__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: #33445f;
  font-size: 12.5px;
}

.about-panel__list .icon {
  width: 18px;
  height: 18px;
  color: #2f6fed;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn .icon {
  width: 14px;
  height: 14px;
}

.btn--solid {
  background: linear-gradient(135deg, #1f55c0, #5b3fd6);
  color: #fff;
  box-shadow: 0 12px 26px rgba(47, 80, 190, 0.28);
}

.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(47, 80, 190, 0.34);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.9);
  color: #263a5b;
  box-shadow: inset 0 1px 0 #fff;
}

.btn--glass:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* ---------- Breadcrumb & page hero ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-top: 34px;
  font-size: 11px;
  color: #7c8aa0;
}

.breadcrumb a {
  color: #52698f;
  text-decoration: none;
}

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

.page-hero {
  padding: 30px 0 18px;
}

.page-hero__inner {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.page-hero__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  flex: 0 0 auto;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.52));
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(30, 50, 85, 0.1), inset 0 1px 0 #fff;
}

.page-hero__icon .icon {
  width: 27px;
  height: 27px;
}

.page-hero__icon--lg {
  width: 72px;
  height: 72px;
  border-radius: 22px;
}

.page-hero__icon--lg .icon {
  width: 33px;
  height: 33px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(29px, 4.3vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 780;
}

.page-hero__desc {
  max-width: 780px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  font-size: 11.5px;
  color: #61718a;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

.meta-dot {
  color: #a7b3c4;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.category-note {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #60718a;
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- Tool page ---------- */

.tool-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
  gap: 16px;
}

.build-panel {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 27px;
  border-radius: 24px;
}

.build-panel__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 16px;
  color: #6b59e0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.52));
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.build-panel__icon .icon {
  width: 25px;
  height: 25px;
}

.build-panel h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.015em;
}

.build-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.tool-facts {
  padding: 23px;
  border-radius: 24px;
}

.tool-facts h2 {
  margin: 0 0 12px;
  font-size: 14.5px;
}

.tool-facts dl {
  margin: 0;
}

.tool-facts dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.tool-facts dt {
  color: #7b8aa1;
}

.tool-facts dd {
  margin: 0;
  color: #26374f;
  text-align: right;
}

.tool-facts a {
  color: #2f6fed;
  text-decoration: none;
}

/* ---------- Legal / about pages ---------- */

.legal {
  display: grid;
  gap: 15px;
  max-width: 960px;
}

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

.legal__block {
  padding: 25px;
  border-radius: 22px;
}

.legal__block h2 {
  margin: 0 0 8px;
  font-size: 16.5px;
  letter-spacing: -0.015em;
}

.legal__block p {
  margin: 8px 0 0;
  color: #4d5f79;
  font-size: 12.8px;
  line-height: 1.85;
}

.legal__block a:not(.link-arrow) {
  color: #2f6fed;
}

.legal__contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 27px;
  border-radius: 24px;
}

.legal__contact h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.legal__contact p:not(.eyebrow) {
  max-width: 540px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.8;
}

.legal__contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.legal > .filing {
  margin: 10px 0 0;
}

/* ---------- 404 ---------- */

.error-panel {
  max-width: 760px;
  margin: 40px auto;
  padding: 42px 32px;
  border-radius: 28px;
  text-align: center;
}

.error-panel h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.error-panel > p:not(.eyebrow) {
  max-width: 520px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.error-panel .page-actions {
  justify-content: center;
}

.error-panel .cat-filter {
  justify-content: center;
  margin-top: 22px;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 54px;
  padding: 48px 0 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.72));
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.footer__inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 0.7fr);
  gap: 34px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.footer__logo img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(15, 35, 58, 0.12));
}

.footer__logo b {
  background: linear-gradient(95deg, #1f5fd8, #7047e8 55%, #c2479c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__desc {
  max-width: 320px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.footer__local {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  color: #6d7e95;
  font-size: 10.5px;
}

.footer__local .icon {
  width: 14px;
  height: 14px;
  color: #0f9b84;
}

.footer__label {
  margin: 0 0 11px;
  color: #8996a9;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  color: #41546f;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: #1f55c0;
}

.footer__col .icon {
  width: 11px;
  height: 11px;
  opacity: 0.6;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #7b899d;
  font-size: 10.5px;
}

.footer__bottom p {
  margin: 0;
}

.filing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.filing a {
  color: #6c7c92;
  text-decoration: none;
}

.filing a:hover {
  color: #1f55c0;
}

.filing__sep {
  color: #b0bac8;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(17, 28, 46, 0.92);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 18px 40px rgba(10, 20, 40, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast[hidden] {
  display: none;
}

.hero__eyebrow,
.hero__title,
.hero__sub,
.hero__desc,
.hero .search,
.hero__hot,
.trust {
  animation: heroRise 0.78s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__title { animation-delay: 0.04s; }
.hero__sub { animation-delay: 0.08s; }
.hero__desc { animation-delay: 0.12s; }
.hero .search { animation-delay: 0.16s; }
.hero__hot { animation-delay: 0.2s; }
.trust { animation-delay: 0.24s; }

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

/* ---------- Reveal ---------- */

.js [data-reveal].reveal-pending {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .topbar__inner { gap: 12px; }
  .topnav__link { padding: 8px 8px; font-size: 12px; }
  .brand__sub { display: none; }
  .topbar__site span { display: none; }
}

@media (max-width: 1024px) {
  .topbar__inner {
    flex-wrap: wrap;
    border-radius: 20px;
  }
  .topnav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 28px 1px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 30px), transparent 100%);
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topbar__tools { margin-left: auto; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-layout { grid-template-columns: 1fr; }
  .about-panel { grid-template-columns: 1fr; gap: 24px; }
  .footer__top { grid-template-columns: 1.3fr repeat(2, 1fr); }
  .footer__top > .footer__col:last-child { grid-column: 2 / 4; }
}

@media (max-width: 820px) {
  .wrap,
  .footer__inner { width: calc(100% - 36px); }
  .hero { padding: 56px 0 38px; }
  .section { padding: 48px 0; }
  .section--tight { padding: 24px 0 38px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-head__action { padding: 0; }
  .latest-grid { grid-template-columns: 1fr; }
  .legal__grid { grid-template-columns: 1fr; }
  .page-hero__inner { gap: 17px; }
  .page-hero__icon { width: 50px; height: 50px; border-radius: 15px; }
  .page-hero__icon--lg { width: 58px; height: 58px; border-radius: 18px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > .footer__brand { grid-column: 1 / 3; }
  .footer__top > .footer__col:last-child { grid-column: auto; }
}

@media (max-width: 620px) {
  .topbar { padding: 8px 12px 0; }
  .topbar__inner { padding: 8px 10px; border-radius: 18px; }
  .brand__name { font-size: 13px; }
  .brand__mark { width: 30px; height: 30px; }
  .topnav__link { padding: 7px 8px; font-size: 11.5px; }
  .wrap,
  .footer__inner { width: calc(100% - 28px); }
  .hero { padding: 42px 0 32px; }
  .hero__title { font-size: clamp(38px, 12vw, 54px); letter-spacing: -0.05em; }
  .hero__sub { margin-top: 15px; font-size: 17px; }
  .hero__desc { font-size: 13px; }
  .hero__eyebrow { font-size: 9.5px; letter-spacing: 0.14em; }
  .search { margin-top: 24px; padding: 5px 7px 5px 14px; border-radius: 18px; }
  .search__input { font-size: 14.5px; padding: 11px 2px; }
  .search__kbd { display: none; }
  .hero__hot { gap: 6px; }
  .hero__hot-link { font-size: 10.5px; padding: 5px 9px; }
  .trust { gap: 6px 12px; margin-top: 18px; }
  .grid--3 { grid-template-columns: 1fr; }
  .tool-card { min-height: 190px; }
  .catalog-bar { padding: 11px 12px; }
  .catalog-bar__row { gap: 9px; }
  .segmented__btn { padding: 7px 9px; font-size: 11px; }
  .catalog-bar__count { font-size: 10.5px; }
  .catalog-bar__pages { display: none; }
  .chip { font-size: 10.8px; padding: 6px 9px; }
  .about-panel { padding: 24px; border-radius: 24px; }
  .page-hero { padding: 22px 0 12px; }
  .page-hero__inner { flex-direction: column; gap: 14px; }
  .page-hero h1 { font-size: clamp(28px, 9vw, 38px); }
  .page-hero--tool h1 { font-size: clamp(26px, 7.6vw, 34px); }
  .build-panel { flex-direction: column; padding: 22px; }
  .tool-facts { padding: 20px; }
  .legal__block { padding: 20px; }
  .legal__contact { padding: 22px; }
  .footer { margin-top: 36px; padding: 36px 0 22px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; margin-top: 28px; }
  .filing { font-size: 10px; }
  .breadcrumb { padding-top: 24px; }
  .error-panel { padding: 32px 20px; margin: 24px auto; }
}

@media (max-width: 400px) {
  .lang-switch a { min-width: 27px; padding: 5px 4px; }
  .topbar__site { padding: 6px; }
  .hero__title { font-size: 36px; }
  .segmented__btn { padding: 6px 7px; }
}

/* ---------- Tool workspace ---------- */

.tool-workspace {
  padding: 22px;
  border-radius: 26px;
}

.tool-workspace__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.tool-workspace__title {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.tool-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.tool-grid--even {
  align-items: stretch;
}

.tool-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.tool-col__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
}

.tool-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #63769a;
}

.tool-area {
  width: 100%;
  min-height: 300px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 4px rgba(20, 40, 70, 0.05);
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: #1b2a42;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-area--prose {
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.8;
}

.tool-area--sm {
  min-height: 190px;
}

.tool-area:focus {
  outline: none;
  border-color: rgba(47, 111, 237, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.13);
}

.tool-area[readonly] {
  background: rgba(255, 255, 255, 0.5);
  color: #33445f;
}

.tool-area::placeholder {
  color: #9aa8bb;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.tool-actions__spacer {
  flex: 1 1 auto;
}

.btn--sm {
  padding: 8px 13px;
  font-size: 12px;
  border-radius: 10px;
}

.btn--sm .icon {
  width: 13px;
  height: 13px;
}

.tool-select,
.tool-input {
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 #fff;
  font: 12px/1.3 var(--font);
  color: #26374f;
}

.tool-select:focus,
.tool-input:focus {
  outline: none;
  border-color: rgba(47, 111, 237, 0.55);
}

.tool-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 12px 0 0;
}

.tool-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #3a4c66;
  cursor: pointer;
  user-select: none;
}

.tool-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2f6fed;
}

.tool-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #7b8aa1;
}

.tool-status {
  font-size: 12px;
  font-weight: 600;
  color: #61718a;
}

.tool-status.is-ok { color: #17805a; }
.tool-status.is-error { color: #b03427; }

.tool-error {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 238, 236, 0.86);
  border: 1px solid rgba(220, 90, 80, 0.24);
  color: #a92f26;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.tool-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.tool-stat {
  padding: 14px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 #fff;
}

.tool-stat__num {
  display: block;
  font-size: 23px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #16233a;
  font-variant-numeric: tabular-nums;
}

.tool-stat__label {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #68788f;
}

.tool-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(15, 25, 45, 0.06);
}

.tool-seg button {
  padding: 7px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: 600 12px/1.2 var(--font);
  color: #52647e;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tool-seg button:hover {
  color: #1c2c46;
}

.tool-seg button.is-active {
  background: #fff;
  color: #16233a;
  box-shadow: 0 2px 8px rgba(15, 30, 55, 0.12);
}

.diff-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 12px;
  color: #52647e;
}

.diff-stats b {
  font-weight: 700;
}

.diff-stats .is-add { color: #17805a; }
.diff-stats .is-del { color: #b03427; }

.diff-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.diff-col {
  max-height: 460px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.56);
}

.diff-line {
  display: flex;
  gap: 8px;
  padding: 2px 10px;
  font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.diff-line__num {
  flex: 0 0 34px;
  text-align: right;
  color: #9aa7ba;
  user-select: none;
}

.diff-line__text {
  flex: 1 1 auto;
}

.diff-line--del { background: rgba(255, 120, 110, 0.16); }
.diff-line--add { background: rgba(74, 200, 140, 0.18); }
.diff-line--empty { background: rgba(15, 25, 45, 0.035); }

.diff-empty {
  padding: 26px 16px;
  text-align: center;
  font-size: 12.5px;
  color: #8694a9;
}

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

.md-editor-layout.is-single,
.md-editor-layout.is-preview {
  grid-template-columns: 1fr;
}

.md-editor-layout.is-single .md-pane--preview {
  display: none;
}

.md-editor-layout.is-preview .md-pane--editor {
  display: none;
}

.md-editor-layout.is-preview .md-pane--preview {
  display: flex;
}

.md-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.md-preview {
  min-height: 300px;
  max-height: 560px;
  overflow: auto;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.74);
  font-size: 13.5px;
  line-height: 1.85;
  color: #26374f;
  word-break: break-word;
}

.md-preview > :first-child { margin-top: 0; }
.md-preview > :last-child { margin-bottom: 0; }

.md-preview h1,
.md-preview h2,
.md-preview h3,
.md-preview h4,
.md-preview h5,
.md-preview h6 {
  margin: 1.3em 0 0.55em;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #14223a;
}

.md-preview h1 { font-size: 1.7em; }
.md-preview h2 { font-size: 1.42em; }
.md-preview h3 { font-size: 1.2em; }
.md-preview h4 { font-size: 1.05em; }

.md-preview p { margin: 0.7em 0; }
.md-preview ul,
.md-preview ol { margin: 0.7em 0; padding-left: 1.5em; }
.md-preview li { margin: 0.3em 0; }

.md-preview a { color: #2f6fed; }

.md-preview blockquote {
  margin: 0.9em 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid rgba(47, 111, 237, 0.36);
  color: #5d6b82;
}

.md-preview code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(15, 25, 45, 0.07);
  font: 0.9em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.md-preview pre {
  margin: 0.9em 0;
  padding: 13px 15px;
  overflow: auto;
  border-radius: 12px;
  background: #16233a;
  color: #e8eef9;
}

.md-preview pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.md-preview hr {
  margin: 1.4em 0;
  border: 0;
  border-top: 1px solid rgba(15, 30, 55, 0.12);
}

.md-preview table {
  width: 100%;
  margin: 0.9em 0;
  border-collapse: collapse;
  font-size: 0.95em;
}

.md-preview th,
.md-preview td {
  padding: 7px 10px;
  border: 1px solid rgba(15, 30, 55, 0.12);
  text-align: left;
}

.md-preview th {
  background: rgba(15, 25, 45, 0.045);
  font-weight: 650;
}

.md-preview img { max-width: 100%; border-radius: 10px; }

.md-empty {
  display: grid;
  place-items: center;
  min-height: 300px;
  color: #98a5b8;
  font-size: 13px;
}

/* ---------- Tool guide ---------- */

.tool-info-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: start;
  gap: 16px;
}

.tool-guide {
  padding: 26px;
  border-radius: 24px;
}

.tool-guide h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.tool-guide__intro {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.tool-steps {
  margin: 14px 0 0;
  padding-left: 19px;
  color: #4b5d77;
}

.tool-steps li {
  margin: 8px 0;
  padding-left: 3px;
  font-size: 12.8px;
  line-height: 1.8;
}

.tool-faq {
  margin-top: 20px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.tool-faq__title {
  margin: 12px 0 2px;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

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

.tool-faq details:last-child { border-bottom: 0; }

.tool-faq summary {
  cursor: pointer;
  font-size: 12.8px;
  font-weight: 600;
  color: #26374f;
  list-style: none;
}

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

.tool-faq summary::before {
  content: "+";
  display: inline-block;
  width: 16px;
  color: #7b8aa1;
}

.tool-faq details[open] summary::before { content: "−"; }

.tool-faq p {
  margin: 8px 0 0 16px;
  font-size: 12.4px;
  line-height: 1.8;
  color: #5d6b82;
}

@media (max-width: 1024px) {
  .tool-info-grid { grid-template-columns: 1fr; }
  .tool-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .tool-grid,
  .md-editor-layout,
  .diff-view { grid-template-columns: 1fr; }
  .tool-workspace { padding: 18px; }
  .tool-area { min-height: 230px; }
  .tool-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-preview { max-height: none; }
}

@media (max-width: 620px) {
  .tool-workspace { padding: 15px; border-radius: 22px; }
  .tool-stat-grid { gap: 8px; }
  .tool-stat { padding: 12px; }
  .tool-stat__num { font-size: 20px; }
  .tool-seg button { padding: 7px 9px; font-size: 11.5px; }
  .tool-guide { padding: 20px; }
}

/* ---------- Image tools ---------- */

.image-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: 16px;
}

.image-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.image-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 260px;
  padding: 24px;
  border: 1.5px dashed rgba(47, 111, 237, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.image-drop:hover,
.image-drop.is-drag {
  border-color: rgba(47, 111, 237, 0.62);
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.image-drop__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #2f6fed;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(30, 50, 85, 0.08);
}

.image-drop__icon .icon {
  width: 23px;
  height: 23px;
}

.image-drop__title {
  margin: 6px 0 0;
  font-size: 13.5px;
  font-weight: 650;
  color: #26374f;
}

.image-drop__hint {
  margin: 0;
  font-size: 11.5px;
  color: #7b8aa1;
}

.image-stage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background:
    repeating-conic-gradient(rgba(15, 25, 45, 0.045) 0 25%, transparent 0 50%) 0 0 / 18px 18px,
    rgba(255, 255, 255, 0.55);
}

.image-stage__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.image-stage__image {
  display: block;
  max-width: 100%;
  max-height: 380px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(20, 40, 70, 0.12);
}

.image-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #61718a;
}

.image-meta b {
  color: #26374f;
  font-weight: 650;
}

.image-result {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 #fff;
}

.image-result__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 650;
  color: #26374f;
}

.image-result__badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(23, 128, 90, 0.12);
  color: #17805a;
  font-size: 10.5px;
  font-weight: 700;
}

.image-result__badge.is-warn {
  background: rgba(208, 130, 20, 0.14);
  color: #a8680c;
}

.image-result img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  margin: 0 auto;
  border-radius: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #3a4c66;
}

.field__value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #2f6fed;
}

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

.range {
  width: 100%;
  height: 6px;
  margin: 4px 0;
  border-radius: 999px;
  accent-color: #2f6fed;
  cursor: pointer;
}

.image-panel .tool-actions {
  margin-top: 0;
}

.image-panel .tool-facts {
  padding: 16px;
}

.crop-stage {
  position: relative;
  display: inline-block;
  align-self: center;
  max-width: 100%;
  overflow: hidden;
  line-height: 0;
  user-select: none;
  touch-action: none;
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.crop-stage img {
  display: block;
  max-width: 100%;
  max-height: 440px;
  height: auto;
}

.crop-box {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(20, 40, 70, 0.55), 0 0 0 9999px rgba(10, 20, 40, 0.42);
  cursor: move;
  box-sizing: border-box;
}

.crop-box__handle {
  position: absolute;
  right: -9px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2f6fed;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
  cursor: nwse-resize;
}

.palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.swatch {
  display: block;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 40, 70, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.swatch:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(20, 40, 70, 0.12);
}

.swatch__color {
  height: 62px;
}

.swatch__body {
  padding: 8px 10px 9px;
}

.swatch__hex {
  display: block;
  font: 700 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #1b2a42;
  letter-spacing: 0.02em;
}

.swatch__rgb {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: #6b7a90;
}

.pick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.pick-card__color {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(15, 30, 55, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pick-card__text {
  min-width: 0;
  font-size: 11.5px;
  color: #61718a;
}

.pick-card__hex {
  display: block;
  font: 700 14px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #1b2a42;
}

.info-list {
  margin: 0;
}

.info-list > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

.info-list dt {
  color: #7b8aa1;
}

.info-list dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: #26374f;
  word-break: break-word;
}

.info-list__value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 1024px) {
  .image-layout { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .image-layout { grid-template-columns: 1fr; }
  .image-drop { min-height: 200px; }
  .crop-stage img { max-height: 360px; }
}

@media (max-width: 820px) {
  .palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .image-drop { min-height: 170px; padding: 18px; }
  .image-stage { padding: 9px; }
  .palette { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .swatch__color { height: 52px; }
}

/* ---------- PDF tools ---------- */

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pdf-toolbar__meta {
  font-size: 12px;
  color: #61718a;
}

.pdf-toolbar__meta b {
  color: #26374f;
}

.pdf-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.pdf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(30, 50, 85, 0.05);
}

.pdf-item__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(211, 65, 65, 0.1);
  color: #d24141;
}

.pdf-item__icon .icon {
  width: 17px;
  height: 17px;
}

.pdf-item__thumb {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(15, 30, 55, 0.08);
}

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

.pdf-item__name {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  color: #26374f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-item__meta {
  margin-top: 2px;
  font-size: 10.5px;
  color: #7b8aa1;
}

.pdf-item__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
}

.pdf-item__btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(15, 30, 55, 0.1);
  background: #fff;
  color: #5d6b82;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.pdf-item__btn:hover {
  color: #0e1626;
  border-color: rgba(15, 30, 55, 0.22);
}

.pdf-item__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pdf-item__btn .icon {
  width: 14px;
  height: 14px;
}

.pdf-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(47, 111, 237, 0.07);
  font-size: 11.5px;
  color: #455a78;
}

.pdf-total b {
  color: #1f4fb8;
  font-variant-numeric: tabular-nums;
}

.pdf-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(30, 50, 85, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdf-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #26374f;
}

.pdf-result__file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pdf-result__file .pdf-item__icon {
  width: 38px;
  height: 38px;
}

.pdf-result__name {
  font-size: 12.5px;
  font-weight: 650;
  color: #26374f;
  word-break: break-all;
}

.pdf-result__meta {
  margin-top: 2px;
  font-size: 10.5px;
  color: #7b8aa1;
}

.pdf-progress {
  font-size: 11px;
  color: #6b7c95;
  min-height: 15px;
}

@media (max-width: 620px) {
  .pdf-item {
    flex-wrap: wrap;
  }

  .pdf-item__actions {
    margin-left: 44px;
  }

  .pdf-result .field__row {
    flex-direction: column;
    align-items: stretch;
  }

  .pdf-result .btn {
    justify-content: center;
  }
}

/* ---------- Design tools ---------- */

.tool-input.is-invalid {
  border-color: rgba(192, 57, 43, 0.55);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.color-preview {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 150px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: #2f6fed;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04), 0 10px 26px rgba(25, 45, 80, 0.08);
  transition: background 0.18s ease;
}

.color-preview--lg {
  min-height: 180px;
}

.color-preview__label {
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #101b2d;
  font: 600 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.color-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.color-native {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(25, 45, 80, 0.08);
  cursor: pointer;
}

.color-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.color-channel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.62);
}

.color-channel__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #7b8aa1;
}

.color-channel__value {
  font: 650 15px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #26374f;
}

.picker-sv {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  background: #2f6fed;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04), 0 10px 26px rgba(25, 45, 80, 0.08);
}

.picker-knob {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.picker-hue-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 380px;
  margin: 12px auto 0;
}

.picker-hue {
  flex: 1 1 auto;
  min-width: 0;
  height: 14px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
  outline: none;
}

.picker-hue::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22), 0 2px 7px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.picker-hue::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.picker-hue-value {
  flex: 0 0 auto;
  min-width: 42px;
  text-align: right;
  font: 600 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #5d6b82;
}

.picker-presets {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
  max-width: 380px;
  margin: 12px auto 0;
}

.picker-swatch {
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 9px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 7px rgba(25, 45, 80, 0.08);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.picker-swatch:hover {
  transform: translateY(-1px) scale(1.04);
}

.gradient-preview {
  min-height: 230px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #ff6b6b 0%, #2f6fed 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04), 0 10px 26px rgba(25, 45, 80, 0.08);
  transition: background 0.15s ease;
}

.gradient-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gradient-options .field {
  min-width: 0;
}

.gradient-stops {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.gradient-stop {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 26px 32px;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.56);
}

.gradient-stop__color {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.gradient-stop__pos {
  width: 100%;
  padding: 7px 9px;
}

.gradient-stop__remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.72);
  color: #b03427;
  cursor: pointer;
}

.shadow-preview {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(45deg, rgba(15, 25, 45, 0.025) 25%, transparent 25%, transparent 75%, rgba(15, 25, 45, 0.025) 75%) 0 0 / 24px 24px,
    linear-gradient(45deg, rgba(15, 25, 45, 0.025) 25%, transparent 25%, transparent 75%, rgba(15, 25, 45, 0.025) 75%) 12px 12px / 24px 24px,
    rgba(255, 255, 255, 0.56);
}

.shadow-preview__box {
  display: grid;
  place-items: center;
  width: 188px;
  height: 124px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  color: #14213a;
  box-shadow: 0 18px 40px 0 rgba(14, 22, 38, 0.25);
  transition: box-shadow 0.15s ease;
}

.shadow-preview__text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.shadow-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.shadow-options .field {
  min-width: 0;
}

.tool-area--code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 620px) {
  .gradient-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .picker-presets {
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
  }

  .shadow-preview {
    min-height: 230px;
    padding: 20px;
  }
}

/* ---------- Office tools ---------- */

.range {
  width: 100%;
  accent-color: var(--accent);
}

.office-result {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52));
  box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(25, 45, 80, 0.06);
}

.office-result__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7b8aa1;
}

.office-result__value {
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #14213a;
  word-break: break-all;
}

.office-result__sub {
  font-size: 12px;
  line-height: 1.65;
  color: #61718a;
  word-break: break-word;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 300px;
  padding: 24px;
  border: 1.5px dashed rgba(47, 111, 237, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  color: #71819a;
  font-size: 12.5px;
  text-align: center;
}

.qr-placeholder .icon {
  width: 46px;
  height: 46px;
  opacity: 0.42;
}

.qr-preview {
  display: flex;
  justify-content: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: #fff;
  box-shadow: 0 10px 30px rgba(25, 45, 80, 0.08);
}

.qr-preview canvas {
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
  image-rendering: pixelated;
}

.qr-meta {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #61718a;
  text-align: center;
}

.password-output {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

.password-strength {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.password-strength__bar {
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(15, 25, 45, 0.08);
}

.password-strength__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: #d68910;
  transition: width 0.25s ease, background 0.25s ease;
}

.password-strength__text {
  font-size: 11.5px;
  color: #5d6b82;
}

.password-strength.is-weak .password-strength__bar span {
  background: #c0392b;
}

.password-strength.is-medium .password-strength__bar span {
  background: #d68910;
}

.password-strength.is-strong .password-strength__bar span {
  background: #1e8449;
}

.password-strength.is-excellent .password-strength__bar span {
  background: #177a56;
}

.calc-shell {
  max-width: 520px;
  margin: 0 auto;
}

.calc-display {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 #fff, 0 10px 26px rgba(25, 45, 80, 0.07);
}

.calc-expression {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #61718a;
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: right;
}

.calc-expression::placeholder {
  color: #9aa7ba;
}

.calc-result {
  margin-top: 8px;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #14213a;
  text-align: right;
  word-break: break-all;
}

.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.calc-key {
  min-height: 54px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.74);
  color: #22314c;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(25, 45, 80, 0.05);
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.calc-key:hover {
  background: #fff;
  box-shadow: 0 8px 18px rgba(25, 45, 80, 0.09);
}

.calc-key:active {
  transform: translateY(1px) scale(0.98);
}

.calc-key--fn {
  font-size: 14px;
  color: #5d6b82;
}

.calc-key--op {
  color: #1f5fd8;
  background: rgba(47, 111, 237, 0.09);
}

.calc-key--clear {
  color: #b03427;
  background: rgba(176, 52, 39, 0.07);
}

.calc-key--eq {
  grid-column: span 2;
  color: #fff;
  background: linear-gradient(135deg, #2f6fed, #6a4ee8);
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.28);
}

.calc-key--eq:hover {
  background: linear-gradient(135deg, #245ed6, #5b40d8);
}

.unit-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
}

.unit-row__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.unit-row__field .tool-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.unit-swap {
  margin-bottom: 3px;
}

.pct-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.pct-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

@media (max-width: 620px) {
  .qr-placeholder {
    min-height: 220px;
  }

  .calc-key {
    min-height: 50px;
    font-size: 17px;
  }

  .pct-fields {
    grid-template-columns: 1fr;
  }

  .unit-row {
    grid-template-columns: 1fr;
  }

  .unit-swap {
    margin: 0 auto;
    transform: rotate(90deg);
  }
}

/* ---------- Developer tools ---------- */

.dev-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.dev-field .field__row .tool-input {
  flex: 1 1 auto;
  min-width: 0;
}

.regex-pattern-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.regex-pattern {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.regex-flags {
  width: 74px;
  flex: 0 0 auto;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.regex-slash {
  flex: 0 0 auto;
  font: 600 17px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #7b8aa1;
}

.regex-preview {
  min-height: 160px;
  max-height: 320px;
  overflow: auto;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 4px rgba(20, 40, 70, 0.05);
  font: 12.5px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #26374f;
  white-space: pre-wrap;
  word-break: break-word;
}

.regex-preview mark {
  padding: 0 1px;
  border-radius: 3px;
  background: #ffe58a;
  color: #4a3500;
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 160px;
  max-height: 320px;
  overflow: auto;
}

.match-item {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.66);
}

.match-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: #7b8aa1;
}

.match-item__text {
  margin-top: 3px;
  font: 11.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #26374f;
  word-break: break-all;
}

.match-item__groups {
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.6;
  color: #5d6b82;
  word-break: break-word;
}

.ts-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.66);
}

.ts-row__label {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: #7b8aa1;
}

.ts-row__value {
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #26374f;
  text-align: right;
  word-break: break-all;
}

@media (max-width: 620px) {
  .ts-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .ts-row__value {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal],
  .js [data-reveal].reveal-pending { opacity: 1; transform: none; }
}
