.tzb-app {
  font-size: 15px;
  margin: 0 0 10px 0;
}

/* kibona brand: tabs, cards, buttons re-mapped to shared tokens.
   Original WP plugin colors (#000 / #B67636 / #b00020) replaced. */

.tzb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  background: var(--cream, #fbf6e8);
  padding: 10px 0;
  z-index: 5;
}

@media (max-width: 480px) {
  .tzb-tabs .tzb-lang-switcher {
    order: -1;
    width: 100%;
    margin-left: 0;
  }
}

.tzb-tab {
  padding: 10px 18px;
  border: 2px solid var(--ink, #000);
  background: var(--paper, #fff);
  color: var(--ink, #000);
  border-radius: 999px;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.tzb-tab:hover {
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 0 var(--ink, #000);
}
.tzb-tab.is-active {
  background: var(--sun, #ffbf00);
  color: var(--ink, #000);
  box-shadow: 3px 3px 0 0 var(--ink, #000);
}

.tzb-card {
  border: 2px solid var(--ink, #000);
  background: var(--paper, #fff);
  border-radius: 18px;
  padding: 22px 22px;
  box-shadow: 6px 6px 0 0 var(--ink, #000);
  margin-bottom: 20px;
}

.tzb-row { display: flex; gap: 12px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

.tzb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid var(--ink, #000);
  background: var(--ink, #000);
  color: #fff;
  border-radius: 999px;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 5px 0 0 var(--sun-deep, #cc9900);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tzb-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 0 var(--sun-deep, #cc9900); }
.tzb-btn:active { transform: translateY(2px); box-shadow: 0 3px 0 0 var(--sun-deep, #cc9900); }
.tzb-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 0 5px 0 0 var(--sun-deep, #cc9900); }
.tzb-btn-secondary {
  background: var(--paper, #fff);
  color: var(--ink, #000);
  box-shadow: 0 5px 0 0 var(--ink, #000);
}
.tzb-btn-secondary:hover { box-shadow: 0 7px 0 0 var(--ink, #000); }
.tzb-btn-secondary:active { box-shadow: 0 3px 0 0 var(--ink, #000); }
.tzb-btn-danger {
  background: var(--danger, #c1361a);
  border-color: var(--danger, #c1361a);
  box-shadow: 0 5px 0 0 #7a2110;
}

.tzb-input, .tzb-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
}
.tzb-textarea { min-height: 90px; resize: vertical; }

.tzb-label { display: block; margin: 12px 0 6px; font-weight: 600; }
.tzb-time { font-size: 40px; font-weight: 700; letter-spacing: 0.5px; }
.tzb-msg { margin-left: 6px; color: #333; }
.tzb-help { color: #666; font-size: 13px; margin-top: 10px; }

.tzb-muted { color: #777; }

/* Diary list — one card per day, entries drawn as a vertical timeline */
.tzb-diary {
  width: 100%;
}
.tzb-day {
  margin-top: 22px;
  background: var(--paper, #fff);
  border: 2px solid var(--ink, #000);
  border-radius: var(--radius, 18px);
  box-shadow: 4px 4px 0 0 var(--ink, #000);
  padding: 14px 16px 4px;
}
.tzb-day:first-child { margin-top: 0; }

.tzb-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px dashed #ece4cf;
  margin-bottom: 14px;
}
.tzb-day-date {
  font-family: var(--font-display, 'Baloo 2', system-ui, sans-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink, #000);
  text-transform: capitalize;
}
.tzb-day-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink, #000);
  background: var(--cream, #fbf6e8);
  border: 1.5px solid var(--ink, #000);
  border-radius: var(--radius-pill, 999px);
  padding: 2px 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Timeline: [time] [rail + dot] [content]. The rail is drawn per item so it
   stays continuous when an entry is deleted or notes are edited inline. */
.tzb-timeline {
  --tl-time-w: 46px;
  --tl-rail-w: 28px;
  --tl-dot: 14px;
  --tl-dot-top: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tzb-session {
  position: relative;
  display: grid;
  grid-template-columns: var(--tl-time-w) var(--tl-rail-w) minmax(0, 1fr);
  align-items: start;
}
.tzb-session::before {
  content: "";
  position: absolute;
  left: calc(var(--tl-time-w) + var(--tl-rail-w) / 2 - 1px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d3c59c;
}
.tzb-session:first-child::before { top: calc(var(--tl-dot-top) + var(--tl-dot) / 2); }
.tzb-session:last-child::before { bottom: auto; height: calc(var(--tl-dot-top) + var(--tl-dot) / 2); }
.tzb-session:only-child::before { display: none; }

.tzb-tl-dot {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: var(--tl-dot);
  height: var(--tl-dot);
  margin-top: var(--tl-dot-top);
  border-radius: 50%;
  background: var(--sun, #ffbf00);
  border: 2px solid var(--ink, #000);
  box-sizing: border-box;
}

.tzb-tl-body {
  min-width: 0;
  padding: 0 0 16px 4px;
}

.tzb-session-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 22px;
}
.tzb-session-time {
  font-size: 13px;
  line-height: 22px;
  color: #777;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.tzb-session-dur {
  flex: none;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: #111;
  font-variant-numeric: tabular-nums;
}
.tzb-session-main .tzb-icon-btn { width: 28px; height: 28px; margin: -3px 0; }
.tzb-session-main .tzb-session-actions { margin-left: auto; }

/* Child names on a timeline entry */
.tzb-session-kids {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
@media (max-width: 480px) {
  .tzb-session-main { flex-wrap: wrap; row-gap: 6px; }
  .tzb-session-kids { order: 3; flex-basis: 100%; }
}
.tzb-kid {
  padding: 0 8px;
  border: 1.5px solid var(--ink, #000);
  border-radius: var(--radius-pill, 999px);
  background: var(--cream, #fbf6e8);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Children: horizontally scrolling pill rows (picker + filter) ──────── */
.tzb-chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 4px 8px 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.tzb-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 2px solid var(--ink, #000);
  border-radius: var(--radius-pill, 999px);
  background: var(--paper, #fff);
  color: var(--ink, #000);
  font-family: var(--font-body, 'Nunito', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.tzb-chip:not([aria-pressed="true"]):hover:not(:disabled) { background: var(--cream, #fbf6e8); }
.tzb-chip[aria-pressed="true"] {
  background: var(--sun, #ffbf00);
  box-shadow: 2px 2px 0 0 var(--ink, #000);
}
.tzb-chip--add {
  border-style: dashed;
  background: transparent;
}
.tzb-chip--muted:not([aria-pressed="true"]) { color: #666; }
.tzb-chip--icon {
  width: 36px;
  padding: 0;
  justify-content: center;
  font-size: 16px;
}
.tzb-chip--confirm { background: var(--sun, #ffbf00); }
.tzb-chip:disabled { opacity: .5; cursor: default; }

.tzb-chip-form {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tzb-chip-input {
  height: 36px;
  width: 160px;
  padding: 0 14px;
  border: 2px solid var(--ink, #000);
  border-radius: var(--radius-pill, 999px);
  font-family: var(--font-body, 'Nunito', system-ui, sans-serif);
  font-size: 14px;
  outline: none;
}
.tzb-chip-input:focus { box-shadow: 0 0 0 3px rgba(255, 191, 0, .45); }

.tzb-children-field { margin-bottom: 14px; }
.tzb-children-field .tzb-label { margin-top: 0; }
.tzb-optional { font-weight: 400; color: #777; }
.tzb-children-hint { margin: 0; font-size: 13px; color: #666; }

.tzb-child-filter { margin-bottom: 12px; }

/* ── Novi zapis: manual entry ──────────────────────────────────────────── */
.tzb-manual { margin: 18px 0 0; }
.tzb-manual-form {
  padding: 16px;
  border: 2px solid var(--ink, #000);
  border-radius: 14px;
  background: var(--cream, #fbf6e8);
}
.tzb-manual-open {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 2px dashed var(--ink, #000);
  border-radius: var(--radius, 18px);
  background: transparent;
  color: var(--ink, #000);
  font-family: var(--font-body, 'Nunito', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.tzb-manual-open:hover { background: var(--cream, #fbf6e8); }
.tzb-manual-open[hidden] { display: none; }
.tzb-manual-title {
  margin: 0 0 12px;
  font-family: var(--font-display, 'Baloo 2', system-ui, sans-serif);
  font-size: 20px;
  font-weight: 700;
}
.tzb-manual-children-label { margin-top: 0; }
.tzb-manual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 14px;
}
@media (max-width: 560px) {
  .tzb-manual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .tzb-field--duration { grid-column: 1 / -1; }
  .tzb-manual-form input[type="date"],
  .tzb-manual-form input[type="time"] { padding: 8px; font-size: 14px; }
}
.tzb-field { display: block; min-width: 0; }
.tzb-field .tzb-label { margin-top: 12px; }
.tzb-duration {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tzb-duration .tzb-input { width: 72px; text-align: center; }
.tzb-manual-form .tzb-input { min-height: 42px; font-size: 15px; }
.tzb-manual-error {
  margin: 12px 0 0;
  color: var(--danger, #c1361a);
  font-size: 14px;
  font-weight: 700;
}
.tzb-session-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tzb-session-actions.is-confirming { gap: 6px; }

.tzb-icon-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #777;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.tzb-icon-btn:hover {
  background: #f5f5f5;
  color: #111;
}
.tzb-icon-btn--danger:hover {
  background: #fbe9e9;
  color: #b00020;
}

.tzb-confirm-text {
  font-size: 12px;
  color: #555;
}

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

.tzb-session-notes {
  margin-top: 8px;
  font-size: 13px;
  color: #444;
  white-space: pre-wrap;
  line-height: 1.4;
}
.tzb-session-notes.is-empty {
  margin-top: 6px;
}
.tzb-session-notes:empty { display: none; }

.tzb-add-note {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: #888;
  cursor: pointer;
  text-decoration: none;
}
.tzb-add-note:hover { color: #111; text-decoration: underline; }

.tzb-edit-area { font-size: 13px; }
.tzb-edit-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.tzb-load-more {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 16px auto 0;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 10px;
  color: #555;
  font-size: 13px;
  cursor: pointer;
}
.tzb-load-more:hover { background: #fafafa; color: #111; }
.tzb-load-more:disabled { opacity: .5; cursor: not-allowed; }

/* Diary empty state */
.tzb-diary-empty {
  text-align: center;
  padding: 32px 20px;
  max-width: 480px;
  margin: 0 auto;
}
.tzb-empty-icon {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 10px;
}
.tzb-empty-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.tzb-empty-hint {
  margin: 0;
  font-size: 13px;
  color: #888;
}

/* ── Stats: period picker (D/T/M/G) + range navigation ─────────────────── */
.tzb-period-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.tzb-seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--paper, #fff);
  border: 2px solid var(--ink, #000);
  border-radius: var(--radius-pill, 999px);
  box-shadow: 3px 3px 0 0 var(--ink, #000);
}
.tzb-seg-btn {
  min-width: 52px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill, 999px);
  background: transparent;
  color: var(--ink, #000);
  font-family: var(--font-display, 'Baloo 2', system-ui, sans-serif);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.tzb-seg-btn:hover { background: var(--cream, #fbf6e8); }
.tzb-seg-btn[aria-pressed="true"] {
  background: var(--sun, #ffbf00);
  box-shadow: inset 0 0 0 2px var(--ink, #000);
}

.tzb-period-nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 440px;
}
.tzb-period-label {
  text-align: center;
  font-family: var(--font-display, 'Baloo 2', system-ui, sans-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.tzb-period-arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  border: 2px solid var(--ink, #000);
  border-radius: 50%;
  background: var(--paper, #fff);
  color: var(--ink, #000);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tzb-period-arrow:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 2px 2px 0 0 var(--ink, #000);
}
.tzb-period-arrow:disabled { opacity: .25; cursor: default; }

.tzb-period-body { transition: opacity .15s ease; }
.tzb-period-body.is-loading { opacity: .45; pointer-events: none; }

/* ── Stats: daily goal pill + inline editor ────────────────────────────── */
.tzb-goal { display: flex; justify-content: center; width: 100%; }
.tzb-goal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 2px solid var(--ink, #000);
  border-radius: var(--radius-pill, 999px);
  background: var(--paper, #fff);
  color: var(--ink, #000);
  font-family: var(--font-body, 'Nunito', system-ui, sans-serif);
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tzb-goal-pill:hover { transform: translateY(-1px); box-shadow: 2px 2px 0 0 var(--ink, #000); }

.tzb-goal-editor {
  width: 100%;
  max-width: 360px;
  padding: 16px 18px;
  background: var(--paper, #fff);
  border: 2px solid var(--ink, #000);
  border-radius: var(--radius, 18px);
  box-shadow: 4px 4px 0 0 var(--ink, #000);
  text-align: center;
}
.tzb-goal-editor-title {
  font-family: var(--font-display, 'Baloo 2', system-ui, sans-serif);
  font-size: 18px;
  font-weight: 700;
}
.tzb-goal-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 10px 0 12px;
}
.tzb-goal-value {
  min-width: 96px;
  font-family: var(--font-display, 'Baloo 2', system-ui, sans-serif);
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tzb-goal-presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.tzb-goal-presets .tzb-chip { height: 32px; padding: 0 12px; font-size: 13px; }
.tzb-goal-note { margin: 12px 0 0; font-size: 12px; color: #666; line-height: 1.4; }
.tzb-goal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

/* ── Stats: bar chart (one bar per day, or per month for G) ─────────────── */
.tzb-bars-card { padding: 20px 16px 14px 10px; }
.tzb-bars {
  --gap: 8px;
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: 180px auto;
  column-gap: 8px;
}
.tzb-bars--dense { --gap: 3px; }

.tzb-bars-axis {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  font-size: 11px;
  color: #888;
  font-variant-numeric: tabular-nums;
}
.tzb-bars-axis span {
  position: absolute;
  right: 0;
  transform: translateY(50%);
  white-space: nowrap;
}

.tzb-bars-plot {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  border-bottom: 2px solid var(--ink, #000);
}
.tzb-bars-gridline {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed #e4dccb;
}
.tzb-bars-goal {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  border-top: 2px dashed var(--sun-deep, #cc9900);
  pointer-events: none;
}
.tzb-bars-goal span {
  position: absolute;
  right: 0;
  bottom: 2px;
  padding: 0 4px;
  background: var(--paper, #fff);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--sun-deep, #cc9900);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Goal changed inside the period: one dashed segment per day, bridged across gaps */
.tzb-bars-goalsteps {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: var(--gap);
  pointer-events: none;
}
.tzb-bars-goalsteps span { position: relative; }
.tzb-bars-goalsteps i {
  position: absolute;
  left: calc(var(--gap) / -2);
  right: calc(var(--gap) / -2);
  border-top: 2px dashed var(--sun-deep, #cc9900);
}
.tzb-bars-goal--label-only { border-top: 0; }

.tzb-bars-cols,
.tzb-bars-labels {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: var(--gap);
}
.tzb-bars-cols {
  position: absolute;
  inset: 0;
  align-items: end;
}
.tzb-bar-col {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px 6px 0 0;
  background: transparent;
  cursor: pointer;
}
.tzb-bar-col:hover:not(:disabled),
.tzb-bar-col.is-active { background: rgba(255, 191, 0, .14); }
.tzb-bar-col:focus-visible { outline: 2px solid var(--ink, #000); outline-offset: 1px; }
.tzb-bar-col.is-future { cursor: default; }

.tzb-bar {
  display: block;
  width: 100%;
  max-width: 38px;
  height: 0;
  box-sizing: border-box;
  background: var(--sun, #ffbf00);
  border: 2px solid var(--ink, #000);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.tzb-bar-col:not(.has-value) .tzb-bar { border: 0; }
.tzb-bar-col.has-value .tzb-bar { min-height: 4px; }
.tzb-bar-col.meets-goal .tzb-bar { background: #1fa971; }
.tzb-bars--dense .tzb-bar { border-width: 1.5px; border-radius: 3px 3px 0 0; }

.tzb-bars-labels {
  grid-column: 2;
  grid-row: 2;
  margin-top: 6px;
  font-size: 11px;
  color: #777;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.tzb-bars-labels span { white-space: nowrap; overflow: visible; }
.tzb-bars-labels .is-current { color: var(--ink, #000); font-weight: 800; }
@media (max-width: 640px) {
  .tzb-bars--dense .tzb-bars-labels .is-minor { visibility: hidden; }
  .tzb-bars-labels { font-size: 10px; }
}

.tzb-bars-tip {
  position: absolute;
  z-index: 3;
  padding: 5px 10px;
  background: var(--ink, #000);
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

/* ── Stats: highlights for the selected period ─────────────────────────── */
.tzb-hl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 4px 0 28px;
}
.tzb-hl {
  padding: 12px 14px;
  background: var(--paper, #fff);
  border: 2px solid var(--ink, #000);
  border-radius: 14px;
  box-shadow: 3px 3px 0 0 var(--ink, #000);
  min-width: 0;
}
.tzb-hl--primary { background: var(--sun, #ffbf00); }
.tzb-hl-k {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #4a4a4a);
}
.tzb-hl-v {
  margin-top: 2px;
  font-family: var(--font-display, 'Baloo 2', system-ui, sans-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.tzb-hl-sub { font-size: 12px; color: #666; }
.tzb-hl-progress {
  height: 10px;
  margin-top: 8px;
  overflow: hidden;
  background: var(--cream, #fbf6e8);
  border: 1.5px solid var(--ink, #000);
  border-radius: var(--radius-pill, 999px);
}
.tzb-hl-progress span { display: block; height: 100%; background: var(--sun, #ffbf00); }
.tzb-hl-progress.is-done span { background: #1fa971; }

/* ── Stats: timeline of the period's entries ───────────────────────────── */
.tzb-section-title {
  margin: 0 0 12px;
  font-family: var(--font-display, 'Baloo 2', system-ui, sans-serif);
  font-size: 20px;
  font-weight: 700;
}
.tzb-load-more[hidden] { display: none; }

/* Empty stats */
.tzb-empty { text-align: center; color: #777; padding: 28px 16px; }

.tzb-toast{
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: linear-gradient(135deg,#1fa971,#148a5a);
  color: #fff;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
  font-size: 16px;
  font-weight: 700;
}

.tzb-toast.is-visible{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.tzb-video-wrap{
  margin-top: 12px;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  width: 358px;
  max-width: 100%;
}
/* YouTube API policy: the player viewport must stay at least 200×200px. */
.tzb-video-wrap iframe{
  display: block;
  width: 100%;
  height: 200px;
}

.tzb-time-wrap{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.tzb-time-toggle{
  font-size:14px;
  color:#444;
  display:flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
}

.tzb-time-toggle input{
  accent-color:#111;
  cursor:pointer;
}

.tzb-info{
  margin: 0 0 10px 0;
  font-size: 15px;
}
.tzb-info a{
  font-weight: 700;
  text-decoration: underline;
}

.tzb-lang-switcher {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
}
.tzb-lang-switcher--redeem {
  margin-left: 0;
  margin-bottom: 12px;
}
.tzb-lang-btn {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0.45;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.tzb-lang-btn:hover { opacity: 0.85; }
.tzb-lang-btn.is-active {
  opacity: 1;
  border-color: var(--ink, #000);
  background: var(--cream, #fbf6e8);
}