/* =====================================================================
   Ураг.Мод — Family.show 3.0-ийн Black ба Silver арьсны вэб хувилбар.
   Өнгө, градиентуудыг Family.show-ийн XAML resource-оос авсан.
   ===================================================================== */

:root,
.skin-black {
  --ft-font: "Segoe UI", Calibri, Carlito, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  /* Гадаргуу ба текст (саарал-хүйтэн бараан) */
  --ft-bg: #15171a;
  --ft-header-bg: #111316;
  --ft-header-font: #f1f3f5;
  --ft-header-border: #23262b;
  --ft-surface: #1d2024;
  --ft-surface-2: #262a2f;
  --ft-surface-3: #30353b;
  --ft-border: #31353b;
  --ft-border-strong: #474d55;
  --ft-font-color: #e7e9ec;
  --ft-muted: #9aa1ab;
  --ft-hover: rgba(255, 255, 255, 0.07);
  --ft-glass: rgba(22, 24, 28, 0.78);
  --ft-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);

  /* Үйлдлийн өнгө — хөх нь модны улбар шар (хамаатан) өнгөтэй харилцан нөхөх */
  --ft-primary: #4c7cf0;
  --ft-primary-hover: #658ff5;
  --ft-primary-soft: rgba(76, 124, 240, 0.16);
  --ft-primary-text: #ffffff;
  --ft-focus: rgba(76, 124, 240, 0.45);
  --ft-link: #86a9f7;
  --ft-danger: #e5484d;
  --ft-danger-hover: #f05a5f;
  --ft-ok: #5bb98c;
  --ft-accent: #f06423;

  /* Маягтын талбар */
  --ft-input-bg: #121417;
  --ft-input-text: #e7e9ec;
  --ft-input-border: #3a3f46;
  --ft-placeholder: #6d747e;

  /* Хуучин нэрс (Family.show) — шинэ хувилбаруудтай холбосон */
  --ft-panel-from: var(--ft-surface);
  --ft-panel-to: var(--ft-surface);
  --ft-menu-bg: var(--ft-surface);
  --ft-menu-hover: var(--ft-primary-soft);
  --ft-tooltip-bg: #0f1113;
  --ft-list-text: #f28a4c;
  --ft-selected-row: var(--ft-primary-soft);
  --ft-btn-mid: var(--ft-primary);

  /* Диаграм (Family.show-ийн өнгө) */
  --ft-diagram-top: #1a1c1f;
  --ft-diagram-bottom: #363a40;
  --ft-related: #f06423;
  --ft-related-hover: #ff8443;
  --ft-spouse: #6797c8;
  --ft-spouse-hover: #87b7e8;
  --ft-sibling: #f09822;
  --ft-sibling-hover: #ffb842;
  --ft-child-line: rgba(150, 156, 165, 0.5);
  --ft-marriage: #8fc29a;
  --ft-marriage-text: #ffffff;
  --ft-ring: #c4c9d0;
  --ft-star: #4c7cf0;
  --ft-label: #e7e9ec;
  --ft-box-bg: #23262b;
  --ft-box-text: #eef0f2;
  --ft-box-border: #4a5058;
  color-scheme: dark;
}

.skin-silver {
  /* Гадаргуу ба текст (цайвар, хүйтэн саарал) */
  --ft-bg: #eef1f5;
  --ft-header-bg: #1f2b40;
  --ft-header-font: #ffffff;
  --ft-header-border: #16202f;
  --ft-surface: #ffffff;
  --ft-surface-2: #f3f5f8;
  --ft-surface-3: #e6eaf0;
  --ft-border: #d8dee6;
  --ft-border-strong: #b9c2ce;
  --ft-font-color: #1c2a42;
  --ft-muted: #5d6b82;
  --ft-hover: rgba(28, 42, 66, 0.06);
  --ft-glass: rgba(255, 255, 255, 0.82);
  --ft-shadow: 0 10px 30px rgba(31, 43, 64, 0.18);

  --ft-primary: #2563c9;
  --ft-primary-hover: #1d54ad;
  --ft-primary-soft: rgba(37, 99, 201, 0.1);
  --ft-primary-text: #ffffff;
  --ft-focus: rgba(37, 99, 201, 0.32);
  --ft-link: #1f5bbf;
  --ft-danger: #d93d42;
  --ft-danger-hover: #c12f34;
  --ft-ok: #2f8f5b;
  --ft-accent: #d95736;

  --ft-input-bg: #ffffff;
  --ft-input-text: #1c2a42;
  --ft-input-border: #c9d1db;
  --ft-placeholder: #8a96a8;

  --ft-tooltip-bg: #1f2b40;
  --ft-list-text: #2563c9;

  --ft-diagram-top: #f7f9fc;
  --ft-diagram-bottom: #cbd4df;
  --ft-related: #2466c7;
  --ft-related-hover: #13a8ec;
  --ft-spouse: #d95736;
  --ft-spouse-hover: #fd6944;
  --ft-sibling: #4b5387;
  --ft-sibling-hover: #8e9cf3;
  --ft-child-line: rgba(110, 120, 135, 0.55);
  --ft-marriage: #5f9e6c;
  --ft-marriage-text: #1c2a42;
  --ft-ring: #9aa3ae;
  --ft-star: #f18c54;
  --ft-label: #1c2a42;
  --ft-box-bg: #ffffff;
  --ft-box-text: #1c2a42;
  --ft-box-border: #9aa6b8;
  color-scheme: light;
}

