/* ===== Hayadar design tokens ===== */
:root {
  /* brand blue — matches icon */
  --hy-blue-50:  #eef5fb;
  --hy-blue-100: #d7e8f4;
  --hy-blue-200: #a7cbe4;
  --hy-blue-300: #6fa9d0;
  --hy-blue-400: #3a85b9;
  --hy-blue-500: #1a6ea3;
  --hy-blue-600: #115a8a;
  --hy-blue-700: #0c4770;
  --hy-blue-800: #08334f;
  --hy-blue-900: #061f30;

  /* warm armenian accents — apricot / pomegranate / ochre */
  --hy-apricot: #f5a86a;
  --hy-apricot-soft: #fbd7b6;
  --hy-pom: #c0392b;
  --hy-pom-deep: #8c2218;
  --hy-ochre: #d4a24c;
  --hy-saffron: #e8b93a;

  /* neutrals — cool grey */
  --hy-paper: #f5f6f7;
  --hy-paper-2: #eceef1;
  --hy-ink: #17191c;
  --hy-ink-2: #2f3338;
  --hy-mute: #6b727a;
  --hy-line: #dde1e6;
  --hy-line-soft: #e8ebee;

  /* surfaces */
  --hy-bg: var(--hy-paper);
  --hy-surface: #ffffff;
  --hy-surface-2: var(--hy-paper-2);
  --hy-text: var(--hy-ink);
  --hy-text-mute: var(--hy-mute);
  --hy-border: var(--hy-line);
  --hy-border-soft: var(--hy-line-soft);
  --hy-primary: var(--hy-blue-500);
  --hy-primary-hover: var(--hy-blue-600);
  --hy-accent: var(--hy-apricot);

  /* spell-check colors */
  --hy-err: #c0392b;
  --hy-err-bg: #f8e4e1;
  --hy-ok: #3e8e5d;

  /* radii + shadow */
  --hy-r-sm: 8px;
  --hy-r-md: 14px;
  --hy-r-lg: 22px;
  --hy-r-xl: 32px;
  --hy-shadow-sm: 0 1px 2px rgba(12, 71, 112, 0.06), 0 2px 8px rgba(12, 71, 112, 0.04);
  --hy-shadow-md: 0 2px 8px rgba(12, 71, 112, 0.08), 0 12px 32px rgba(12, 71, 112, 0.08);
  --hy-shadow-lg: 0 4px 14px rgba(12, 71, 112, 0.10), 0 24px 60px rgba(12, 71, 112, 0.12);

  /* type */
  --hy-font-display: "Fraunces", "Noto Serif Armenian", "Mardoto", Georgia, serif;
  --hy-font-body: "Manrope", "Noto Sans Armenian", "Helvetica Neue", Arial, sans-serif;
  --hy-font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --hy-font-arm: "Noto Serif Armenian", "Mardoto", "Noto Sans Armenian", serif;
}

html[data-theme="dark"] {
  --hy-bg: #080d14;
  --hy-surface: #0e1620;
  --hy-surface-2: #0a1019;
  --hy-text: #eef2f6;
  --hy-text-mute: #7e8a97;
  --hy-border: #1a2636;
  --hy-border-soft: #111a26;
  --hy-primary: #4aa3d6;
  --hy-primary-hover: #6fb9e2;
  --hy-accent: #f5b988;
  --hy-err: #e77365;
  --hy-err-bg: #3a1f1c;
  --hy-shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --hy-shadow-md: 0 4px 16px rgba(0,0,0,0.55);
  --hy-shadow-lg: 0 16px 48px rgba(0,0,0,0.65);
}

