.tm-page {
  min-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tm-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.2rem;
}

.tm-hero {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-top: -0.35rem;
  margin-bottom: 1.45rem;
}

.tm-hero h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
}

.tm-hero p {
  margin: 0.45rem 0 0;
}

.tm-controls {
  display: grid;
  grid-template-columns: minmax(320px, 2fr) minmax(190px, 1fr) minmax(190px, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.tm-controls input,
.tm-controls select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(128, 83, 39, 0.28);
  background: #fffdf8;
  padding: 0.58rem 0.65rem;
}

.tm-controls #tm-search {
  border-radius: 10px;
  padding: 0.74rem 0.86rem;
  border-color: rgba(128, 83, 39, 0.26);
  box-shadow: none;
  font-size: 1rem;
}

.tm-controls .tm-search-wrap {
  position: relative;
  z-index: 20;
  grid-column: 1 / -1;
  min-width: 0;
  scroll-margin-top: 4.5rem;
}
.tm-search-hint {
  margin: 0.38rem 0.2rem 0;
  color: #62452b;
  font-size: 0.82rem;
  line-height: 1.35;
}
.tm-search-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  max-height: 17rem;
  max-height: min(34svh, 17rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem;
  border: 1px solid rgba(128, 83, 39, 0.32);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 10px 26px rgba(48, 31, 16, 0.2);
}
.tm-search-suggestions[hidden] { display: none !important; }
.tm-search-suggestion {
  appearance: none;
  box-sizing: border-box;
  display: grid;
  width: 100%;
  gap: 0.18rem;
  padding: 0.64rem 0.72rem;
  border: 0;
  border-radius: 8px;
  color: #382615;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.tm-search-suggestion + .tm-search-suggestion { border-top: 1px solid rgba(128, 83, 39, 0.12); }
.tm-search-suggestion strong { font-size: 0.96rem; line-height: 1.3; }
.tm-search-suggestion span { color: #62452b; font-size: 0.82rem; line-height: 1.35; }
.tm-search-suggestion:hover,
.tm-search-suggestion:focus-visible,
.tm-search-suggestion[aria-selected="true"] { background: #f3e8cb; outline: none; }
.tm-search-suggestion:focus-visible { box-shadow: inset 0 0 0 2px #9a7439; }
.tm-search-empty {
  padding: 0.75rem;
  color: #62452b;
  font-size: 0.88rem;
}

.tm-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.tm-stat {
  background: rgba(255, 251, 236, 0.7);
  border: 1px solid rgba(128, 83, 39, 0.2);
  padding: 0.85rem;
  text-align: center;
}

.tm-stat strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.tm-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tm-panel {
  background: rgba(255, 251, 236, 0.7);
  border: 1px solid rgba(128, 83, 39, 0.2);
}

.tm-people-panel {
  display: none;
  padding: 0.9rem;
}

.tm-people-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.tm-people-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.tm-people-head p {
  margin: 0.22rem 0 0;
  font-size: 0.9rem;
  color: rgba(62, 38, 17, 0.82);
}

.tm-people-cap {
  border: 1px solid rgba(128, 83, 39, 0.24);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.78rem;
  background: rgba(255, 252, 242, 0.82);
  color: #7f3f1f;
}

.tm-people-wrap {
  display: grid;
  gap: 0.55rem;
  max-height: calc((4.9rem * 5) + (0.55rem * 4));
  overflow: auto;
  padding-right: 0.15rem;
}

.tm-person-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(128, 83, 39, 0.15);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 252, 0.95), rgba(248, 238, 214, 0.84));
  text-align: left;
  cursor: pointer;
}

.tm-person-card:hover,
.tm-person-card:focus-visible {
  border-color: rgba(128, 83, 39, 0.3);
  transform: translateY(-1px);
}

.tm-person-card.active {
  border-color: rgba(151, 97, 46, 0.45);
  box-shadow: 0 12px 24px rgba(113, 75, 34, 0.11);
  background: linear-gradient(180deg, rgba(255, 249, 234, 0.98), rgba(237, 215, 170, 0.82));
}

.tm-person-main {
  min-width: 0;
}

.tm-person-main strong {
  display: block;
  font-size: 1rem;
  color: #4f2d10;
}

.tm-person-meta {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.82rem;
  color: rgba(62, 38, 17, 0.78);
  line-height: 1.45;
}

.tm-person-generation {
  border-radius: 999px;
  border: 1px solid rgba(128, 83, 39, 0.2);
  padding: 0.28rem 0.58rem;
  font-size: 0.78rem;
  background: rgba(255, 253, 246, 0.95);
  color: #7f3f1f;
  white-space: nowrap;
}

.tm-empty {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 252, 244, 0.76);
  border: 1px dashed rgba(128, 83, 39, 0.24);
}