html, body {
  height: 100%;
}

body.ft-app {
  margin: 0;
  font-family: var(--ft-font);
  font-size: 13px;
  color: var(--ft-font-color);
  background: var(--ft-bg);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}

/* ------------------------------------------------------------------ app shell */

.ft-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
}

.ft-header {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 50px;
  padding: 0 16px;
  background: var(--ft-header-bg);
  border-bottom: 1px solid var(--ft-header-border);
  color: var(--ft-header-font);
  flex: 0 0 auto;
}

.ft-brand {
  font-family: "Segoe UI Light", "Segoe UI", var(--ft-font);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.2px;
  color: var(--ft-header-font);
  text-decoration: none;
  white-space: nowrap;
}
.ft-brand:hover { color: var(--ft-header-font); }
.ft-brand .a { color: #cfd3da; }
.ft-brand .b { font-weight: 400; }

.ft-header .ft-spacer { flex: 1 1 auto; }
.ft-header .ft-btn.ghost { color: var(--ft-header-font); border-color: rgba(255, 255, 255, 0.3); }
.ft-header .ft-btn.ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--ft-header-font); }

.ft-header-tree {
  font-size: 15px;
  color: var(--ft-header-font);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40vw;
}

.ft-presence {
  display: flex;
  gap: 4px;
}
.ft-version {
  font-size: 12px;
  opacity: 0.75;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.ft-version:hover { opacity: 1; text-decoration: underline; }
.ft-changelog {
  display: flex;
  flex-direction: column-reverse;
  max-height: 60vh;
  overflow: auto;
  margin: 0 -4px 8px;
  padding: 0 4px;
}
.ft-changelog h4 { margin: 12px 0 4px; font-size: 14px; }
.ft-changelog h4 span { font-weight: normal; color: var(--ft-muted); font-size: 12px; margin-left: 6px; }
.ft-changelog ul { margin: 0; padding-left: 18px; }
.ft-changelog li { margin: 3px 0; line-height: 1.35; }
.ft-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--ft-related);
  border: 2px solid var(--ft-header-bg);
}

.ft-menubar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.ft-menu {
  position: relative;
}

.ft-menu > button,
.ft-menubar > button,
.ft-menubar > a {
  background: transparent;
  border: 0;
  color: var(--ft-font-color);
  font: inherit;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s, color 0.15s;
}
.ft-menu > button:hover,
.ft-menubar > button:hover,
.ft-menubar > a:hover,
.ft-menu.open > button {
  background: var(--ft-hover);
  color: var(--ft-font-color);
}
.ft-menu > button:focus-visible,
.ft-menubar > button:focus-visible,
.ft-menubar > a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ft-focus); }
.ft-caret::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-top: 4px;
  opacity: 0.7;
}

.ft-menu-popup {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  min-width: 220px;
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: 10px;
  box-shadow: var(--ft-shadow);
  padding: 6px;
  z-index: 50;
  animation: ft-slide 0.15s ease-out;
}
.ft-menu-popup button,
.ft-menu-popup a {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ft-font-color);
  font: inherit;
  font-size: 14px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.ft-menu-popup button:hover,
.ft-menu-popup a:hover { background: var(--ft-primary-soft); color: var(--ft-font-color); }
.ft-menu-popup hr { border: 0; border-top: 1px solid var(--ft-border); margin: 6px 2px; }
.ft-menu-popup .checked::before { content: "✓ "; color: var(--ft-primary); }

@keyframes ft-slide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.ft-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.ft-body {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
  padding: 0 10px 10px;
  gap: 8px;
}

.ft-page {
  flex: 1 1 auto;
  overflow: auto;
  padding: 16px clamp(16px, 4vw, 48px) 40px;
}

/* ------------------------------------------------------------------ panels */