/* ===== base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--hy-font-body);
  background: var(--hy-bg);
  color: var(--hy-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
  position: relative;
}

a { color: var(--hy-primary); text-decoration: none; }
a:hover { color: var(--hy-primary-hover); }
button { font-family: inherit; }

/* ===== layout shell ===== */
.hy-app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== nav ===== */
.hy-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--hy-border-soft);
  backdrop-filter: saturate(1.2);
}
html[data-theme="dark"] .hy-nav {
  background: #0b1219;
  border-bottom-color: var(--hy-border);
}
.hy-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hy-text);
  text-decoration: none;
}
.hy-nav .brand .icon {
  width: 36px;
  height: 36px;
  color: var(--hy-primary);
  display: grid;
  place-items: center;
}
.hy-nav .brand .icon svg,
.hy-nav .brand .icon img {
  width: 100%; height: 100%; display: block;
  color: inherit;
}
.hy-nav .brand .wordmark-img {
  display: block;
  height: 36px;
  width: calc(36px * 1494 / 367);
  background-color: currentColor;
  -webkit-mask: url("/assets/wordmark.svg") center / contain no-repeat;
  mask: url("/assets/wordmark.svg") center / contain no-repeat;
    transform: translateY(5px);
}
.hy-nav .links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.hy-nav .links a,
.hy-nav .links a:visited {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--hy-text-mute);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  text-decoration: none;
}
.hy-nav .links a:hover { color: var(--hy-text); background: var(--hy-surface-2); }
.hy-nav .links a.active {
  color: var(--hy-primary);
  background: var(--hy-blue-50);
}
html[data-theme="dark"] .hy-nav .links a.active {
  background: rgba(74, 163, 214, 0.14);
}
.hy-nav .theme-toggle {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--hy-border);
  background: var(--hy-surface);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--hy-text-mute);
  transition: all 0.15s;
}
.hy-nav .theme-toggle:hover { color: var(--hy-text); border-color: var(--hy-primary); }
.hy-nav .theme-toggle svg { width: 18px; height: 18px; }
.hy-nav .theme-toggle .sun { display: none; }
html[data-theme="dark"] .hy-nav .theme-toggle .moon { display: none; }
html[data-theme="dark"] .hy-nav .theme-toggle .sun { display: block; }

/* ===== language selector ===== */
.lang-selector { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--hy-border);
  background: var(--hy-surface);
  cursor: pointer;
  color: var(--hy-text-mute);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  transition: all 0.15s;
}
.lang-btn:hover { color: var(--hy-text); border-color: var(--hy-primary); }
.lang-btn svg { flex-shrink: 0; }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 160px; padding: 6px 0;
  background: var(--hy-surface); border: 1px solid var(--hy-border);
  border-radius: var(--hy-r-md); box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 30;
}
.lang-selector.open .lang-dropdown { display: block; }
.lang-dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px; font-size: 14px; text-decoration: none;
  color: var(--hy-text); transition: background 0.1s;
}
.lang-dropdown a:hover { background: var(--hy-surface-2); }
.lang-dropdown a.active { color: var(--hy-primary); font-weight: 600; }
.lang-dropdown .lang-code { font-size: 11px; color: var(--hy-text-mute); font-weight: 600; letter-spacing: 0.04em; }

/* ===== main centering ===== */
.hy-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px;
}
.hy-main.centered {
  justify-content: flex-start;
  padding-top: min(10vh, 72px);
}

/* ===== big wordmark / logo block ===== */
.hy-logo {
  display: block;
  margin: 0 auto 0px;
  color: var(--hy-primary);
  width: clamp(260px, 38vw, 420px);
  height: auto;
  aspect-ratio: 2979 / 728;
  background-color: currentColor;
  -webkit-mask: url("/assets/wordmark.svg") center / contain no-repeat;
  mask: url("/assets/wordmark.svg") center / contain no-repeat;
}
.hy-tooldesc {
  text-align: center;
  font-family: var(--hy-font-display);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--hy-text);
  margin: 6px 0 25px;
}
.hy-tooldesc .arm {
  font-family: var(--hy-font-arm);
  color: var(--hy-primary);
}
.hy-wordmark {
  font-family: var(--hy-font-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--hy-text);
  margin: 0 0 8px;
  text-align: center;
}
.hy-wordmark .arm {
  font-family: var(--hy-font-arm);
  color: var(--hy-primary);
  font-weight: 400;
}
.hy-tagline {
  text-align: center;
  color: var(--hy-text-mute);
  font-size: 15px;
  margin: 0 0 36px;
  letter-spacing: 0.01em;
}
.hy-tagline .dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--hy-accent);
  vertical-align: middle;
  margin: 0 10px;
}

/* ===== tool tabs (pill nav above main tool) ===== */
.hy-tooltabs {
  display: inline-flex;
  background: var(--hy-surface);
  border: 1px solid var(--hy-border);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 22px;
  box-shadow: var(--hy-shadow-sm);
}
.hy-tooltabs a,
.hy-tooltabs a:visited {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--hy-text-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
  text-decoration: none;
}
.hy-tooltabs a:hover { color: var(--hy-text); }
.hy-tooltabs a.active,
.hy-tooltabs a.active:visited {
  background: var(--hy-primary);
  color: white;
}
.hy-tooltabs a svg { width: 15px; height: 15px; color: var(--hy-primary); }
.hy-tooltabs a.active svg { color: white; }

