/* =========================================================
   HAPPYBIRDS – DIGITÁLIS TENYÉSZTŐI NAPLÓ
   Az oldal összes egyedi stílusa a hb-journal névtérben van.
   Mobilnézet az alap; az asztali bővítések a fájl végén vannak.
========================================================= */

.scroll-to-top {
    display: none !important;
}
.hb-journal,
.hb-journal-dialog,
.hb-journal-toast {
  --hbj-green: #599c13;
  --hbj-green-dark: #245b24;
  --hbj-green-deep: #163f20;
  --hbj-lime: #77bb33;
  --hbj-mint: #eaf5df;
  --hbj-mint-soft: #f5faef;
  --hbj-ink: #193326;
  --hbj-muted: #647367;
  --hbj-line: rgba(55, 101, 55, .16);
  --hbj-white: #fff;
  --hbj-danger: #a53c34;
  --hbj-warning: #9a6b12;
  --hbj-shadow: 0 12px 30px rgba(29, 68, 34, .09);
  --hbj-shadow-strong: 0 18px 45px rgba(25, 63, 31, .15);
  --hbj-radius: 20px;
  color: var(--hbj-ink);
  font-family: inherit;
}

.hb-journal *,
.hb-journal *::before,
.hb-journal *::after,
.hb-journal-dialog *,
.hb-journal-dialog *::before,
.hb-journal-dialog *::after {
  box-sizing: border-box;
}

.hb-journal {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 8px auto 36px;
  padding: 0 0 86px;
  isolation: isolate;
}

.hb-journal::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 110px;
  right: -15px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(119, 187, 51, .11);
  filter: blur(2px);
  pointer-events: none;
}

.hb-journal button,
.hb-journal input,
.hb-journal select,
.hb-journal textarea,
.hb-journal-dialog button,
.hb-journal-dialog input,
.hb-journal-dialog select,
.hb-journal-dialog textarea {
  font: inherit;
}

.hb-journal button,
.hb-journal-dialog button,
.hb-journal__file-button {
  -webkit-tap-highlight-color: transparent;
}

.hb-journal button:focus-visible,
.hb-journal input:focus-visible,
.hb-journal select:focus-visible,
.hb-journal textarea:focus-visible,
.hb-journal-dialog button:focus-visible,
.hb-journal-dialog input:focus-visible,
.hb-journal-dialog select:focus-visible,
.hb-journal-dialog textarea:focus-visible {
  outline: 3px solid rgba(119, 187, 51, .34);
  outline-offset: 2px;
}

.hb-journal [hidden],
.hb-journal-dialog [hidden],
.hb-journal-toast[hidden] {
  display: none !important;
}

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

/* Fejléc */

.hb-journal__hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 14px;
  padding: 25px 20px 22px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 13%, rgba(214, 241, 178, .32), transparent 26%),
    linear-gradient(145deg, #1e512a 0%, #3e7f26 54%, #6eae2e 100%);
  box-shadow: var(--hbj-shadow-strong);
}

.hb-journal__hero::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -62px;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}