.tm-detail {
  padding: 0.9rem;
}

.tm-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: 1rem;
  align-items: start;
}

.tm-detail-main,
.tm-detail-tree {
  min-width: 0;
}

.tm-detail-main {
  padding-right: 0.95rem;
  border-right: 1px solid rgba(128, 83, 39, 0.18);
}

.tm-detail-tree {
  padding-left: 0.15rem;
}

.tm-detail-tree .tm-tree {
  margin-top: 0;
  height: 100%;
  padding: 0.8rem;
  background: linear-gradient(180deg, rgba(255, 254, 249, 0.96), rgba(245, 235, 210, 0.78));
}

.tm-detail-head {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.tm-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.tm-title-row h2 {
  margin: 0;
}

.tm-title-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.tm-propose-edit,
.tm-add-child-trigger,
.tm-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(128, 83, 39, 0.26);
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(244, 229, 195, 0.92));
  color: #7f3f1f;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(92, 61, 26, 0.08);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.tm-propose-edit:hover,
.tm-propose-edit:focus-visible,
.tm-add-child-trigger:hover,
.tm-add-child-trigger:focus-visible,
.tm-share:hover,
.tm-share:focus-visible {
  color: #9d4f2a;
  border-color: rgba(128, 83, 39, 0.38);
  transform: translateY(-1px);
}

.tm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(38, 24, 10, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.tm-modal-backdrop[hidden] {
  display: none;
}

.tm-modal {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fffdf8;
  border-radius: 14px;
  border: 1px solid rgba(128, 83, 39, 0.25);
  box-shadow: 0 24px 48px rgba(40, 24, 8, 0.28);
  padding: 1.1rem 1.2rem 1.3rem;
}

.tm-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.35rem;
}

.tm-modal-head h2 {
  margin: 0;
}

.tm-modal-close {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(128, 83, 39, 0.26);
  background: rgba(255, 252, 244, 0.9);
  color: #7f3f1f;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.tm-modal-close:hover,
.tm-modal-close:focus-visible {
  color: #9d4f2a;
  border-color: rgba(128, 83, 39, 0.4);
}

.tm-modal-sub {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  color: rgba(62, 38, 17, 0.82);
}

.tm-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
}

.tm-admin-lock {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(128, 83, 39, 0.24);
  background: rgba(255, 252, 244, 0.5);
  color: rgba(127, 63, 31, 0.75);
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0.7;
}

.tm-admin-lock:hover,
.tm-admin-lock:focus-visible {
  transform: translateY(-50%);
}

.tm-admin-lock:focus-visible {
  opacity: 1;
  border-color: rgba(128, 83, 39, 0.4);
}

.tm-admin-login[hidden] {
  display: none;
}

.tm-admin-login {
  display: grid;
  gap: 0.7rem;
  max-width: 320px;
}

.tm-admin-pending-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.tm-admin-pending-head h3 {
  margin: 0;
}

.tm-admin-pending-list {
  display: grid;
  gap: 0.7rem;
}

.tm-pending-card {
  border: 1px solid rgba(128, 83, 39, 0.2);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 252, 244, 0.75);
}

.tm-pending-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.tm-pending-date {
  font-size: 0.78rem;
  color: rgba(62, 38, 17, 0.7);
  white-space: nowrap;
}

.tm-pending-changes {
  margin: 0 0 0.45rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

.tm-pending-changes li {
  margin-bottom: 0.15rem;
}

.tm-pending-meta {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  color: rgba(62, 38, 17, 0.78);
}

.tm-photo,
.tm-photo-fallback {
  width: 124px;
  height: 124px;
  border-radius: 10px;
  border: 1px solid rgba(128, 83, 39, 0.22);
  object-fit: cover;
  background: #f5ebd0;
}

.tm-photo-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #70431d;
}

