/* Bunnimoo 5.9 — "My day" timeline (bm-k.js). Soft colours, big targets, nothing flashes or loops; html.rm stills everything. */
button.nn-card { font: inherit; color: inherit; text-align: start; cursor: pointer; border: 0; }
button.nn-card:focus-visible { outline: 3px solid var(--blue-d, #3c78ad); outline-offset: 2px; }
.tlk h1 { margin-bottom: 0; }
.tlk .sub { margin: 2px 0 12px; color: var(--muted, #67637d); }

/* what's now / next */
.tlk-hero { display: flex; gap: 12px; align-items: center; padding: 14px; margin: 0 0 12px; border-radius: var(--r, 24px);
  background: linear-gradient(160deg, #eef6fd 0%, #f6f1fd 100%); box-shadow: var(--shadow); }
.tlk-hero.all { background: linear-gradient(160deg, #e9f7ef 0%, #f3f8ea 100%); }
.tlk-hero.free { background: linear-gradient(160deg, #eef8f2 0%, #eef4fc 100%); }
.tlk-hchar { flex: 0 0 auto; width: 84px; }
.tlk-hchar .charwrap { width: 84px; height: auto; }
.tlk-hbody { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tlk-hlbl { font-size: 14px; font-weight: 700; color: var(--blue-d, #3c78ad); background: #fff; border-radius: 999px; padding: 1px 10px; }
.tlk-hnow { display: flex; align-items: center; gap: 8px; font-size: 21px; }
.tlk-hi { display: inline-flex; width: 40px; height: 40px; }
.tlk-hi svg, .tlk-hni svg { width: 100%; height: 100%; }
.tlk-hgo { min-height: 48px; padding: 8px 22px; }
.tlk-hgo svg { width: 22px; height: 22px; }
.tlk-hnext { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-2, #4f4b66); background: rgba(255, 255, 255, .8);
  border-radius: 999px; padding: 4px 12px 4px 8px; min-height: 40px; }
.tlk-hnl { font-weight: 700; color: var(--muted, #67637d); }
.tlk-hni { display: inline-flex; width: 26px; height: 26px; }

/* the soft progress bar */
.tlk-prog { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; margin: 0 2px 14px; }
.tlk-pbar { height: 14px; border-radius: 999px; background: #e9ecf7; overflow: hidden; }
.tlk-pbar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #9bd8b8, #7cc6a2); transition: width .8s ease; }
.tlk-pnum { font-weight: 700; color: #22684a; /* 5.9: darker than --mint-d so it reads on the pink day tint (audit: 4.42 → 5.6) */ font-size: 17px; white-space: nowrap; }
.tlk-pips { grid-column: 1 / -1; display: flex; gap: 6px; }
.tlk-pips i { width: 10px; height: 10px; border-radius: 50%; background: #dfe3f2; }
.tlk-pips i.on { background: #7cc6a2; }
.tlk-pips i.now { background: #fff; box-shadow: inset 0 0 0 2.5px #6aa7d6; }

/* the timeline */
.tlk-line { list-style: none; margin: 0 0 18px; padding: 0; position: relative; }
.tlk-part { display: flex; align-items: center; gap: 6px; margin: 12px 0 4px; color: var(--muted, #67637d); font-size: 15px; }
.tlk-part span { display: inline-flex; width: 22px; height: 22px; }
.tlk-part span svg { width: 100%; height: 100%; }
.tlk-row { position: relative; }
.tlk-row::before { content: ''; position: absolute; inset-inline-start: 87px; top: 0; bottom: 0; width: 4px; margin-inline-start: -2px; background: #e3e7f5; border-radius: 2px; }
.tlk-row.fill::before { background: #a8dcc0; }
.tlk-step { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 72px; padding: 6px 0; text-align: start; position: relative; }
.tlk-time { flex: 0 0 52px; text-align: center; font-variant-numeric: tabular-nums; font-size: 16px; color: var(--muted, #67637d); }
.tlk-node { flex: 0 0 50px; height: 50px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #e3e7f5; display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.tlk-ic { display: inline-flex; width: 32px; height: 32px; }
.tlk-ic svg { width: 100%; height: 100%; }
.tlk-tick { position: absolute; bottom: -4px; inset-inline-end: -4px; width: 22px; height: 22px; border-radius: 50%; background: #5fb68b; display: inline-flex; padding: 3px; box-shadow: 0 0 0 2px #fff; }
.tlk-tick svg { width: 100%; height: 100%; }
.tlk-tick svg * { stroke: #fff !important; }
.tlk-card { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; background: #fff; border-radius: 18px; padding: 8px 12px; box-shadow: var(--shadow); }
.tlk-card b { font-weight: 600; font-size: 17px; line-height: 1.25; }
.tlk-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; border-radius: 999px; padding: 1px 10px; background: #eef0f7; color: var(--ink-2, #4f4b66); }
.tlk-chip svg { width: 15px; height: 15px; }
.tlk-chip.c-done { background: #e5f5ec; color: #2c6e50; }
.tlk-chip.c-now { background: #ddeefc; color: #2a5f8c; font-weight: 700; }
.tlk-chip.c-next { background: #f3ecfb; color: #5c4a86; }
.tlk-chip.c-left { background: #fdf3e4; color: #855e27; }
.st-done .tlk-node { box-shadow: 0 0 0 3px #a8dcc0; background: #f1faf5; }
.st-done .tlk-card { background: #f8fcfa; }
.st-done .tlk-card b { color: var(--ink-2, #4f4b66); }
.st-now .tlk-node { box-shadow: 0 0 0 4px #8cc3ea, 0 0 0 9px rgba(140, 195, 234, .25); }
.st-now .tlk-card { box-shadow: 0 0 0 2px #b9daf3, var(--shadow); }
.st-next .tlk-node { box-shadow: 0 0 0 3px #cdbfe9; }
.st-later .tlk-card, .st-later .tlk-node { opacity: .9; }
.tlk-row.focus .tlk-card { background: #f4f9fe; }
.tlk-step:focus-visible { outline: 3px solid var(--blue-d, #3c78ad); outline-offset: 2px; border-radius: 18px; }
.tlk-step:active .tlk-card { transform: scale(.985); }
/* the now node breathes in softly twice when the screen opens, then rests */
@keyframes tlkBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.st-now .tlk-node { animation: tlkBreath 2.6s ease-in-out 2; }

/* parent area */
.tlk-par .tlk-line { margin-bottom: 6px; }
.tlk-histwrap { overflow-x: auto; margin: 6px 0; }
.tlk-hist { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: 14px; }
.tlk-hist th { font-weight: 600; color: var(--ink-2, #4f4b66); text-align: center; padding: 2px; white-space: nowrap; }
.tlk-hist th small { display: block; font-weight: 400; color: var(--muted, #67637d); }
.tlk-hist th[scope=row] { text-align: start; display: flex; align-items: center; gap: 4px; }
.tlk-hic { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; }
.tlk-hic svg { width: 100%; height: 100%; }
.tlk-hist td { text-align: center; height: 30px; min-width: 30px; border-radius: 8px; background: #f3f4fa; }
.tlk-hist td.y { background: #e2f4ea; }
.tlk-hist td.y svg { width: 18px; height: 18px; margin: auto; }
.tlk-hist td.n i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #c6cbe0; }
.tlk-hist td.na { background: transparent; }
.tlk-hist tr.tot td { background: transparent; font-weight: 700; color: var(--ink-2, #4f4b66); }
.tlk-ed { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line, rgba(46, 43, 63, .07)); }
.tlk-ed.off { opacity: .6; }
.tlk-ed-n, .tlk-ed-name { flex: 1 1 120px; min-width: 0; }
.tlk-ed-name { font: inherit; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--lilac-2, #d8dcf6); }
.tlk-ed-time { font: inherit; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--lilac-2, #d8dcf6); background: #fff; }
.tlk-ed-btns { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.tlk-up svg { transform: rotate(-90deg); }
.tlk-down svg { transform: rotate(90deg); }
.tlk-ed-btns button[disabled] { opacity: .3; pointer-events: none; }
.tlk-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.tlk-types .ip { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; width: auto; min-width: 72px; height: auto; padding: 6px 8px; font-size: 13px; }
.tlk-types .ip svg { width: 30px; height: 30px; }

@media (max-width: 370px) {
  .tlk-time { flex-basis: 44px; font-size: 14px; }
  .tlk-row::before { inset-inline-start: 77px; }
  .tlk-node { flex-basis: 44px; height: 44px; }
  .tlk-ic { width: 28px; height: 28px; }
  .tlk-hchar, .tlk-hchar .charwrap { width: 64px; }
}
html.rm .tlk *, html.rm .tlk *::before { animation: none !important; transition: none !important; }
html.big .tlk-card b { font-size: 19px; }

/* 5.9 petting: the soft hand that strokes the rabbit (anim.js) sits above the rabbit and is invisible outside its animation */
.fx .prop.pethand { z-index: 6; opacity: 0; transform-origin: 50% 30%; }

/* 5.9: the app is light only; a browser's automatic dark mode turned the pastel calm corner a dark red */
:root { color-scheme: only light; }

/* 5.9 calm corner: no drifting sky clouds over the title and the Stop button */
body:has(#screen.screen-calm) #bg-life { display: none; }