.hb-journal__hero h1 {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 650px;
  margin: 5px 0 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: none;
  box-shadow: none;
  font-size: clamp(27px, 8vw, 44px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -.035em;
}

.hb-journal__hero > p {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 14.5px;
  line-height: 1.55;
}

.hb-journal__eyebrow,
.hb-journal__section-kicker {
  display: block;
  color: var(--hbj-green);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hb-journal__eyebrow { color: #d8f3b7; }

.hb-journal__storage {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  background: rgba(10, 45, 18, .2);
  font-size: 12px;
}

.hb-journal__storage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c6f27f;
  box-shadow: 0 0 0 4px rgba(198, 242, 127, .13);
}

.hb-journal__storage.is-error .hb-journal__storage-dot { background: #ffc1b6; }

.hb-journal__notice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 14px 15px;
  border: 1px solid rgba(119, 187, 51, .22);
  border-radius: 16px;
  background: rgba(244, 250, 237, .84);
}

.hb-journal__notice strong { color: var(--hbj-green-dark); font-size: 13.5px; }
.hb-journal__notice p { margin: 3px 0 0; padding: 0; color: var(--hbj-muted); font-size: 12.5px; line-height: 1.45; }

/* Nézetek és fejlécek */

.hb-journal__view { animation: hbj-view-in .22s ease both; }

.hb-journal__section-head,
.hb-journal__panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.hb-journal__section-head { margin: 0 2px 14px; }
.hb-journal__panel-head { align-items: center; margin-bottom: 14px; }

.hb-journal__section-head h2,
.hb-journal__panel h3,
.hb-journal__backup-card h3,
.hb-journal__privacy h3 {
  display: block;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  color: var(--hbj-green-deep);
  background: none;
  box-shadow: none;
  font-weight: 650;
  line-height: 1.2;
}

.hb-journal__section-head h2 { font-size: 23px; letter-spacing: -.025em; }
.hb-journal__panel h3,
.hb-journal__backup-card h3,
.hb-journal__privacy h3 { font-size: 17px; }
.hb-journal__today { color: var(--hbj-muted); font-size: 12px; white-space: nowrap; }

/* Gombok */

.hb-journal__button,
.hb-journal__text-button,
.hb-journal__back {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.hb-journal__button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.hb-journal__button:active { transform: translateY(1px); }
.hb-journal__button--primary { color: #fff; background: var(--hbj-green); box-shadow: 0 7px 17px rgba(66, 128, 19, .22); }
.hb-journal__button--primary:hover { background: #4c8d0d; box-shadow: 0 9px 21px rgba(66, 128, 19, .29); }
.hb-journal__button--secondary { color: var(--hbj-green-dark); background: var(--hbj-mint); border: 1px solid rgba(89, 156, 19, .22); }
.hb-journal__button--ghost { color: var(--hbj-muted); background: #f2f5f1; }
.hb-journal__button--danger { color: #fff; background: var(--hbj-danger); }
.hb-journal__button[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

.hb-journal__text-button,
.hb-journal__back {
  padding: 4px 0;
  color: var(--hbj-green);
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
}

.hb-journal__back { margin: 0 0 13px 2px; font-size: 13px; }

/* Statisztika */

.hb-journal__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 13px;
}

.hb-journal__stat {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--hbj-line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 7px 20px rgba(31, 73, 34, .06);
}

.hb-journal__stat strong {
  display: block;
  color: var(--hbj-green-dark);
  font-size: 27px;
  font-weight: 650;
  line-height: 1;
}

.hb-journal__stat span { display: block; margin-top: 8px; color: var(--hbj-muted); font-size: 12px; line-height: 1.3; }
.hb-journal__stat--accent { color: #fff; background: linear-gradient(145deg, #376f29, #6aa72e); border-color: transparent; }
.hb-journal__stat--accent strong,
.hb-journal__stat--accent span { color: #fff; }

/* Gyorsműveletek */

.hb-journal__quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.hb-journal__quick-action {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--hbj-line);
  border-radius: 16px;
  color: var(--hbj-ink);
  background: rgba(255, 255, 255, .75);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(30, 70, 34, .05);
}

.hb-journal__quick-icon {
  display: grid;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--hbj-lime);
  font-size: 23px;
  font-weight: 300;
}

.hb-journal__quick-action strong,
.hb-journal__quick-action small { display: block; }
.hb-journal__quick-action strong { color: var(--hbj-green-deep); font-size: 13.5px; }
.hb-journal__quick-action small { margin-top: 3px; color: var(--hbj-muted); font-size: 11.5px; }

/* Panelek, listák */

.hb-journal__panel {
  margin: 0 0 13px;
  padding: 16px;
  border: 1px solid var(--hbj-line);
  border-radius: var(--hbj-radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--hbj-shadow);
}

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

.hb-journal-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--hbj-line);
  border-radius: 16px;
  color: inherit;
  background: #fff;
  box-shadow: 0 6px 18px rgba(25, 66, 30, .055);
}

button.hb-journal-card { width: 100%; text-align: left; cursor: pointer; }
.hb-journal-card__avatar {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  color: var(--hbj-green-dark);
  background: var(--hbj-mint);
  font-size: 15px;
  font-weight: 750;
  text-transform: uppercase;
}

.hb-journal-card__avatar--female { color: #884f50; background: #f8e9e8; }
.hb-journal-card__avatar--pair { color: #fff; background: linear-gradient(145deg, #47842d, #81be3d); }
.hb-journal-card__avatar--clutch { color: #775b20; background: #fbf1cf; }
.hb-journal-card__body { min-width: 0; }
.hb-journal-card__title { display: block; overflow: hidden; color: var(--hbj-green-deep); font-size: 14px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.hb-journal-card__meta { display: block; overflow: hidden; margin-top: 4px; color: var(--hbj-muted); font-size: 11.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.hb-journal-card__submeta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 7px; color: var(--hbj-muted); font-size: 10.8px; }
.hb-journal-card__arrow { color: #8ca08e; font-size: 20px; }

.hb-journal__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--hbj-green-dark);
  background: var(--hbj-mint);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
}

.hb-journal__badge--closed { color: #626c64; background: #eef0ee; }
.hb-journal__badge--warning { color: #825813; background: #fff1cc; }
.hb-journal__badge--danger { color: #8d3833; background: #fce5e2; }

.hb-journal__empty {
  padding: 27px 18px;
  border: 1px dashed rgba(65, 113, 52, .25);
  border-radius: 17px;
  color: var(--hbj-muted);
  background: rgba(248, 251, 246, .7);
  text-align: center;
}

.hb-journal__empty strong { display: block; color: var(--hbj-green-dark); font-size: 14px; }
.hb-journal__empty p { margin: 6px auto 13px; padding: 0; max-width: 410px; color: var(--hbj-muted); font-size: 12px; line-height: 1.45; }

/* Közelgő események */

.hb-journal__timeline { display: grid; gap: 5px; }
.hb-journal-event { display: grid; width: 100%; grid-template-columns: 48px minmax(0, 1fr); gap: 11px; padding: 10px 0; border: 0; border-top: 1px solid var(--hbj-line); color: inherit; background: transparent; text-align: left; cursor: pointer; }
.hb-journal-event:first-child { padding-top: 0; border-top: 0; }
.hb-journal-event__date { align-self: start; padding: 7px 4px; border-radius: 12px; color: var(--hbj-green-dark); background: var(--hbj-mint); text-align: center; }
.hb-journal-event__date strong { display: block; font-size: 17px; line-height: 1; }
.hb-journal-event__date span { display: block; margin-top: 3px; font-size: 9.5px; font-weight: 700; text-transform: uppercase; }
.hb-journal-event__body strong { display: block; color: var(--hbj-green-deep); font-size: 12.5px; line-height: 1.3; }
.hb-journal-event__body span { display: block; margin-top: 4px; color: var(--hbj-muted); font-size: 11px; line-height: 1.35; }

/* Keresés, szűrés */

.hb-journal__view-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 13px;
  padding: 5px;
  border: 1px solid rgba(89, 156, 19, .24);
  border-radius: 15px;
  background: #f4f9ee;
  box-shadow: inset 0 1px 3px rgba(29, 68, 34, .06);
}
.hb-journal__view-switch button {
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--hbj-muted);
  background: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.hb-journal__view-switch button.is-active {
  border-color: #559a13;
  color: #fff;
  background: linear-gradient(135deg, #69b51b, #599c13);
  box-shadow: 0 6px 15px rgba(67, 126, 20, .24);
}

.hb-journal__filters { display: grid; gap: 8px; margin-bottom: 13px; }
.hb-journal__offspring-filters { display: grid; gap: 8px; margin-bottom: 10px; }
.hb-journal__search { display: block; position: relative; }
.hb-journal__search::before { content: "⌕"; position: absolute; top: 50%; left: 13px; color: #789078; font-size: 19px; transform: translateY(-53%); pointer-events: none; }
.hb-journal__search input,
.hb-journal__filters select,
.hb-journal__offspring-filters select {
  width: 100%;
  height: 45px;
  border: 1px solid var(--hbj-line);
  border-radius: 13px;
  color: var(--hbj-ink);
  background: rgba(255, 255, 255, .87);
  font-size: 12.5px;
}
.hb-journal__search input { padding: 0 13px 0 39px; }
.hb-journal__filters select,
.hb-journal__offspring-filters select { padding: 0 34px 0 12px; }
.hb-journal__view > .hb-journal__search { margin-bottom: 13px; }
.hb-journal__offspring-search { grid-column: 1 / -1; }
.hb-journal__offspring-summary { margin: 0 2px 11px; padding: 0; color: var(--hbj-muted); font-size: 11.5px; }
.hb-journal__offspring-list { display: grid; gap: 9px; }

.hb-journal-offspring-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px 38px 14px 14px;
  border: 1px solid var(--hbj-line);
  border-radius: 17px;
  color: inherit;
  background: #fff;
  box-shadow: 0 7px 20px rgba(29, 68, 34, .055);
  text-align: left;
  cursor: pointer;
}
.hb-journal-offspring-card.is-sold {
  border-color: rgba(165, 60, 52, .2);
  background: #fff3f1;
}
.hb-journal-offspring-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hb-journal-offspring-card__heading { display: block; min-width: 0; }
.hb-journal-offspring-card__heading > strong { display: block; color: var(--hbj-green-deep); font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.hb-journal-offspring-card__species { display: block; margin-top: 3px; color: var(--hbj-muted); font-size: 11.5px; line-height: 1.35; }
.hb-journal-offspring-card__hatch { display: block; margin-top: 6px; color: var(--hbj-muted); font-size: 10.5px; }
.hb-journal-offspring-card__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.hb-journal-offspring-card__facts > span { display: block; min-width: 0; padding: 8px 9px; border-radius: 11px; background: rgba(245, 250, 239, .84); }
.hb-journal-offspring-card.is-sold .hb-journal-offspring-card__facts > span { background: rgba(255, 255, 255, .68); }
.hb-journal-offspring-card__facts small { display: block; color: var(--hbj-muted); font-size: 9.5px; }
.hb-journal-offspring-card__facts strong { display: block; margin-top: 2px; color: var(--hbj-ink); font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.hb-journal-offspring-card__arrow { position: absolute; top: 50%; right: 14px; color: var(--hbj-green); font-size: 24px; line-height: 1; transform: translateY(-50%); }
.hb-journal__badge--sold { color: #8d3731; background: #f8deda; }
.hb-journal__badge--available { color: #2f6d24; background: #e5f3d8; }

/* Adatlap */

.hb-journal-detail__hero {
  margin-bottom: 12px;
  padding: 19px;
  border-radius: 21px;
  color: #fff;
  background: linear-gradient(145deg, #275c2b, #65a92b);
  box-shadow: var(--hbj-shadow-strong);
}

.hb-journal-detail__hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hb-journal-detail__hero h2 { display: block; margin: 4px 0 0; padding: 0; border: 0; color: #fff; background: none; font-size: 24px; font-weight: 650; line-height: 1.15; letter-spacing: -.025em; }
.hb-journal-detail__hero p { margin: 8px 0 0; padding: 0; color: rgba(255,255,255,.82); font-size: 12.5px; line-height: 1.45; }
.hb-journal-detail__actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.hb-journal-detail__actions .hb-journal__button { min-height: 38px; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.23); box-shadow: none; }
.hb-journal-detail__actions .hb-journal__button--danger { background: rgba(116, 27, 27, .33); }

.hb-journal__detail-grid { display: grid; gap: 12px; }
.hb-journal__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hb-journal__fact { padding: 11px; border-radius: 13px; background: var(--hbj-mint-soft); }
.hb-journal__fact span { display: block; color: var(--hbj-muted); font-size: 10.5px; }
.hb-journal__fact strong { display: block; margin-top: 4px; color: var(--hbj-green-deep); font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.hb-journal__notes { margin: 12px 0 0; padding: 11px 12px; border-left: 3px solid var(--hbj-lime); border-radius: 0 10px 10px 0; color: var(--hbj-muted); background: #f7faf4; font-size: 12px; line-height: 1.5; white-space: pre-line; }

.hb-journal__schedule { display: grid; gap: 8px; }
.hb-journal-schedule-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 13px; background: var(--hbj-mint-soft); }
.hb-journal-schedule-item span { color: var(--hbj-muted); font-size: 11.5px; }
.hb-journal-schedule-item strong { color: var(--hbj-green-deep); font-size: 12px; text-align: right; }

.hb-journal__egg-grid { display: grid; gap: 9px; }
.hb-journal-egg { padding: 13px; border: 1px solid var(--hbj-line); border-radius: 15px; background: #fff; }
.hb-journal-egg.is-sold { border-color: rgba(165, 60, 52, .2); background: #fff3f1; }
.hb-journal-egg.is-highlighted { animation: hbj-egg-highlight 2.2s ease both; }
.hb-journal-egg__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hb-journal-egg__head strong { color: var(--hbj-green-deep); font-size: 13.5px; }
.hb-journal-egg__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.hb-journal-egg__facts span { display: block; color: var(--hbj-muted); font-size: 10px; }
.hb-journal-egg__facts strong { display: block; margin-top: 2px; color: var(--hbj-ink); font-size: 11px; font-weight: 600; }
.hb-journal-egg__actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--hbj-line); }
.hb-journal-egg__actions button { border: 0; color: var(--hbj-green); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.hb-journal-egg__actions button[data-delete-egg] { color: var(--hbj-danger); }

@keyframes hbj-egg-highlight {
  0%, 100% { box-shadow: none; }
  18%, 72% { box-shadow: 0 0 0 4px rgba(119, 187, 51, .28), 0 12px 28px rgba(29, 68, 34, .12); }
}

/* Mentés */

.hb-journal__backup-grid { display: grid; gap: 12px; }
.hb-journal__backup-card { position: relative; overflow: hidden; margin: 0; }
.hb-journal__backup-card p,
.hb-journal__privacy p,
.hb-journal__undo p { margin: 7px 0 14px; padding: 0; color: var(--hbj-muted); font-size: 12.5px; line-height: 1.55; }
.hb-journal__backup-number { position: absolute; top: 8px; right: 13px; color: rgba(89,156,19,.09); font-size: 47px; font-weight: 800; line-height: 1; }
.hb-journal__file-button { cursor: pointer; }
.hb-journal__file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hb-journal__restore-preview { margin-top: 13px; padding: 16px; border: 1px solid rgba(119,187,51,.28); border-radius: 18px; background: #f5fbea; box-shadow: var(--hbj-shadow); }
.hb-journal__restore-preview h3 { margin: 0 0 8px; color: var(--hbj-green-deep); font-size: 16px; }
.hb-journal__restore-preview p { margin: 0 0 12px; padding: 0; color: var(--hbj-muted); font-size: 12px; line-height: 1.5; }
.hb-journal__restore-summary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin-bottom: 13px; }
.hb-journal__restore-summary span { padding: 8px 9px; border-radius: 10px; color: var(--hbj-green-dark); background: #fff; font-size: 11px; }
.hb-journal__undo { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 13px; }
.hb-journal__undo p { margin-bottom: 5px; }
.hb-journal__privacy { margin-top: 15px; padding: 16px; border-radius: 17px; background: rgba(230, 244, 216, .55); }
.hb-journal__privacy p { margin-bottom: 0; }

/* Alsó mobil navigáció */

.hb-journal__bottom-nav {
  position: fixed;
  z-index: 70;
  right: max(8px, env(safe-area-inset-right));
  bottom: max(8px, env(safe-area-inset-bottom));
  left: max(8px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 650px;
  margin: auto;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 18px;
  background: rgba(251, 253, 249, .94);
  box-shadow: 0 12px 34px rgba(20, 54, 25, .22);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
}

.hb-journal__bottom-nav button {
  display: flex;
  min-width: 0;
  min-height: 50px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 1px;
  border: 0;
  border-radius: 12px;
  color: #718074;
  background: transparent;
  font-size: 9.5px;
  cursor: pointer;
}

.hb-journal__bottom-nav button span { font-size: 18px; line-height: 1; }
.hb-journal__bottom-nav button.is-active { color: var(--hbj-green-dark); background: var(--hbj-mint); font-weight: 750; }

/* Dialógusok és űrlapok */

.hb-journal-dialog {
  width: calc(100% - 18px);
  max-width: 690px;
  max-height: calc(100dvh - 18px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--hbj-ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 41, 20, .34);
}

.hb-journal-dialog::backdrop { background: rgba(16, 39, 21, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.hb-journal-form { padding: 19px 16px 16px; }
.hb-journal-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.hb-journal-dialog__head h2 { display: block; margin: 3px 0 0; padding: 0; border: 0; color: var(--hbj-green-deep); background: none; font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.hb-journal-dialog__close { display: grid; flex: 0 0 37px; width: 37px; height: 37px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #657269; background: #f0f3ef; font-size: 23px; line-height: 1; cursor: pointer; }
.hb-journal-form__grid { display: grid; grid-template-columns: 1fr; gap: 11px; }
.hb-journal-form label > span { display: block; margin: 0 0 5px 2px; color: #526256; font-size: 11.5px; font-weight: 700; }
.hb-journal-form input,
.hb-journal-form select,
.hb-journal-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid rgba(57, 99, 55, .2);
  border-radius: 11px;
  color: var(--hbj-ink);
  background: #fbfcfa;
  font-size: 13px;
}
.hb-journal-form textarea { min-height: 78px; resize: vertical; line-height: 1.45; }
.hb-journal-form input:invalid:not(:placeholder-shown),
.hb-journal-form select:invalid:not(:focus) { border-color: rgba(165, 60, 52, .42); }
.hb-journal-form__unit { display: flex; align-items: center; overflow: hidden; border: 1px solid rgba(57,99,55,.2); border-radius: 11px; background: #fbfcfa; }
.hb-journal-form__unit input { border: 0; background: transparent; }
.hb-journal-form__unit > span { flex: 0 0 auto; margin: 0 11px 0 4px !important; color: var(--hbj-muted) !important; font-weight: 500 !important; }
.hb-journal-form__hint,
.hb-journal-form__error { margin: 11px 0 0; padding: 10px 11px; border-radius: 10px; font-size: 11.5px; line-height: 1.45; }
.hb-journal-form__hint { color: #5b6d5d; background: #f3f7ef; }
.hb-journal-form__error { color: #8e352f; background: #fdebea; }
.hb-journal-form__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--hbj-line); }

/* =========================================================
   FELUGRÓ ABLAKOK MOBIL SZÉLESSÉGVÉDELME
========================================================= */

body.hb-journal-app {
  overflow-x: hidden;
}

.hb-journal-dialog {
  width: calc(100% - 18px);
  max-width: 690px;
  overscroll-behavior-x: none;
}

@supports (-webkit-touch-callout: none) {
  .hb-journal-form input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-inline-size: 0;
    padding: 10px 12px;
    line-height: 1.4;
    background-color: #fbfcfa;
  }

  .hb-journal-form input[type="date"]::-webkit-date-and-time-value {
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
  }
}

/*
 * A grid- és flexelemek alapból megtarthatják
 * a bennük lévő mezők minimális szélességét.
 */
.hb-journal-form,
.hb-journal-form__grid,
.hb-journal-form__grid > label,
.hb-journal-form__full,
.hb-journal-form__unit,
.hb-journal-dialog__head > div {
  min-width: 0;
  max-width: 100%;
}

/*
 * Minden mező legfeljebb a rendelkezésére álló
 * oszlop szélességét használhatja.
 */
.hb-journal-form input,
.hb-journal-form select,
.hb-journal-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
}

/* Különösen fontos az iOS saját dátummezőinél. */
.hb-journal-form input[type="date"],
.hb-journal-form input[type="number"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-inline-size: 0;
}

/* A mértékegységgel ellátott mezők se feszítsék szét a sort. */
.hb-journal-form__unit input {
  flex: 1 1 0;
  min-width: 0;
}

/* Hosszabb dialogcím se okozhasson túlnyúlást. */
.hb-journal-dialog__head h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Nagyon keskeny kijelzőn a gombok új sorba kerülhetnek. */
.hb-journal-form__actions {
  flex-wrap: wrap;
}


/* iOS Safari automatikus űrlapnagyításának megakadályozása */

@media (max-width: 849px), (hover: none) and (pointer: coarse) {
  .hb-journal__search input,
  .hb-journal__filters select,
  .hb-journal__offspring-filters select,
  .hb-journal-form input,
  .hb-journal-form select,
  .hb-journal-form textarea {
    font-size: 16px;
  }
}
/* Toast */

.hb-journal-toast {
  position: fixed;
  z-index: 120;
  right: 12px;
  bottom: 85px;
  left: 12px;
  max-width: 430px;
  margin: auto;
  padding: 12px 14px;
  border-radius: 13px;
  color: #fff;
  background: #234e2a;
  box-shadow: 0 15px 34px rgba(15, 40, 19, .26);
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
  animation: hbj-toast-in .2s ease both;
}

.hb-journal-toast.is-error { background: #8c3934; }
.hb-journal__noscript { padding: 14px; border-radius: 12px; color: #7e332f; background: #fde9e7; }

@keyframes hbj-view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes hbj-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Kis tablet */

@media (min-width: 560px) {
  .hb-journal__hero { padding: 31px 28px 27px; }
  .hb-journal__notice { flex-direction: row; align-items: center; justify-content: space-between; }
  .hb-journal__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hb-journal__quick-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hb-journal__quick-action { align-items: flex-start; min-height: 105px; flex-direction: column; }
  .hb-journal__filters { grid-template-columns: minmax(0, 1fr) 175px; }
  .hb-journal__offspring-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hb-journal__offspring-search { grid-column: 1 / -1; }
  .hb-journal-offspring-card__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hb-journal__backup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-journal__undo { flex-direction: row; align-items: center; justify-content: space-between; }
  .hb-journal-form { padding: 22px; }
  .hb-journal-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-journal-form__full { grid-column: 1 / -1; }
  .hb-journal__egg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Asztali nézet */

@media (min-width: 850px) {
  .hb-journal { margin-top: 14px; padding: 0 8px 20px; }
  .hb-journal__hero { border-radius: 28px; }
  .hb-journal__section-head h2 { font-size: 27px; }
  .hb-journal__stat { min-height: 105px; padding: 17px; }
  .hb-journal__stat strong { font-size: 31px; }
  .hb-journal__panel { padding: 19px; }
  .hb-journal__card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-journal__offspring-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-journal__panel .hb-journal__card-list { grid-template-columns: 1fr; }
  .hb-journal__detail-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .hb-journal__detail-grid > .hb-journal__panel:only-child { grid-column: 1 / -1; }
  .hb-journal__bottom-nav {
    position: sticky;
    right: auto;
    bottom: 10px;
    left: auto;
    max-width: 610px;
    margin: 22px auto 0;
  }
  .hb-journal__bottom-nav button { min-height: 54px; font-size: 10.5px; }
  .hb-journal-toast { bottom: 28px; }
  .hb-journal-dialog { width: calc(100% - 42px); }
}

@media (prefers-reduced-motion: reduce) {
  .hb-journal *,
  .hb-journal *::before,
  .hb-journal *::after,
  .hb-journal-dialog *,
  .hb-journal-dialog *::before,
  .hb-journal-dialog *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .hb-journal__bottom-nav,
  .hb-journal__notice,
  .hb-journal__quick-actions,
  .hb-journal__back,
  .hb-journal-detail__actions { display: none !important; }
  .hb-journal { max-width: none; padding: 0; }
  .hb-journal__view:not(.is-active) { display: none !important; }
  .hb-journal__panel,
  .hb-journal-detail__hero { box-shadow: none; break-inside: avoid; }
}

/* Weboldalas fejléc elrejtése a tenyésztői napló mobilnézetében */

@media (max-width: 980px) {
  body.hb-journal-app #hb-lang,
  body.hb-journal-app .wrapper > .header,
  body.hb-journal-app .hb-journal-site-hero,
  body.hb-journal-app .hb-breadcrumb {
    display: none !important;
  }
}
/*madaraim törlés gomb*/
.hb-journal-card__menu button[data-delete-bird] {
  color: #a5534d;
}