.ft-panel {
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: 12px;
  color: var(--ft-font-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.ft-diagram {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--ft-border);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(176deg, var(--ft-diagram-top), var(--ft-diagram-bottom));
}

.ft-details {
  flex: 0 0 300px;
  width: 300px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.ft-details-scroll {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.ft-section {
  padding: 10px 14px;
  border-top: 1px solid var(--ft-border);
}
.ft-section:first-child { border-top: 0; }

.ft-section-title {
  font-size: 13px;
  font-weight: 700;
  margin: 2px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ft-section-title .ft-spacer { flex: 1; }

.ft-person-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--ft-border);
}
.ft-person-header .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ft-star-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: var(--ft-star);
  stroke: #fff;
  stroke-width: 1.5;
}

.ft-info {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
}
.ft-photo {
  width: 125px;
  height: 100px;
  flex: 0 0 125px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  background: var(--ft-surface-3);
}
.ft-photo-drop {
  width: 125px;
  height: 100px;
  flex: 0 0 125px;
  position: relative;
  cursor: pointer;
}
.ft-photo-drop .ft-silhouette {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ft-surface-2);
  border: 1px dashed var(--ft-border-strong);
  border-radius: 8px;
  font-size: 11px;
  text-align: center;
  color: var(--ft-muted);
  padding: 6px;
}
.ft-photo-drop.dragover .ft-silhouette { border-color: var(--ft-related); color: var(--ft-related); }

.ft-info .facts {
  min-width: 0;
  flex: 1;
  font-size: 12px;
}
.ft-info .facts .lbl { color: var(--ft-muted); font-size: 11px; margin-top: 2px; }
.ft-info .facts .val { font-weight: 700; font-size: 13px; word-break: break-word; }
.ft-kinship {
  margin-top: 6px;
  padding: 3px 8px;
  display: inline-block;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ft-ok) 16%, transparent);
  color: var(--ft-ok);
  font-size: 12px;
  font-weight: 700;
}

.ft-mongol-script {
  writing-mode: vertical-lr;
  font-family: "Noto Sans Mongolian", "Mongolian Baiti", serif;
  font-size: 18px;
  max-height: 100px;
}

/* ------------------------------------------------------------------ buttons
   Хавтгай (flat): үндсэн — хөх, хоёрдогч (.black) — гадаргуу, .ghost — хүрээтэй, .red — аюултай үйлдэл */

.ft-btn {
  --h: 30px;
  min-height: var(--h);
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--ft-primary-text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  cursor: pointer;
  background: var(--ft-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.ft-btn:hover { background: var(--ft-primary-hover); color: var(--ft-primary-text); }
.ft-btn:active { transform: translateY(1px); }
.ft-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ft-focus); }
.ft-btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.ft-btn.lg { --h: 36px; font-size: 13.5px; padding: 0 18px; }
.ft-btn.black {
  background: var(--ft-surface-2);
  border-color: var(--ft-border-strong);
  color: var(--ft-font-color);
  box-shadow: none;
  min-width: 95px;
}
.ft-btn.black:hover { background: var(--ft-surface-3); color: var(--ft-font-color); }
.ft-btn.red { background: var(--ft-danger); color: #fff; }
.ft-btn.red:hover { background: var(--ft-danger-hover); color: #fff; }
.ft-btn.ghost {
  background: transparent;
  border-color: var(--ft-border-strong);
  box-shadow: none;
  color: var(--ft-font-color);
}
.ft-btn.ghost:hover { background: var(--ft-hover); color: var(--ft-font-color); }

.ft-split {
  display: inline-flex;
  align-items: stretch;
}
.ft-split > .ft-btn:first-child { border-radius: 8px 0 0 8px; min-width: 105px; }
.ft-split > .ft-btn:last-child { border-radius: 0 8px 8px 0; padding: 0 8px; border-left: 1px solid rgba(255, 255, 255, 0.28); }

.ft-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ft-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ft-border-strong);
  background: var(--ft-surface-2);
  color: var(--ft-font-color);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.ft-icon-btn:hover { background: var(--ft-primary); border-color: var(--ft-primary); color: #fff; }

/* ------------------------------------------------------------------ forms */

.ft-form label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ft-muted);
  margin: 8px 0 4px;
}
.ft-input,
.ft-form input[type="text"],
.ft-form input[type="email"],
.ft-form input[type="number"],
.ft-form input[type="search"],
.ft-form input[type="password"],
.ft-form input[type="date"],
.ft-form select,
.ft-form textarea,
.ft-toolbar-row select,
.ft-filter input,
.ft-assistant-input textarea {
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--ft-input-border);
  background: var(--ft-input-bg);
  color: var(--ft-input-text);
  font: inherit;
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ft-input::placeholder,
.ft-form input::placeholder,
.ft-form textarea::placeholder,
.ft-filter input::placeholder,
.ft-assistant-input textarea::placeholder { color: var(--ft-placeholder); }
.ft-input:focus,
.ft-form input:focus,
.ft-form select:focus,
.ft-form textarea:focus,
.ft-toolbar-row select:focus,
.ft-filter input:focus,
.ft-assistant-input textarea:focus {
  outline: none;
  border-color: var(--ft-primary);
  box-shadow: 0 0 0 3px var(--ft-focus);
}
.ft-form input:disabled,
.ft-form select:disabled,
.ft-form textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.ft-form input[type="checkbox"],
.ft-form input[type="radio"],
.ft-toolbar-row input[type="checkbox"] { accent-color: var(--ft-primary); width: 15px; height: 15px; margin: 0; }
.ft-form textarea { min-height: 80px; resize: vertical; }
/* Хөтчийн өөрийн select-ийн нэмэлт зай, сумыг арилгаж бусад талбартай ижил болгоно */
.ft-form select,
.ft-toolbar-row select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%238a94a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 14px;
  cursor: pointer;
}
.ft-form .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ft-form .row3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.ft-form .check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ft-font-color);
  margin: 6px 0;
}
.ft-form .actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}
.ft-form .hint { font-size: 11px; color: var(--ft-muted); margin-top: 2px; }
.ft-error { color: var(--ft-danger); font-size: 12px; margin-top: 6px; }
.ft-warning {
  background: rgba(240, 152, 34, 0.15);
  border: 1px solid rgba(240, 152, 34, 0.6);
  color: var(--ft-font-color);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  margin: 6px 0;
}