/* ===== tool card ===== */
.hy-tool {
  width: 100%;
  max-width: 880px;
  background: var(--hy-surface);
  border: 1px solid var(--hy-border);
  border-radius: var(--hy-r-lg);
  box-shadow: var(--hy-shadow-md);
  overflow: hidden;
}
.hy-tool.wide { max-width: 1100px; }
.hy-tool-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hy-border-soft);
  background: var(--hy-surface);
}
.hy-tool-head .title {
  font-weight: 600;
  font-size: 14px;
  color: var(--hy-text);
}
.hy-tool-head .sub {
  font-size: 13px;
  color: var(--hy-text-mute);
  margin-left: 4px;
}
.hy-tool-head .actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.hy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--hy-text-mute);
  background: var(--hy-surface-2);
  border: 1px solid var(--hy-border-soft);
  cursor: pointer;
  transition: all 0.15s;
}
.hy-chip:hover { color: var(--hy-text); border-color: var(--hy-border); }
.hy-chip.on {
  color: var(--hy-primary);
  background: var(--hy-blue-50);
  border-color: var(--hy-blue-100);
}
html[data-theme="dark"] .hy-chip.on { background: rgba(74,163,214,0.12); border-color: rgba(74,163,214,0.3); }

.hy-editor {
  padding: 22px 26px 18px;
  min-height: 260px;
  font-family: var(--hy-font-arm);
  font-size: 20px;
  line-height: 1.6;
  color: var(--hy-text);
  outline: none;
}
.hy-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--hy-text-mute);
  opacity: 0.6;
}
.hy-editor .misspell {
  text-decoration: underline wavy var(--hy-err);
  text-underline-offset: 4px;
  cursor: pointer;
  text-decoration-thickness: 2px;
}
.hy-tool-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-top: 1px solid var(--hy-border-soft);
  background: var(--hy-surface-2);
  font-size: 13px;
  color: var(--hy-text-mute);
}
.hy-tool-foot .count {
  display: flex; gap: 14px;
}
.hy-tool-foot .count b { color: var(--hy-text); font-weight: 600; }
.hy-tool-foot .right { margin-left: auto; display: flex; gap: 8px; }

/* buttons */
.hy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hy-border);
  background: var(--hy-surface);
  color: var(--hy-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.hy-btn:hover { border-color: var(--hy-primary); color: var(--hy-primary); }
.hy-btn.primary {
  background: var(--hy-primary);
  color: white;
  border-color: var(--hy-primary);
}
.hy-btn.primary:hover {
  background: var(--hy-primary-hover);
  border-color: var(--hy-primary-hover);
  color: white;
}
.hy-btn.ghost { background: transparent; border-color: transparent; }
.hy-btn.ghost:hover { background: var(--hy-surface-2); border-color: transparent; color: var(--hy-text); }
.hy-btn svg { width: 15px; height: 15px; }

/* ===== toast ===== */
.hy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--hy-text);
  color: var(--hy-bg);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 999;
}
.hy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== stats strip ===== */
.hy-stats {
  width: 100%;
  max-width: 880px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hy-stats .stat {
  padding: 18px 20px;
  background: var(--hy-surface);
  border: 1px solid var(--hy-border);
  border-radius: var(--hy-r-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hy-stats .stat .num {
  font-family: var(--hy-font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--hy-text);
}
.hy-stats .stat .num .accent { color: var(--hy-accent); }
.hy-stats .stat .lbl { font-size: 13px; color: var(--hy-text-mute); }
.hy-stats .stat .arm {
  font-family: var(--hy-font-arm);
  font-size: 12px;
  color: var(--hy-text-mute);
  opacity: 0.7;
}

/* ===== support spot ===== */
.hy-support {
  width: 100%;
  max-width: 880px;
  margin-top: 36px;
  background: var(--hy-surface-2);
  border: 1px dashed var(--hy-border);
  border-radius: var(--hy-r-md);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--hy-text-mute);
  font-size: 13px;
}
.hy-support .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hy-text-mute);
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--hy-surface);
  border: 1px solid var(--hy-border);
}
.hy-support .body { flex: 1; }
.hy-support .body strong { color: var(--hy-text); font-weight: 600; display: block; margin-bottom: 2px; }