.tm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0;
}

.tm-chip {
  border: 1px solid rgba(128, 83, 39, 0.3);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.8rem;
  background: rgba(255, 252, 242, 0.85);
}

.tm-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.tm-card {
  border: 1px solid rgba(128, 83, 39, 0.2);
  padding: 0.6rem;
  background: rgba(255, 252, 244, 0.72);
}

.tm-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}

.tm-description-text {
  margin: 1.5rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(128, 83, 39, 0.3);
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(62, 38, 17, 0.88);
  white-space: pre-line;
}

.tm-tree {
  margin-top: 0.8rem;
  border: 1px solid rgba(128, 83, 39, 0.2);
  background: rgba(255, 252, 244, 0.72);
  padding: 0.6rem;
}

.tm-tree h3 {
  margin: 0 0 0.55rem;
}

.tm-tree-list {
  display: grid;
  gap: 0.5rem;
}

.tm-tree-node {
  position: relative;
  border-left: 3px solid rgba(128, 83, 39, 0.35);
  padding: 0.5rem 0.65rem 0.5rem 0.85rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 235, 205, 0.68));
}

.tm-tree-node::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.95rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9d6331;
  border: 2px solid #f7ecd2;
}

.tm-tree-node-center {
  border-left-color: rgba(95, 128, 39, 0.42);
  background: linear-gradient(180deg, rgba(251, 255, 243, 0.92), rgba(233, 243, 207, 0.75));
}

.tm-tree-node-center::before {
  background: #6d8a2d;
}

.tm-tree-node-descendant {
  border-left-color: rgba(62, 116, 85, 0.34);
  background: linear-gradient(180deg, rgba(245, 255, 252, 0.94), rgba(220, 240, 231, 0.76));
}

.tm-tree-node-descendant::before {
  background: #3b7d58;
}

.tm-tree-node strong {
  display: inline-block;
  min-width: 7.2rem;
}

.tm-tree-meta {
  font-size: 0.84rem;
  color: rgba(62, 38, 17, 0.9);
  margin-top: 0.18rem;
}

.tm-person-link {
  border: none;
  background: transparent;
  color: #7f3f1f;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.tm-person-link:hover,
.tm-person-link:focus-visible {
  color: #a14d27;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none;
}

.tm-list {
  margin: 0;
  padding-left: 1rem;
}

.tm-list li { margin-bottom: 0.2rem; }

.tm-add-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.tm-field {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem;
  border: 1px solid rgba(128, 83, 39, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 252, 0.72);
}

.tm-field span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(96, 59, 26, 0.92);
}

.tm-field input[readonly] {
  background: rgba(246, 240, 223, 0.92);
  color: rgba(78, 49, 22, 0.8);
}

.tm-field-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

.tm-field-inline input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.tm-field-inline span {
  text-transform: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
}

.tm-add-grid input,
.tm-add-grid select,
.tm-add-grid textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(128, 83, 39, 0.28);
  background: #fffdf8;
  padding: 0.62rem 0.7rem;
}

.tm-add-grid .full {
  grid-column: 1 / -1;
}

.tm-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.15rem;
  flex-wrap: wrap;
}

.tm-add-note {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-left: 3px solid rgba(128, 83, 39, 0.28);
  background: rgba(255, 252, 244, 0.84);
  font-size: 0.9rem;
  color: rgba(62, 38, 17, 0.84);
}

.tm-post-block {
  margin-top: 0.4rem;
}

.tm-post-meta {
  margin-top: 0.45rem;
  padding: 0.5rem 0.65rem;
  border-left: 3px solid rgba(128, 83, 39, 0.3);
  background: rgba(255, 252, 244, 0.72);
}

.tm-post-meta p {
  margin: 0.18rem 0;
}

@media (max-width: 1100px) {
  .tm-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-controls #tm-search {
    grid-column: 1 / -1;
  }

  .tm-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-layout {
    grid-template-columns: 1fr;
  }

  .tm-table-wrap {
    max-height: 48vh;
  }
}