.ft-add-form {
  animation: ft-grow 0.3s ease-out;
  overflow: hidden;
}
@keyframes ft-grow {
  from { max-height: 0; opacity: 0; }
  to { max-height: 900px; opacity: 1; }
}
.ft-dimmed { opacity: 0.2; pointer-events: none; transition: opacity 0.3s; }

/* ------------------------------------------------------------------ family list */

.ft-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 6px;
}
.ft-filter input {
  flex: 1;
  min-height: 28px;
  padding: 3px 12px;
  border-radius: 999px;
}

.ft-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.ft-list th {
  text-align: left;
  font-weight: 400;
  color: var(--ft-muted);
  cursor: pointer;
  padding: 2px 4px;
  white-space: nowrap;
  user-select: none;
}
.ft-list th.sorted::after { content: " ▾"; }
.ft-list th.sorted.asc::after { content: " ▴"; }
.ft-list td {
  padding: 2px 4px;
  color: var(--ft-list-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  cursor: pointer;
}
.ft-list td.num { color: var(--ft-font-color); }
.ft-list tr:hover td { background: var(--ft-hover); }
.ft-list tr.selected td { background: var(--ft-selected-row); }

/* ------------------------------------------------------------------ diagram canvas */

.ft-canvas-host {
  position: absolute;
  inset: 0;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.ft-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  font-family: var(--ft-font);
}
.ft-canvas.ft-dragging { cursor: grabbing; }

.ft-canvas .stop-spouse { stop-color: var(--ft-spouse); }
.ft-canvas .stop-sibling { stop-color: var(--ft-sibling); }

.ft-child-line {
  stroke: var(--ft-child-line);
  stroke-width: 1;
  fill: none;
  transition: opacity 0.3s;
}
.ft-child-line.adopted { stroke-dasharray: 3 3; }
.ft-child-line.step { stroke-dasharray: 1 3; }
.ft-child-line.foster { stroke-dasharray: 3 4 0 4; stroke-linecap: round; }
.ft-bus-line { stroke: var(--ft-child-line); stroke-width: 1.2; fill: none; }

.ft-marriage .arc {
  fill: none;
  stroke: var(--ft-marriage);
  stroke-width: 2;
}
.ft-marriage.former .arc { stroke-dasharray: 4 4; }
.ft-marriage.former.was-current .arc { stroke-dasharray: none; }
.ft-marriage.former.was-current .end { display: none; }
.ft-marriage-year {
  font-size: 12px;
  fill: var(--ft-marriage-text);
}
.ft-marriage { transition: opacity 0.3s; }

.ft-node {
  cursor: pointer;
  transition: opacity 0.3s;
  outline: none;
}
.ft-node.role-primary { cursor: default; }
.ft-node .ft-shadow { fill: #000; fill-opacity: 0.4; }
.ft-node .ft-ring { fill: none; stroke: var(--ft-ring); stroke-width: 3; }
.ft-node .ft-star { fill: var(--ft-star); stroke: #fff; stroke-width: 1.5; }
.ft-node .ft-head, .ft-node .ft-body { fill: var(--ft-related); stroke: none; }
.ft-node.role-spouse .ft-head, .ft-node.role-spouse .ft-body { fill: var(--ft-spouse); }
.ft-node.role-sibling .ft-head, .ft-node.role-sibling .ft-body { fill: var(--ft-sibling); }
.ft-node.role-half-left .ft-head, .ft-node.role-half-left .ft-body { fill: url(#ft-half-left); }
.ft-node.role-half-right .ft-head, .ft-node.role-half-right .ft-body { fill: url(#ft-half-right); }

.ft-node.deceased .ft-head, .ft-node.deceased .ft-body { fill: none; stroke: var(--ft-related); stroke-width: 1; }
.ft-node.deceased.role-spouse .ft-head, .ft-node.deceased.role-spouse .ft-body { stroke: var(--ft-spouse); }
.ft-node.deceased.role-sibling .ft-head, .ft-node.deceased.role-sibling .ft-body { stroke: var(--ft-sibling); }
.ft-node.deceased.role-half-left .ft-head, .ft-node.deceased.role-half-left .ft-body { stroke: url(#ft-half-left); }
.ft-node.deceased.role-half-right .ft-head, .ft-node.deceased.role-half-right .ft-body { stroke: url(#ft-half-right); }

.ft-node:hover .ft-head, .ft-node:hover .ft-body,
.ft-node:focus-visible .ft-head, .ft-node:focus-visible .ft-body { fill: var(--ft-related-hover); }
.ft-node.role-spouse:hover .ft-head, .ft-node.role-spouse:hover .ft-body { fill: var(--ft-spouse-hover); }
.ft-node.role-sibling:hover .ft-head, .ft-node.role-sibling:hover .ft-body,
.ft-node.role-half-left:hover .ft-head, .ft-node.role-half-left:hover .ft-body,
.ft-node.role-half-right:hover .ft-head, .ft-node.role-half-right:hover .ft-body { fill: var(--ft-sibling-hover); }
.ft-node.deceased:hover .ft-head, .ft-node.deceased:hover .ft-body { fill-opacity: 0.5; }

.ft-node .ft-more { fill: var(--ft-sibling); }
.ft-node.role-spouse .ft-more { fill: var(--ft-spouse); }
.ft-node.role-related .ft-more { fill: var(--ft-related); }
.ft-node .ft-more-arc { fill: none; stroke: var(--ft-sibling); stroke-width: 1; }
.ft-node.role-spouse .ft-more-arc { stroke: var(--ft-spouse); }
.ft-node.role-related .ft-more-arc { stroke: var(--ft-related); }

.ft-node .ft-label {
  font-size: 9px;
  fill: var(--ft-label);
  text-anchor: end;
  pointer-events: none;
}
.ft-node .ft-hit { fill: transparent; }
.ft-node.selected .ft-label { font-weight: 700; }
.ft-node .ft-photo-frame { fill: none; stroke: var(--ft-related); stroke-width: 1; }
.ft-node .ft-photo-frame.primary { stroke-width: 1.5; }
.ft-node.role-spouse .ft-photo-frame { stroke: var(--ft-spouse); }
.ft-node.role-sibling .ft-photo-frame { stroke: var(--ft-sibling); }

.ft-node.future, .ft-child-line.future, .ft-marriage.future, .ft-bus-line.future { opacity: 0.15; }

/* Family.show анимаци: бусад зангилаа аажмаар тодорно */
.ft-nodes.ft-fading .ft-node:not(.ft-anchor),
.ft-links.ft-fading, .ft-marriages.ft-fading { opacity: 0; transition: opacity 0.5s; }
.ft-nodes .ft-node, .ft-links, .ft-marriages { transition: opacity 0.5s; }

/* Хайрцагт загвар (үр удам / өвөг дээдэс) */
.ft-box .ft-box-bg { fill: var(--ft-box-bg); stroke: var(--ft-box-border); stroke-width: 1; }
.ft-box.primary .ft-box-bg { stroke: var(--ft-related); stroke-width: 2; }
.ft-box.selected .ft-box-bg { stroke: var(--ft-marriage); stroke-width: 2; }
.ft-box .ft-box-stripe { fill: #8c8c8c; }
.ft-box.male .ft-box-stripe { fill: var(--ft-spouse); }
.ft-box.female .ft-box-stripe { fill: #d9568a; }
.ft-box .ft-box-name { font-size: 10.5px; font-weight: 700; fill: var(--ft-box-text); }
.ft-box .ft-box-years { font-size: 9px; fill: var(--ft-box-text); opacity: 0.75; }
.ft-box.deceased .ft-box-bg { stroke-dasharray: 3 2; }
.ft-box:hover .ft-box-bg { filter: brightness(1.15); }
.ft-box-style .ft-marriage .arc { stroke-width: 1.4; }

/* Level of detail — алслахад нарийн хэсгийг нуух */
.ft-canvas.lod-low .ft-label, .ft-canvas.lod-low .ft-marriage-year, .ft-canvas.lod-low .ft-more { display: none; }
.ft-canvas.lod-min .ft-shadow, .ft-canvas.lod-min .ft-child-line { display: none; }

.ft-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  max-width: 300px;
  padding: 8px 10px;
  background: var(--ft-tooltip-bg);
  color: #fff;
  border: 1px solid var(--ft-border);
  border-radius: 6px;
  box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.5);
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.ft-tooltip.visible { opacity: 1; }

/* Сонгосон хүний товчлуурууд: дээр — аав/ээж, доор — хүүхэд, баруун дээд — засах.
   Хулганатай төхөөрөмжид зөвхөн хүн эсвэл товчнууд дээр хулгана байхад (.hot) гарна; мэдрэгч дэлгэцэнд үргэлж. */
.ft-node-actions { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 15; }
.ft-node-actions[hidden], .ft-node-actions [hidden] { display: none !important; }
.ft-qa, .ft-qa-edit { position: absolute; left: 0; top: 0; pointer-events: auto; }
.ft-qa { display: flex; flex-direction: column; align-items: center; }
.ft-qa-top { flex-direction: column-reverse; }
.ft-qa-main, .ft-qa-menu button, .ft-qa-edit {
  font: 600 12px/1 var(--ft-font);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}
.ft-qa-main {
  padding: 6px 12px;
  border: 1px solid transparent;
  background: var(--ft-primary);
  color: var(--ft-primary-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
.ft-qa-main:hover, .ft-qa.open .ft-qa-main { background: var(--ft-primary-hover); }
.ft-qa-menu { display: none; gap: 6px; margin: 6px 0; }
.ft-qa.open .ft-qa-menu { display: flex; }
@media (hover: hover) { .ft-qa-top:hover .ft-qa-menu { display: flex; } }
.ft-qa-menu button {
  padding: 7px 14px;
  border: 1px solid var(--ft-border-strong);
  background: var(--ft-surface);
  color: var(--ft-font-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.ft-qa-menu button:hover { background: var(--ft-primary); border-color: var(--ft-primary); color: #fff; }
.ft-qa-edit {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--ft-border-strong);
  background: var(--ft-surface);
  color: var(--ft-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
.ft-qa-edit:hover { background: var(--ft-primary); border-color: var(--ft-primary); color: #fff; }
.ft-qa-main:focus-visible, .ft-qa-menu button:focus-visible, .ft-qa-edit:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ft-focus); }
@media (hover: hover) and (pointer: fine) {
  .ft-node-actions .ft-qa, .ft-node-actions .ft-qa-edit { opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0s linear 0.15s; }
  .ft-node-actions.hot .ft-qa, .ft-node-actions.hot .ft-qa-edit, .ft-node-actions .ft-qa.open,
  .ft-node-actions .ft-qa:focus-within, .ft-node-actions .ft-qa-edit:focus-visible { opacity: 1; visibility: visible; transition: opacity 0.15s; }
}
.ft-tooltip img { width: 70px; height: 85px; object-fit: cover; box-shadow: 4px 4px 7px rgba(0, 0, 0, 0.6); }
.ft-tip-placeholder { width: 60px; height: 75px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
.ft-tip-name { font-weight: 700; font-size: 13px; }
.ft-tip-dates { color: #cfcfcf; margin-bottom: 4px; }
.ft-tooltip div > div { max-width: 170px; }

/* Диаграмын давхарга: горим, гулсуур */
.ft-overlay-box {
  position: absolute;
  z-index: 5;
  background: var(--ft-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--ft-border);
  border-radius: 12px;
  padding: 8px;
  color: var(--ft-font-color);
  opacity: 0.55;
  transition: opacity 0.3s;
  font-size: 11.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.ft-overlay-box:hover, .ft-overlay-box:focus-within, .ft-overlay-box.active { opacity: 1; }
.ft-overlay-box.top-left { top: 12px; left: 12px; opacity: 0.92; }
.ft-overlay-box.top-right { top: 12px; right: 12px; opacity: 0.92; }
.ft-overlay-box.bottom-left { bottom: 15px; left: 15px; }
.ft-overlay-box.bottom-right { bottom: 15px; right: 15px; }

.ft-vslider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 52px;
}
.ft-vslider input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 22px;
  height: 90px;
  accent-color: var(--ft-primary);
}
.ft-vslider .value { font-weight: 700; font-size: 12px; }
.ft-vslider .caption { color: var(--ft-muted); }

.ft-seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--ft-surface-2);
  border: 1px solid var(--ft-border);
  border-radius: 9px;
}
.ft-seg button {
  background: transparent;
  border: 0;
  color: var(--ft-font-color);
  padding: 5px 10px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.ft-seg button:hover { background: var(--ft-hover); }
.ft-seg button.on { background: var(--ft-primary); color: var(--ft-primary-text); }
.ft-seg button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ft-focus); }
.ft-toolbar-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ft-toolbar-row select { width: auto; min-height: 28px; font-size: 11.5px; padding: 2px 26px 2px 8px; background-position: right 7px center; background-size: 12px; border-radius: 7px; }
.ft-toolbar-row label { color: var(--ft-font-color); font-weight: 600; }

.ft-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ------------------------------------------------------------------ overlays (Family Data, Photos & Stories) */

.ft-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: 12px;
  overflow: hidden;
  animation: ft-fade 0.3s ease-out;
}
@keyframes ft-fade { from { opacity: 0; } to { opacity: 1; } }
.ft-overlay-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--ft-header-bg);
  color: var(--ft-header-font);
  font-size: 18px;
  font-weight: 700;
}
.ft-overlay-header .ft-spacer { flex: 1; }
.ft-overlay-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}
.ft-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
  min-height: 100%;
}
.ft-grid-photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.ft-datagrid {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ft-datagrid th {
  position: sticky;
  top: 0;
  background: var(--ft-surface-3);
  color: var(--ft-font-color);
  font-weight: 700;
  text-align: left;
  padding: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.ft-datagrid td {
  padding: 2px 4px;
  border-bottom: 1px solid var(--ft-border);
}
.ft-datagrid td input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ft-font-color);
  font: inherit;
  padding: 3px 4px;
  border-radius: 2px;
}
.ft-datagrid td input:focus { background: var(--ft-input-bg); color: var(--ft-input-text); border-color: var(--ft-primary); box-shadow: 0 0 0 3px var(--ft-focus); outline: none; }
.ft-datagrid td input:read-only { cursor: default; }

.ft-stat-card {
  background: var(--ft-surface-2);
  border: 1px solid var(--ft-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.ft-stat-card h4 { font-size: 13px; margin: 0 0 6px; font-weight: 700; }
.ft-tag-cloud { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.ft-tag-cloud button { background: none; border: 0; color: var(--ft-list-text); cursor: pointer; padding: 0; font-family: inherit; }
.ft-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.ft-bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; font-size: 11px; cursor: pointer; height: 100%; }
.ft-bars .bar span.fill { width: 100%; background: var(--ft-related); border-radius: 3px 3px 0 0; min-height: 2px; }

.ft-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-thumbs button {
  width: 65px;
  height: 65px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--ft-surface-3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.ft-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.ft-thumbs button.on { border-color: var(--ft-primary); }
.ft-thumbs button .primary-mark { position: absolute; top: 0; right: 3px; color: #ffd24a; font-size: 14px; }
.ft-big-photo { max-width: 100%; max-height: 360px; object-fit: contain; box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.55); }
.ft-story { line-height: 1.55; font-size: 14px; white-space: pre-wrap; }
.ft-dropzone {
  border: 2px dashed var(--ft-border);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  color: var(--ft-muted);
}
.ft-dropzone.dragover { border-color: var(--ft-related); color: var(--ft-related); }

/* ------------------------------------------------------------------ AI assistant */

.ft-assistant {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--ft-header-bg);
  border-left: 1px solid var(--ft-border);
  box-shadow: -6px 0 18px rgba(0, 0, 0, 0.45);
  animation: ft-slide-in 0.25s ease-out;
  color: #f0f0f0;
}
.skin-silver .ft-assistant { color: #fff; }
@keyframes ft-slide-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.ft-assistant-header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); font-weight: 700; font-size: 15px; }
.ft-assistant-messages { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ft-msg { max-width: 92%; padding: 8px 10px; border-radius: 10px; line-height: 1.45; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.ft-msg.user { align-self: flex-end; background: var(--ft-primary); color: #fff; border-bottom-right-radius: 3px; }
.ft-msg.assistant { align-self: flex-start; background: rgba(255, 255, 255, 0.08); border-bottom-left-radius: 3px; }
.ft-msg.error { background: rgba(224, 91, 91, 0.2); }
.ft-proposal { border: 1px solid var(--ft-marriage); border-radius: 8px; padding: 8px; margin-top: 6px; background: rgba(144, 192, 144, 0.08); }
.ft-proposal ul { margin: 4px 0 8px 16px; padding: 0; }
.ft-proposal .status { font-weight: 700; color: var(--ft-ok); }
.ft-assistant-input { border-top: 1px solid rgba(255, 255, 255, 0.15); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ft-assistant-input textarea { width: 100%; min-height: 60px; max-height: 160px; border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 13px; resize: vertical; }
.ft-assistant-input .row { display: flex; gap: 6px; align-items: center; }
.ft-assistant .ft-progress { color: rgba(255, 255, 255, 0.75); }
.ft-progress { font-size: 12px; color: var(--ft-muted); display: flex; align-items: center; gap: 8px; }
.ft-spinner { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: var(--ft-related); border-radius: 50%; animation: ft-spin 0.8s linear infinite; }
@keyframes ft-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ toasts, dialogs */

.ft-toasts {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  pointer-events: none;
}
.ft-toast {
  pointer-events: auto;
  background: var(--ft-surface);
  color: var(--ft-font-color);
  border: 1px solid var(--ft-border);
  border-left: 4px solid var(--ft-ok);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  max-width: min(520px, 92vw);
  box-shadow: var(--ft-shadow);
  animation: ft-fade 0.2s;
}
.ft-toast.error { border-left-color: var(--ft-danger); }
.ft-toast.warn { border-left-color: var(--ft-sibling); }

.ft-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ft-modal {
  width: min(480px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: var(--ft-shadow);
  animation: ft-slide 0.18s ease-out;
}
.ft-modal h3 { font-size: 17px; margin: 0 0 10px; }

/* ------------------------------------------------------------------ cards (dashboard) */

.ft-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.ft-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  text-decoration: none;
  color: var(--ft-font-color);
  transition: transform 0.15s, box-shadow 0.15s;
}
.ft-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); color: var(--ft-font-color); }
.ft-card h3 { font-size: 17px; margin: 0; font-weight: 700; }
.ft-card .meta { color: var(--ft-muted); font-size: 12px; }
.ft-badge {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  background: rgba(240, 100, 35, 0.2);
  color: var(--ft-related);
  border: 1px solid rgba(240, 100, 35, 0.5);
}

.ft-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px 0;
}
.ft-hero h1 { font-family: "Segoe UI Light", var(--ft-font); font-weight: 300; font-size: clamp(28px, 4vw, 44px); margin: 0 0 10px; }
.ft-hero p { font-size: 16px; line-height: 1.55; color: var(--ft-muted); }
.ft-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.ft-feature { padding: 12px 14px; }
.ft-feature h4 { margin: 0 0 4px; font-size: 14px; color: var(--ft-related); }
.ft-feature p { margin: 0; font-size: 13px; color: var(--ft-font-color); opacity: 0.85; }

/* ------------------------------------------------------------------ mobile */

.ft-only-mobile { display: none !important; }

@media (max-width: 767.98px) {
  .ft-only-mobile { display: inherit !important; }
  .ft-only-desktop { display: none !important; }
  .ft-header { height: 46px; padding: 0 10px; gap: 8px; }
  .ft-brand { font-size: 20px; }
  .ft-header-tree { max-width: 38vw; font-size: 13px; }
  .ft-menubar { padding: 2px 6px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .ft-menubar::-webkit-scrollbar { display: none; }
  .ft-menubar > *, .ft-menubar .ft-menu > button { flex: 0 0 auto; white-space: nowrap; }
  .ft-menubar .ft-menu-popup { position: fixed; top: auto; left: 8px; right: 8px; }
  .ft-vslider { width: 40px; }
  .ft-vslider input[type="range"] { height: 64px; }
  .ft-overlay-box { padding: 5px; }
  .ft-user-name { display: none; }
  .ft-body { padding: 0; }
  .ft-diagram { border-radius: 0; border-left: 0; border-right: 0; }
  .ft-details {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 72dvh;
    z-index: 35;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(calc(100% - 118px));
    transition: transform 0.3s ease;
  }
  .ft-details.expanded { transform: none; }
  .ft-sheet-handle {
    display: block !important;
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: var(--ft-border-strong);
    margin: 7px auto 0;
    border: 0;
    padding: 0;
  }
  .ft-person-header { padding: 6px 12px 8px; font-size: 16px; }
  .ft-overlay-box.bottom-left { bottom: 130px; left: 10px; }
  .ft-overlay-box.bottom-right { bottom: 130px; right: 10px; }
  .ft-overlay-box.top-left { top: 8px; left: 8px; right: 8px; }
  .ft-overlay-box.top-right { display: none; }
  .ft-grid-2, .ft-grid-photos { grid-template-columns: minmax(0, 1fr); }
  .ft-overlay { position: fixed; border-radius: 0; z-index: 60; }
  .ft-assistant { position: fixed; width: 100%; z-index: 70; }
  .ft-hero { grid-template-columns: minmax(0, 1fr); padding: 8px 0; }
  .ft-btn { --h: 34px; font-size: 13px; }
  .ft-btn.black { min-width: 0; }
  .ft-page { padding: 12px 16px 40px; }
}

.ft-sheet-handle { display: none; }

@media print {
  .ft-header, .ft-menubar, .ft-details, .ft-overlay-box { display: none !important; }
  .ft-diagram { border: 0; }
}

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

/* FocusOnNavigate гарчигт фокус шилжүүлдэг (дэлгэц уншигчид) — харагдах хүрээг нуух */
h1:focus, h1:focus-visible { outline: none; }