/* ===== timeline ===== */
.hy-timeline {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  position: relative;
}
.hy-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: var(--hy-border);
}
.hy-timeline li {
  position: relative;
  padding-left: 36px;
  padding-bottom: 28px;
}
.hy-timeline li:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--hy-border);
  background: var(--hy-bg);
  z-index: 1;
}
.tl-dot.done { background: #3f903f; border-color: #3f903f; }
.tl-dot.progress { background: #f0ad4e; border-color: #f0ad4e; }
.tl-dot.future { background: var(--hy-surface); border-color: var(--hy-text-mute); }
.tl-card {
  background: var(--hy-surface);
  border: 1px solid var(--hy-border);
  border-radius: var(--hy-r-sm);
  padding: 16px 20px;
}
.tl-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--hy-text);
}
.tl-card .tl-date {
  display: inline-block;
  font-size: 12px;
  color: var(--hy-text-mute);
  margin-bottom: 6px;
}
.tl-card p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: var(--hy-text-mute);
}

/* ===== footer ===== */
.hy-foot {
  position: relative;
  flex-wrap: wrap;
  padding: 28px 32px 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--hy-border-soft);
  color: var(--hy-text-mute);
  font-size: 13px;
  margin-top: 40px;
}
.hy-foot .copy { display: flex; align-items: center; gap: 8px; }
.hy-foot .copy .arm { font-family: var(--hy-font-arm); opacity: 0.8; }
.hy-foot .links {
  margin-left: auto;
  display: flex;
  gap: 18px;
}
.hy-foot .links a { color: var(--hy-text-mute); }
.hy-foot .links a:hover { color: var(--hy-primary); }

/* ===== page shell (about/contact/support) ===== */
.hy-page {
  width: 100%;
  max-width: 760px;
}
.hy-page h1 {
  font-family: var(--hy-font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  color: var(--hy-text);
}
.hy-page h1 .arm { font-family: var(--hy-font-arm); color: var(--hy-primary); }
.hy-page .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--hy-text-mute);
  margin: 0 0 36px;
  max-width: 640px;
  text-wrap: pretty;
}
.hy-page h2 {
  font-family: var(--hy-font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
}
.hy-page p { line-height: 1.65; color: var(--hy-ink-2); margin: 0 0 14px; }
html[data-theme="dark"] .hy-page p { color: #cfd7df; }

.hy-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hy-primary);
  font-weight: 600;
  margin-bottom: 16px;
}
.hy-kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--hy-primary);
}

