/* Kids daily tracker */
.tr-kids { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tr-kid { font: inherit; font-weight: 800; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--ink); }
.tr-kid[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.tr-kid.add { border-style: dashed; color: var(--green-dark); }
.tr-add { display: flex; gap: 8px; margin-bottom: 12px; }
.tr-add input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; border: 2px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.tr-date { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--night); color: #fff; border-radius: 20px; padding: 10px 12px; text-align: center; }
.tr-date b { display: block; font-size: 1.15rem; }
.tr-date span { display: block; font-size: .85rem; color: #cdd6f5; }
.tr-arrow { font: inherit; font-size: 1.8rem; line-height: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.tr-arrow:disabled { opacity: .3; cursor: default; }
[dir="rtl"] .tr-arrow { transform: scaleX(-1); }
.tr-stars { text-align: center; font-size: 2rem; letter-spacing: 4px; min-height: 48px; margin: 12px 0 2px; }
.tr-stars small { display: block; font-size: .9rem; letter-spacing: 0; color: var(--ink-soft); font-weight: 700; }
.tr-card { border-top: 1px solid var(--line); padding: 16px 0 6px; }
.tr-card h2 { font-size: 1.25rem; margin: 0 0 10px; }
.tr-salah { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tr-pray { font: inherit; font-weight: 800; border: 3px solid var(--line); background: #fff; border-radius: 18px; padding: 10px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); min-height: 78px; }
.tr-pray .ic { font-size: 1.5rem; line-height: 1.2; }
.tr-pray .nm { font-size: .9rem; }
.tr-pray.s1 { background: #e3f6ee; border-color: var(--green); }
.tr-pray.s2 { background: #fff3cf; border-color: var(--gold); }
.tr-hint, .tr-tawbah { font-size: .92rem; color: var(--ink-soft); margin: 8px 0 0; }
.tr-tawbah { background: #fff8e6; border: 1px solid #f3dfae; border-radius: 14px; padding: 8px 12px; }
.tr-counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.tr-counter { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 10px 12px; }
.tr-counter.good { background: #e3f6ee; }
.tr-counter.oops { background: #fde9e7; }
.tr-emoji { font-size: 1.8rem; }
.tr-label { flex: 1; font-weight: 700; font-size: .98rem; }
.tr-ctrl { display: flex; align-items: center; gap: 8px; }
.tr-ctrl b { min-width: 26px; text-align: center; font-size: 1.3rem; }
.tr-ctrl button { font: inherit; font-weight: 800; font-size: 1.3rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.tr-deeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tr-deed { font: inherit; font-weight: 700; font-size: .95rem; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; text-align: start; color: var(--ink); }
.tr-deed .ic { font-size: 1.4rem; }
.tr-deed .n { margin-inline-start: auto; background: var(--green); color: #fff; border-radius: 999px; min-width: 24px; padding: 0 6px; text-align: center; font-size: .85rem; }
.tr-deed .n:empty { display: none; }
.tr-deed:active { transform: scale(.97); }
.tr-total { font-weight: 700; margin: 10px 0 0; }
.tr-undo { font: inherit; font-size: .85rem; border: 0; background: none; color: var(--ink-soft); text-decoration: underline; cursor: pointer; margin-inline-start: 8px; }
.tr-msg { min-height: 24px; text-align: center; font-weight: 700; color: var(--green-dark); margin: 10px 0 0; }
.tr-report-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tr-report-head h2 { margin: 0; font-size: 1.3rem; }
.tr-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0; }
.tr-sum div { background: #faf6ee; border-radius: 16px; padding: 10px 12px; }
.tr-sum span { display: block; font-size: .85rem; color: var(--ink-soft); }
.tr-sum b { font-size: 1.4rem; }
.tr-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.tr-table th, .tr-table td { padding: 7px 8px; text-align: center; border-bottom: 1px solid #f1ebdf; white-space: nowrap; }
.tr-table th { background: var(--night); color: #fff; position: sticky; top: 0; }
.tr-table td:first-child, .tr-table th:first-child { text-align: start; }
.tr-bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--green); vertical-align: middle; margin-inline-start: 6px; }
@media (max-width: 520px) {
  .tr-salah { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .tr-pray { padding: 8px 2px; min-height: 70px; border-width: 2px; }
  .tr-pray .nm { font-size: .78rem; }
}
@media print {
  .site-header, .site-footer, .tr, .info-box, .game-head p, .mode-switch, #print, .roam-bot, .roam-trail-dot, .roam-ring-flash { display: none !important; }
  .tr-report { box-shadow: none; border: 0; }
}

/* account sync line */
.tr-sync { font-size: .88rem; color: var(--ink-soft); text-align: center; margin: 6px 0 0; min-height: 1.2em; }
.tr-sync a { color: var(--green-dark); font-weight: 700; }