@media (max-width: 700px) {
  .tm-controls {
    grid-template-columns: 1fr 1fr;
  }

  .tm-controls #tm-search {
    grid-column: 1 / -1;
  }

  .tm-detail-head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .tm-detail-layout {
    grid-template-columns: 1fr;
  }

  .tm-detail-main {
    padding-right: 0;
    border-right: none;
  }

  .tm-detail-tree {
    padding-left: 0;
  }

  .tm-title-row {
    width: 100%;
    align-items: center;
  }

  .tm-cols {
    grid-template-columns: 1fr;
  }

  .tm-add-grid {
    grid-template-columns: 1fr;
  }
}

/* Vorschlaege & Credit (17.11.2026) */
.tm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tm-privacy-note { font-size: 0.85em; opacity: 0.8; }
.tm-pending-field { display: flex; gap: 0.5em; align-items: baseline; cursor: pointer; }
.tm-pending-field input { margin: 0; }
.tm-pending-from { opacity: 0.6; text-decoration: line-through; }
.tm-pending-to { font-weight: 600; color: #2f7d32; }
.tm-pending-linked { outline: 3px solid #c9a227; outline-offset: 2px; }
.tm-credits { margin-top: 1em; padding-top: 0.75em; border-top: 1px dashed rgba(127, 127, 127, 0.4); font-size: 0.85em; }
.tm-credit { margin: 0 0 0.5em; }
.tm-credit-contact, .tm-credit-fields, .tm-credit-approved { opacity: 0.75; }
.tm-link-button { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 0.25em !important; color: inherit; text-decoration: underline; font-size: 0.85em; cursor: pointer; opacity: 0.8; height: auto !important; line-height: 1.4 !important; text-transform: none !important; letter-spacing: 0 !important; }
.tm-pending-lineage { display: block; font-size: 0.85em; opacity: 0.75; margin: 0.15em 0 0.4em; }
.tm-pending-warning { background: #fff4d6; border-left: 4px solid #c9a227; padding: 0.5em 0.75em; margin: 0.5em 0; font-size: 0.85em; color: #4a3b00; }
.tm-pending-warning ul { margin: 0.3em 0 0 1.2em; }
.tm-pending-notify { font-size: 0.85em; margin: 0.4em 0; }
.tm-decided-title { margin: 1.5em 0 0.5em; font-size: 1em; }
.tm-decided-card { opacity: 0.92; }
.tm-status { display: inline-block; padding: 0 0.5em; border-radius: 3px; font-weight: 600; background: #e8e8e8; }
.tm-status-approved, .tm-status-partial { background: #e3f4e5; color: #14532d; }
.tm-status-rejected { background: #fde8e8; color: #7f1d1d; }
.tm-status-reverted { background: #eceff3; color: #374151; }
.tm-ask-box { margin-top: 0.75em; }
.tm-ask-box textarea { width: 100%; font-family: inherit; font-size: 0.9em; }

/* Frauen (Töchter / Schwestern) in eigener Farbe – 17.11.2026 */
.tm-female,
.tm-person-link.tm-female,
.tm-detail-head h2.tm-female { color: #8b2f5c !important; }
.tm-person-link.tm-female { text-decoration-color: rgba(139, 47, 92, 0.45); }
.tm-person-card.tm-female { border-left: 3px solid #b5577f; }
.tm-female-mark { color: #b5577f; font-size: 0.85em; margin-left: 0.15em; }

/* Anleitung beim Einstieg von der Startseite (?shto=1) */
.tm-shto-guide {
  margin: 0 0 1rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 248, 222, 0.9);
  border: 1px solid rgba(127, 63, 31, 0.25);
  border-left: 4px solid #7f3f1f;
  border-radius: 6px;
  color: #4f2d10;
  font-size: 0.95em;
}
.tm-shto-guide strong { font-family: 'Cinzel', Georgia, serif; letter-spacing: 0.04em; }
.tm-shto-guide ol { margin: 0.4rem 0 0 1.2rem; padding: 0; }
.tm-shto-guide li { margin: 0.15rem 0; }

/* Teilen + eigener Link je Person (17.11.2026) */
.tm-share { display: inline-grid; place-items: center; }
.tm-permalink { margin: 0.35rem 0 0.6rem; font-size: 0.85em; word-break: break-all; }
.tm-permalink a { color: #7f3f1f; text-decoration: none; border-bottom: 1px dotted rgba(127, 63, 31, 0.5); }
.tm-permalink a:hover { border-bottom-style: solid; }
.tm-toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 2000;
  max-width: calc(100vw - 2rem); padding: 0.7rem 1.1rem; border-radius: 6px;
  background: #3d220c; color: #fff3d6; font-size: 0.9rem; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.tm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Foto hochladen (17.11.2026) */
.tm-photo-upload input[type="file"] { padding: .4rem; background: #fffdf6; border: 1px dashed rgba(127, 63, 31, .4); border-radius: 6px; width: 100%; }
.tm-photo-hint { display: block; margin-top: .3rem; font-size: .8rem; color: rgba(79, 45, 16, .7); }
.tm-photo-preview { display: block; margin-top: .5rem; max-width: 140px; max-height: 140px; border-radius: 6px; border: 1px solid rgba(127, 63, 31, .25); object-fit: cover; }
.tm-copy { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; margin-left: .25rem; padding: 0; vertical-align: middle; border-radius: 6px; border: 1px solid rgba(127, 63, 31, .3) !important; background: #fffaf0 !important; color: #7f3f1f !important; box-shadow: none !important; cursor: pointer; }
.tm-copy:hover { background: #f6ead0 !important; }
.tm-copy.is-done { background: #e3f4e5 !important; color: #14532d !important; border-color: rgba(20, 83, 45, .4) !important; }

/* Schnell-Eintrag: mehrere Kinder auf einmal (22.11.2026) */
.tm-photo-preview[hidden] { display: none !important; }
.tm-photo-preview:not([src]) { display: none; }
.tm-quick-parent { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; padding: .75rem .9rem; border-radius: 12px; background: #f6ead0; border: 1px solid rgba(127, 63, 31, .22); }
.tm-quick-parent-label { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(96, 59, 26, .85); }
.tm-quick-parent strong { font-size: 1.1rem; color: #3d220c; }
.tm-quick-parent small { color: rgba(79, 45, 16, .7); }
.tm-quick-rows { display: grid; gap: .7rem; }
.tm-quick-row [hidden] { display: none !important; }
.tm-quick-row { position: relative; display: grid; grid-template-columns: minmax(7rem, 1fr) auto 5.2rem auto 5.2rem; gap: .6rem; align-items: end; margin: 0; padding: .8rem 2.6rem .8rem .9rem; border: 1px solid rgba(128, 83, 39, .2); border-radius: 12px; background: rgba(255, 255, 252, .85); min-width: 0; }
.tm-quick-row .tm-field { padding: 0; border: 0; background: none; }
.tm-quick-row .tm-quick-married { grid-column: 1 / -1; }
.tm-quick-num { position: absolute; top: -.65rem; left: .8rem; padding: 0 .45rem; font-size: .75rem; font-weight: 700; color: #7f3f1f; background: #fffaf0; border-radius: 999px; border: 1px solid rgba(127, 63, 31, .25); }
.tm-quick-seg { display: inline-flex; border: 1px solid rgba(128, 83, 39, .3); border-radius: 999px; overflow: hidden; background: #fffdf8; align-self: end; }
.tm-quick-seg label { display: block; margin: 0; cursor: pointer; }
.tm-quick-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tm-quick-seg span { display: block; padding: .55rem .65rem; font-size: .88rem; font-weight: 600; color: #4f2d10; white-space: nowrap; }
.tm-quick-seg input:checked + span { background: #7f3f1f; color: #fff7e6; }
.tm-quick-seg input:focus-visible + span { outline: 2px solid #c58a2b; outline-offset: -2px; }
.tm-quick-remove { position: absolute; top: .45rem; right: .45rem; width: 1.9rem; height: 1.9rem; padding: 0; border-radius: 50%; border: 1px solid rgba(127, 63, 31, .3) !important; background: #fffaf0 !important; color: #7f3f1f !important; box-shadow: none !important; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.tm-quick-form > .tm-field { grid-column: span 2; }
.tm-quick-more .tm-quick-add { width: 100%; border-style: dashed !important; }
.tm-quick-extra { border: 1px solid rgba(128, 83, 39, .2); border-radius: 12px; padding: .6rem .9rem; background: rgba(255, 255, 252, .6); }
.tm-quick-extra summary { cursor: pointer; font-weight: 700; color: #7f3f1f; padding: .2rem 0; }
.tm-quick-extra[open] summary { margin-bottom: .7rem; }
.tm-quick-extra .tm-add-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tm-photo-upload > label { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(96, 59, 26, .92); }
@media (max-width: 720px) {
  .tm-quick-form > .tm-field { grid-column: 1 / -1; }
  .tm-quick-row { grid-template-columns: 1fr 1fr; padding-right: .9rem; padding-top: 1.1rem; }
  .tm-quick-row .tm-quick-name { grid-column: 1 / -1; padding-right: 2rem; }
  .tm-quick-seg { width: 100%; }
  .tm-quick-seg label { flex: 1; text-align: center; }
  .tm-quick-seg span { padding: .6rem .4rem; }
  .tm-quick-extra .tm-add-grid { grid-template-columns: 1fr; }
}

/* Lisi i Gjeneratës, Propozo ndryshim, Profil (22.11.2026) */
.tm-tree-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.tm-tree-head h3 { margin: 0; }
.tm-tree-head .tm-cert-open { font-size: .78rem; padding: 0 1rem; height: 2.4rem; line-height: 2.4rem; }
.tm-tree-names { display: inline-flex; flex-wrap: wrap; gap: .25rem .45rem; vertical-align: top; }
.tm-tree-main { background: #7f3f1f !important; color: #fff7e6 !important; padding: 0 .45rem !important; border-radius: 6px; text-decoration: none !important; }
.tm-tree-sisters { margin-top: .25rem; padding-left: .9rem; border-left: 3px solid rgba(214, 120, 160, .45); }
.tm-tree-sisters strong { color: #a2456f; }
.tm-propose-same { padding: .8rem 1rem; border-radius: 12px; background: #fff4dc; border: 1px solid rgba(197, 138, 43, .45); }
.tm-propose-same p { margin: 0 0 .5rem; font-size: .92rem; }
.tm-propose-same ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; max-height: 14rem; overflow: auto; }
.tm-same-pick { display: grid; width: 100%; text-align: left; gap: .1rem; padding: .45rem .7rem !important; height: auto !important; line-height: 1.35 !important; border-radius: 8px; border: 1px solid rgba(127, 63, 31, .25) !important; background: #fffdf6 !important; color: #3d220c !important; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .9rem !important; white-space: normal !important; cursor: pointer; }
.tm-same-pick:hover { background: #f6ead0 !important; }
.tm-same-pick span, .tm-same-pick small { color: #6b4a2a; font-weight: 400; }
.tm-photo-row { display: flex; gap: .8rem; align-items: center; }
.tm-photo-row > div { flex: 1; min-width: 0; }
.tm-photo-current { width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(127, 63, 31, .3); background: #f6ead0; }
.tm-bio { display: grid; gap: .4rem; }
.tm-bio textarea { min-height: 9rem; }
.tm-bio-list { list-style: none; margin: .8rem 0; padding: 0 0 0 1rem; border-left: 3px solid rgba(197, 138, 43, .55); display: grid; gap: .45rem; }
.tm-bio-list li { margin: 0; line-height: 1.5; }
.tm-bio-list strong { display: inline-block; min-width: 6.5rem; color: #7f3f1f; }
.tm-fb { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; margin: .1rem 0 .6rem; border-radius: 50%; background: #7f3f1f; color: #fff7e6 !important; font-size: 1rem; text-decoration: none; border: 1px solid rgba(197, 138, 43, .6) !important; }
.tm-fb:hover { background: #5e2d14; }
@media (max-width: 720px) {
  .tm-tree-head .tm-cert-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tm-tree-head { flex-wrap: nowrap; }
  .tm-tree-head .tm-cert-open { width: 2.6rem; flex: 0 0 2.6rem; padding: 0; text-align: center; }
}

/* Runder Foto-Zuschnitt (23.11.2026) */
.tm-crop-backdrop { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 1rem; background: rgba(20, 10, 3, .72); }
.tm-crop { width: min(26rem, 100%); max-height: calc(100vh - 2rem); overflow: auto; padding: 1.1rem; border-radius: 16px; background: #fffaf0; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.tm-crop-title { margin: 0; font-weight: 700; font-size: 1.1rem; color: #3d220c; }
.tm-crop-hint { margin: .2rem 0 .8rem; font-size: .88rem; color: #6b4a2a; }
.tm-crop-stage { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #2b1a0b; touch-action: none; cursor: grab; user-select: none; }
.tm-crop-stage:active { cursor: grabbing; }
.tm-crop-stage canvas { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.tm-crop-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #e3b65a; box-shadow: 0 0 0 999px rgba(20, 10, 3, .55); pointer-events: none; }
.tm-crop-zoom { display: flex; align-items: center; gap: .6rem; margin: .9rem 0 .2rem; font-weight: 700; color: #7f3f1f; }
.tm-crop-zoom input { flex: 1; accent-color: #7f3f1f; }
.tm-crop-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .8rem; }
.tm-photo-preview { width: 120px; height: 120px; max-width: none; max-height: none; border-radius: 50% !important; border: 3px solid #c58a2b !important; }
.tm-photo { border-radius: 50% !important; }

/* "Kush jeni ju në trung?" (23.11.2026) */
.tm-me { gap: .45rem; }
.tm-me-hits { display: grid; gap: .3rem; max-height: 13rem; overflow: auto; }
.tm-me-hits:empty { display: none; }
.tm-me-hit { text-align: left; padding: .45rem .7rem !important; height: auto !important; line-height: 1.35 !important; border-radius: 8px; border: 1px solid rgba(127, 63, 31, .25) !important; background: #fffdf6 !important; color: #3d220c !important; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .9rem !important; font-weight: 600; white-space: normal !important; cursor: pointer; }
.tm-me-hit:hover { background: #f6ead0 !important; }
.tm-me-chosen { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .8rem; border-radius: 10px; background: #f6ead0; border: 1px solid rgba(197, 138, 43, .5); }
.tm-me-chosen[hidden], .tm-me-search[hidden] { display: none !important; }
.tm-me-chosen strong { font-size: .92rem; color: #3d220c; text-transform: none; letter-spacing: 0; font-weight: 700; }
.tm-me-clear { width: 1.8rem; height: 1.8rem; padding: 0 !important; border-radius: 50%; border: 1px solid rgba(127, 63, 31, .3) !important; background: #fffaf0 !important; color: #7f3f1f !important; box-shadow: none !important; line-height: 1 !important; font-size: 1.1rem; cursor: pointer; flex: 0 0 auto; }

/* Admin speichert direkt (23.11.2026) */
.tm-admin-direct { margin-top: .3rem; }
.tm-admin-direct summary { cursor: pointer; font-size: .82rem; color: #7f3f1f; font-weight: 700; text-transform: none; letter-spacing: 0; }
.tm-admin-direct input { margin-top: .4rem; }

/* (i) statt Text: letzte Änderungen als kurzer Hinweis (23.11.2026) */
.tm-info { position: relative; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-top: .6rem; padding: 0 !important; border-radius: 50%; border: 1px solid rgba(127, 63, 31, .35) !important; background: #fffaf0 !important; color: #7f3f1f !important; box-shadow: none !important; font: italic 700 .85rem/1 Georgia, serif !important; letter-spacing: 0 !important; text-transform: none !important; cursor: help; }
.tm-info-tip { position: absolute; left: 0; bottom: calc(100% + .4rem); z-index: 20; display: none; gap: .15rem; padding: .5rem .7rem; border-radius: 8px; background: #3d220c; color: #fff3d6; font: 400 .8rem/1.35 system-ui, sans-serif; white-space: nowrap; text-align: left; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.tm-info::before { content: "i"; }
.tm-info:hover .tm-info-tip, .tm-info:focus .tm-info-tip, .tm-info:active .tm-info-tip { display: grid !important; }
.tm-info .tm-info-tip > span { display: block !important; }