/* form */
.hy-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.hy-field label { font-size: 13px; font-weight: 500; color: var(--hy-text); }
.hy-field input, .hy-field textarea, .hy-field select {
  padding: 12px 14px;
  background: var(--hy-surface);
  border: 1px solid var(--hy-border);
  border-radius: var(--hy-r-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--hy-text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hy-field input:focus, .hy-field textarea:focus, .hy-field select:focus {
  border-color: var(--hy-primary);
  box-shadow: 0 0 0 3px var(--hy-blue-100);
}
html[data-theme="dark"] .hy-field input:focus,
html[data-theme="dark"] .hy-field textarea:focus {
  box-shadow: 0 0 0 3px rgba(74,163,214,0.25);
}
.hy-field textarea { resize: vertical; min-height: 120px; }

/* ===== suggest popover (spell check) ===== */
.hy-pop {
  position: absolute;
  background: var(--hy-surface);
  border: 1px solid var(--hy-border);
  border-radius: var(--hy-r-sm);
  box-shadow: var(--hy-shadow-lg);
  padding: 6px;
  min-width: 200px;
  z-index: 50;
  font-size: 14px;
}
.hy-pop .head {
  padding: 8px 10px 6px;
  font-size: 11px;
  color: var(--hy-text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hy-pop .sug {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--hy-font-arm);
  font-size: 16px;
  color: var(--hy-text);
}
.hy-pop .sug:hover { background: var(--hy-blue-50); color: var(--hy-primary); }
html[data-theme="dark"] .hy-pop .sug:hover { background: rgba(74,163,214,0.15); }
.hy-pop .sug small { color: var(--hy-text-mute); font-family: var(--hy-font-body); font-size: 11px; }
.hy-pop .divider { height: 1px; background: var(--hy-border-soft); margin: 4px 2px; }
.hy-pop .action {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--hy-text-mute);
  cursor: pointer;
}
.hy-pop .action:hover { background: var(--hy-surface-2); color: var(--hy-text); }

/* ===== tooltip ===== */
.hy-tooltip {
  position: absolute;
  background: var(--hy-text);
  color: var(--hy-bg);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  transition: opacity .15s;
}
.hy-tooltip.show { opacity: 1; }

/* transliteration live view */
.hy-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}
.hy-split > div {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hy-split .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hy-text-mute);
  display: flex; align-items: center; gap: 8px;
}
.hy-split .lbl .flag {
  display: inline-block;
  width: 16px; height: 11px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #d90012 33%, #0033a0 33%, #0033a0 66%, #f2a800 66%);
  border: 1px solid rgba(0,0,0,0.05);
}
.hy-split .lbl.latin .flag {
  background: linear-gradient(90deg, #e6e6e6, #f8f8f8);
  position: relative;
}
.hy-split .lbl.latin .flag::after {
  content: "Aa"; position: absolute; inset: 0;
  font-size: 8px; display: grid; place-items: center;
  color: var(--hy-ink); font-weight: 600;
}
.hy-split textarea, .hy-split .out {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1.55;
  color: var(--hy-text);
  resize: none;
  font-family: var(--hy-font-body);
}
.hy-split .out { font-family: var(--hy-font-arm); color: var(--hy-text); white-space: pre-wrap; }
.hy-split .out:empty::before {
  content: "Հայdelays տdelays delays кdelays delays այdelays ...";
  color: var(--hy-text-mute);
  opacity: 0.55;
}
.hy-split .divider { border-left: 1px solid var(--hy-border-soft); }

/* unicode converter */
.hy-mono {
  font-family: var(--hy-font-mono);
  font-size: 14px;
  line-height: 1.55;
}
.hy-codepanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hy-border-soft);
  border-radius: var(--hy-r-md);
  overflow: hidden;
  border: 1px solid var(--hy-border);
}
.hy-codepanes .pane {
  background: var(--hy-surface);
  padding: 16px 18px;
  min-height: 240px;
  display: flex; flex-direction: column; gap: 10px;
}
.hy-codepanes .pane .head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--hy-text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hy-codepanes .pane textarea, .hy-codepanes .pane .out {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--hy-font-mono);
  font-size: 14px;
  color: var(--hy-text);
  resize: none;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== contact / support layout ===== */
.hy-two {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
}
.hy-card {
  background: var(--hy-surface);
  border: 1px solid var(--hy-border);
  border-radius: var(--hy-r-md);
  padding: 22px 24px;
  margin-bottom: 14px;
}
.hy-card h3 {
  font-family: var(--hy-font-display);
  font-weight: 500;
  margin: 0 0 6px;
  font-size: 18px;
}
.hy-card p { margin: 0; font-size: 14px; color: var(--hy-text-mute); line-height: 1.55; }
.hy-card .k { font-family: var(--hy-font-mono); font-size: 13px; color: var(--hy-primary); }

.hy-faq details {
  border-top: 1px solid var(--hy-border-soft);
  padding: 14px 0;
}
.hy-faq details:last-child { border-bottom: 1px solid var(--hy-border-soft); }
.hy-faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--hy-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.hy-faq summary::-webkit-details-marker { display: none; }
.hy-faq summary::after { content: "+"; color: var(--hy-primary); font-size: 22px; line-height: 1; }
.hy-faq details[open] summary::after { content: "–"; }
.hy-faq p { color: var(--hy-text-mute); margin-top: 10px; line-height: 1.6; }

/* ===== responsive ===== */
@media (max-width: 780px) {
  .hy-nav { padding: 14px 18px; gap: 12px; flex-wrap: wrap; }
  .hy-nav .links { order: 3; width: 100%; overflow-x: auto; }
  .hy-main { padding: 24px 16px; }
  .hy-main.centered { padding-top: 32px; }
  .hy-stats { grid-template-columns: 1fr; }
  .hy-split { grid-template-columns: 1fr; }
  .hy-split .divider { border-left: 0; border-top: 1px solid var(--hy-border-soft); }
  .hy-codepanes { grid-template-columns: 1fr; }
  .hy-two { grid-template-columns: 1fr; }

  .hy-tooltabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--hy-r-md);
    max-width: 100%;
  }
  .hy-tooltabs a,
  .hy-tooltabs a:visited {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .hy-tooltabs a svg { display: none; }

  .hy-tool-foot {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }
  .hy-tool-foot .count { gap: 10px; font-size: 12px; }
  .hy-tool-foot .right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
  }
  .hy-btn { padding: 7px 12px; font-size: 12px; }
}
