/* ------------------------------------------------------------ 4. birds */
/* The day as a sky, the chosen bird large with its recording, the birds as soft rows that scroll inside their own
   panel. Wide: sky and rows on the left, the bird on the right. Upright tablet: sky, the bird, the rows. Phone: sky,
   then the rows straight away; the picked bird opens inside its own row. Season: the dawn chorus in place of all three.
   Colours are tokens only; the sky and the spectrogram read theirs through ctx.colors(). */
.birds { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 23rem; grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas: "top side" "sky side" "list side"; gap: var(--s-3) var(--s-5); }
.birds-top { grid-area: top; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); min-width: 0; }
.birds-sum { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-listen { margin-left: auto; }
.birds-info { display: flex; align-items: center; gap: var(--s-2) var(--s-3); min-width: 0; }
.birds-info .birds-sum { flex: none; }
.bd-notice { flex: 0 1 auto; justify-content: flex-end; }
.bd-notice { display: flex; gap: var(--s-2); min-width: 0; }
.bd-notice:empty { display: none; }
.bd-flag { display: inline-flex; align-items: center; gap: .4rem; min-height: var(--tap); max-width: 15rem; padding: 0 .85rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-raise); color: var(--ink); font-size: var(--t-small); min-width: 0; }
.bd-flag b { display: inline-flex; align-items: center; gap: .35rem; flex: none; font-weight: 600; color: var(--ink); }
.bd-flag b::before { content: ''; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); }
.bd-flag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bd-tag { font-style: normal; font-family: var(--font-sans, inherit); margin-left: .5rem; padding: .05rem .45rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); font-size: var(--t-tiny); }
.bird-row.is-flag .bird-name span { color: var(--ink); }
.bd-moments { display: flex; align-items: baseline; gap: var(--s-3); min-width: 0; }
.bd-mlabel { flex: none; font-size: var(--t-tiny); color: var(--ink-2); }
.bd-moments ol { display: flex; flex-wrap: wrap; gap: .25rem .4rem; min-width: 0; }
.bd-moments li { padding: .1rem .5rem; border-radius: 999px; background: var(--bg-sunk); font-size: var(--t-small); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.bd-x { margin-left: .3rem; color: var(--ink-2); font-size: var(--t-tiny); }
.bd-listen[aria-pressed="true"] { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.bd-listen[aria-busy="true"] { opacity: .6; }
.bd-listen:disabled { opacity: .4; }
.bd-listen[hidden] { display: none; }

/* the sky */
.bd-sky { grid-area: sky; position: relative; height: clamp(8.5rem, 24vh, 13rem); min-width: 0; border-radius: var(--r-3); overflow: hidden; background: var(--bg-raise); }
.bd-sky-pic { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bd-sky-marks { position: absolute; inset: 0; pointer-events: none; }
.bd-sky-l { position: absolute; bottom: 6px; translate: -50% 0; white-space: nowrap; font-size: var(--t-tiny); line-height: 1.2; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bd-sky-l[data-side="left"] { translate: calc(-100% - 5px) 0; }
.bd-sky-l[data-side="right"] { translate: 5px 0; }
.bd-sky-hour[data-side="right"] { translate: -4px 0; } .bd-sky-hour[data-side="left"] { translate: calc(-100% + 4px) 0; }
.bd-sky-hour.is-now { color: var(--ink); font-weight: 600; }
.bd-sky-sun { bottom: 34px; display: inline-flex; align-items: center; gap: .25rem; color: var(--ink); }

/* the chosen bird */
.birds-side { grid-area: side; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-4); align-content: start; min-width: 0; min-height: 0; }
.bd-card { display: grid; gap: var(--s-3); padding: var(--s-4); min-width: 0; align-content: start; }
.bd-who { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }
.bird-photo { width: 3rem; height: 3rem; flex: none; border-radius: 50%; object-fit: cover; background: var(--bg-sunk); color: var(--ink-3); display: grid; place-items: center; }
.bd-card .bird-photo { width: 6rem; height: 6rem; border-radius: var(--r-2); }
.bird-name { display: grid; min-width: 0; line-height: 1.3; }
.bird-name b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bird-name span { font-size: var(--t-tiny); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-card .bird-name b { font-family: var(--font-title); font-size: 1.5rem; font-weight: 600; white-space: normal; line-height: 1.15; }
.bd-card .bird-name span { font-size: var(--t-small); }
.bd-facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.bd-facts div { display: grid; }
.bd-facts dt { font-size: var(--t-tiny); color: var(--ink-2); }
.bd-facts dd { font-variant-numeric: tabular-nums; }
.bd-song { display: grid; grid-template-columns: var(--tap) minmax(0, 1fr); gap: var(--s-2) var(--s-3); align-items: center; }
.bd-spec { grid-column: 1 / -1; position: relative; height: 9rem; border-radius: var(--r-2); overflow: hidden; background: var(--bg-sunk); }
.bd-spec-pic { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity var(--med); }
.bd-spec-pic.is-on { opacity: 1; }
.bd-veil { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg-sunk) 72%, transparent); transform-origin: right center; opacity: 0; }
.bd-veil.is-on { opacity: 1; }
.bd-head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--accent); opacity: 0; }
.bd-head.is-on { opacity: 1; }
.bd-band, .bd-none { font-size: var(--t-tiny); color: var(--ink-2); }
/* the card's last line: the reference recording (a small play button and its word) and "Credits", which opens the
   names behind the picture and the reference, whole, one tap away */
.bd-foot { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.bd-ref { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; }
.bd-ref-l { font-size: var(--t-small); color: var(--ink); line-height: 1.25; }
.bd-credits-btn { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; min-height: var(--tap); padding: 0 .55rem; border-radius: var(--r-pill); font-size: var(--t-small); color: var(--ink-2); transition: color var(--fast), background var(--fast); }
.bd-credits-btn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.bd-credits-btn .ico { transition: rotate var(--med) var(--ease); }
.bd-credits-btn[aria-expanded="true"] { color: var(--ink); }
.bd-credits-btn[aria-expanded="true"] .ico { rotate: 180deg; }
.bd-credits { display: grid; gap: .2rem; min-width: 0; animation: bd-in var(--med) var(--ease); }
.bd-credits[hidden] { display: none; }
.bd-credits p { font-size: var(--t-tiny); line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.bd-cr-k { color: var(--ink); font-weight: 600; }
.bd-ref-lic { white-space: nowrap; }
@keyframes bd-in { from { opacity: 0; transform: translateY(-.25rem); } to { opacity: 1; transform: none; } }
.bd-late { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-2); min-height: 0; overflow: hidden; }
.bd-late[hidden] { display: none; }
.bird-latest { min-height: 0; overflow: hidden; }
.bird-latest li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .5rem; padding: .45rem 0; border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-2); }
.bird-latest li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bird-latest time { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* the birds: one soft row each; the panel scrolls inside itself */
.birds-main { grid-area: list; display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; min-height: 0; }
.bird-axis { flex: none; }
.bird-axis, .bird-row { display: grid; grid-template-columns: 3rem minmax(0, 13rem) minmax(0, 1fr) 2rem var(--tap); gap: var(--s-3); align-items: center; padding-inline: var(--s-3); }
.bird-axis .axis-lane { grid-column: 3; }
.axis-pad, .axis-pad2 { display: none; }
.bird-axis[data-mode="today"] { display: none; }          /* the hours are under the sky already; the rows' lanes show the daylight */
.axis-lane { position: relative; height: 1.1rem; font-size: var(--t-tiny); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.axis-lane span { position: absolute; top: 0; translate: -50% 0; white-space: nowrap; }
.bird-axis[data-mode="today"] .axis-lane span:first-of-type { translate: 0 0; }
.bird-axis[data-mode="today"] .axis-lane span:last-of-type { translate: -100% 0; }
.axis-dow.is-now { color: var(--ink); font-weight: 600; }
.bird-rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; align-content: start; display: grid; gap: var(--s-1); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.bird-row { padding-block: .45rem; border-radius: var(--r-2); cursor: pointer; transition: background var(--fast); }
.bird-row.is-on { background: var(--accent-soft); }
.bird-row.is-on .bird-name b { font-weight: 700; }
.bird-row.is-sounding .beat { background: var(--accent); }
@media (hover: hover) { .bird-row:hover:not(.is-on) { background: color-mix(in srgb, var(--ink) 5%, transparent); } }
.bird-lane { position: relative; height: 1.6rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.bird-lane .axis-day { position: absolute; top: 0; bottom: 0; border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.bird-lane[data-mode="week"] { background: none; }
.day-slot { position: absolute; top: 50%; width: 5px; height: 5px; translate: -50% -50%; border-radius: 50%; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.beat { position: absolute; top: 50%; translate: -50% -50%; border-radius: 50%; background: var(--c-yard); transition: background var(--fast); }
.bird-row.is-on .beat { background: var(--accent); }
.bird-count { text-align: right; color: var(--ink-2); font-size: var(--t-small); }
.bird-call { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--ink); transition: border-color var(--fast), background var(--fast), transform var(--fast) var(--ease); }
.bird-call .ico { fill: currentColor; stroke-width: 1; }
.bird-call:hover { border-color: var(--line-strong); } .bird-call:active { transform: scale(.92); }
.bird-call[aria-pressed="true"] { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.bd-play { width: 3.25rem; height: 3.25rem; }

/* an upright tablet: the sky, then the bird beside the latest calls, then the rows */
@media (max-width: 1000px) {
  .birds { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: "top" "sky" "side" "list"; }
  .birds-side { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: auto; gap: var(--s-5); align-items: start; }
  .bird-latest li:nth-child(n+6) { display: none; }
  .bd-spec { height: 7rem; }
}
/* a phone: the same order, everything a little smaller; the count of the day sits under the buttons */
@media (max-width: 720px) {
  .birds { gap: var(--s-2); }
  .birds-top { gap: var(--s-1) var(--s-2); }
  .birds-top .seg button { padding: 0 .8rem; }
  .birds-info { order: 3; flex-basis: 100%; justify-content: space-between; }
  .birds-sum { font-size: var(--t-tiny); }
  .birds-info .birds-sum { flex: 0 1 auto; }
  .bd-notice { flex: none; gap: var(--s-1); }
  .bd-flag { font-size: var(--t-tiny); padding: 0 .6rem; gap: .3rem; max-width: 9.5rem; }
  .bd-flag b::before { display: none; }
  .bd-flag b { font-weight: 700; }
  .bd-moments li { font-size: var(--t-tiny); }
  .bd-sky { height: clamp(6.75rem, 15.5vh, 8.5rem); }
  .birds-side { grid-template-columns: minmax(0, 1fr); }
  .bd-late { display: none; }
  .bd-card { gap: var(--s-2); padding: var(--s-3); }
  .bd-who { gap: var(--s-3); }
  .bd-card .bird-photo { width: 4.5rem; height: 4.5rem; }
  .bd-card .bird-name b { font-size: 1.1875rem; }
  .bd-card .bird-name span { font-size: var(--t-tiny); }
  .bd-facts { gap: var(--s-1) var(--s-4); }
  .bd-facts dd { font-size: var(--t-small); }
  .bd-song { grid-template-columns: minmax(0, 1fr) var(--tap); gap: var(--s-1) var(--s-3); }
  .bd-spec { grid-column: 1; grid-row: 1; height: 4.75rem; }
  .bd-play { grid-column: 2; grid-row: 1; width: var(--tap); height: var(--tap); }
  .bd-band { display: none; }
  .bird-axis, .bird-row { grid-template-columns: 2.75rem minmax(0, 1fr) 1.6rem var(--tap); gap: 0 var(--s-3); padding-inline: var(--s-2); }
  .bird-axis[data-mode="today"] { display: none; }
  .bird-axis .axis-lane { grid-column: 2; }
  .bird-row { padding-block: .3rem; }
  .bird-photo { width: 2.75rem; height: 2.75rem; }
  .bird-row .bird-photo { grid-row: 1 / 3; }
  .bird-row .bird-name { grid-column: 2; grid-row: 1; }
  .bird-row .bird-name span { display: none; }
  .bird-track { grid-column: 2; grid-row: 2; }
  .bird-count { grid-row: 1 / 3; }
  .bird-call { grid-row: 1 / 3; }
  .bird-lane { height: 1rem; }
}
@media (max-height: 720px) and (max-width: 720px) { .bd-sky { height: 6rem; } }

/* the card's frame: beside the rows it is simply open; on a phone it grows open inside its row */
.bd-more { display: grid; grid-template-rows: 1fr; min-width: 0; }
.bd-more > .bd-card { min-height: 0; }
@media (max-width: 720px) {
  .birds { grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "top" "sky" "list"; }
  .birds-side { display: none; }
  .bird-row > .bd-more { grid-column: 1 / -1; grid-row: 3; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--med) var(--ease), visibility 0s var(--med); }
  .bird-row > .bd-more.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--med) var(--ease); }
  .bird-row > .bd-more > .bd-card { overflow: hidden; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; cursor: default; }
  .bird-row > .bd-more.is-open > .bd-card { padding-top: var(--s-2); }
  .bird-row .bd-who { display: none; }
  .bird-row.is-open { padding-bottom: var(--s-2); }
  .bird-row .bd-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-1) var(--s-3); }
}

/* Season: the dawn chorus (js/birds-record.js) takes the place of the sky, the rows and the bird */
.birds.is-season { grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "top top" "season season"; }
.birds.is-season > .bd-sky, .birds.is-season > .birds-side, .birds.is-season > .birds-main, .birds.is-season .birds-info, .birds.is-season .bd-listen { display: none; }
.bd-season:not([hidden]) { grid-area: season; display: grid; min-width: 0; min-height: 0; }
.bd-season .rec-dawn { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-3); min-width: 0; min-height: 0; animation: bd-in var(--med) var(--ease); }
.bd-season .dawn-grid { min-height: 0; grid-template-rows: minmax(0, 1fr); }
.bd-season .dawn-left { grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.bd-season .dawn-box { height: auto; min-height: 12rem; background: var(--bg-raise); }
.bd-season .dawn-right { max-height: none; min-height: 0; }
.bd-season-wait { align-self: center; justify-self: center; }
@media (max-width: 1000px) {
  .birds.is-season { grid-template-areas: "top" "season"; }
  .bd-season .dawn-grid { grid-template-rows: auto minmax(0, 1fr); }
  .bd-season .dawn-left { grid-template-rows: auto auto; }
  .bd-season .dawn-box { height: 17rem; }
}
@media (max-width: 720px) { .bd-season .dawn-box { height: 13rem; min-height: 0; } .bd-season .rec-dawn { gap: var(--s-2); } }
@media (max-height: 720px) and (max-width: 720px) { .bd-season .dawn-box { height: 10rem; } }

/* the Data panel's row of block names: a tap goes to that block */
.bd-jump { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.bd-jump-b { min-height: var(--tap); padding: 0 1rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); font-size: var(--t-small); color: var(--ink); transition: border-color var(--fast); }
.bd-jump-b:hover { border-color: var(--line-strong); }
@media (prefers-reduced-motion: reduce) { .bd-veil, .bd-head { display: none; } .bd-more, .bd-credits-btn .ico { transition: none !important; } }

/* ------------------------------------------------------------ the record, in the Data panel (js/birds-record.js) */
.rec-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); min-width: 0; }
.rec-head h3 { color: var(--ink); }
.rec-span { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rec-head .seg { margin-left: auto; }
.rec-load { min-height: 12rem; }

/* dawn chorus: the picture, and beside it (under it on a phone) the species in the order they start the day */
.dawn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: var(--s-4); min-width: 0; }
.dawn-left { display: grid; gap: var(--s-2); min-width: 0; align-content: start; }
.dawn-box { position: relative; height: 17rem; min-width: 0; border-radius: var(--r-2); overflow: hidden; }
.dawn-pic { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.dawn-read { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; min-height: 1.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dawn-right { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; max-height: 19rem; }
.dawn-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; display: grid; gap: 2px; align-content: start; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.dawn-row { width: 100%; min-height: var(--tap); display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) 3.2rem 4.4rem; gap: var(--s-2); align-items: center; padding: 0 var(--s-2); border-radius: var(--r-2); text-align: left; font-size: var(--t-small); color: var(--ink); transition: background var(--fast); }
.dawn-row .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.dawn-row[aria-pressed="true"] { background: var(--accent-soft); }
.dawn-row[aria-pressed="true"] .dawn-name { font-weight: 600; }
@media (hover: hover) { .dawn-row:hover:not([aria-pressed="true"]) { background: color-mix(in srgb, var(--ink) 5%, transparent); } }
.dawn-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dawn-play { display: grid; place-items: center; color: var(--ink-2); }
.dawn-play .ico { fill: currentColor; stroke-width: 1; }
.dawn-row[aria-pressed="true"] .dawn-play { color: var(--accent); }
.dawn-cols { min-height: 0; padding-block: 0 var(--s-1); font-size: var(--t-tiny); color: var(--ink-2); }
.dawn-cols span:nth-child(n+3) { text-align: right; }

/* arrivals and departures: one lane per species across the season, a dot for each day heard */
.ss-list { display: grid; gap: 0; max-height: 26rem; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ss-row { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) 3.6rem 3.6rem; gap: var(--s-3); align-items: center; padding: .35rem var(--s-1); border-top: 1px solid var(--line); font-size: var(--t-small); }
.ss-head { border-top: 0; padding-block: 0; font-size: var(--t-tiny); color: var(--ink-2); }
.ss-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-d { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; display: grid; line-height: 1.25; }
.ss-d small { font-size: var(--t-tiny); color: var(--ink-3); }
.ss-lanes { display: grid; gap: 3px; min-width: 0; }
.ss-lane { position: relative; height: .85rem; }
.ss-lane.is-before { height: .5rem; opacity: .55; }
.ss-span { position: absolute; top: 50%; height: 2px; translate: 0 -50%; border-radius: 2px; background: color-mix(in srgb, var(--c-yard) 45%, transparent); }
.ss-day { position: absolute; top: 50%; width: 5px; height: 5px; translate: -50% -50%; border-radius: 50%; background: var(--c-yard); }
.ss-lane.is-before .ss-day { width: 4px; height: 4px; background: var(--ink-3); }
.ss-lane.is-before .ss-span { background: color-mix(in srgb, var(--ink-3) 45%, transparent); }
.ss-ticks { height: 1rem; }
.ss-ticks span { position: absolute; top: 0; white-space: nowrap; }
.ss-key { display: flex; gap: var(--s-4); font-size: var(--t-tiny); color: var(--ink-2); }
.ss-key span { display: inline-flex; align-items: center; gap: .35rem; }
.ss-key i { width: 1rem; height: 2px; background: var(--c-yard); } .ss-key i.is-before { background: var(--ink-3); }

/* life list: every species ever heard, the day it was first heard; found by search */
.life-search { display: flex; align-items: center; gap: .55rem; padding: 0 1rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass); color: var(--ink-3); }
.life-search:focus-within { border-color: var(--accent); color: var(--ink-2); }
.life-q { flex: 1; min-width: 0; height: var(--tap); border: 0; padding: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; outline: none; appearance: none; -webkit-appearance: none; }
.life-q::placeholder { color: var(--ink-3); opacity: 1; }
.life-q::-webkit-search-cancel-button { -webkit-appearance: none; }
.life-list { display: grid; max-height: 24rem; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.life-row { display: grid; grid-template-columns: minmax(0, 1fr) auto var(--tap); gap: var(--s-3); align-items: center; min-height: var(--tap); padding: .2rem var(--s-1); border-top: 1px solid var(--line); }
.life-row[hidden] { display: none; }
.life-d { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.life-play .ico { fill: currentColor; stroke-width: 1; }
.life-none { font-size: var(--t-small); color: var(--ink-2); }
.life-none[hidden] { display: none; }

@media (max-width: 1000px) {
  .dawn-grid { grid-template-columns: minmax(0, 1fr); }
  .dawn-right { max-height: 17rem; }
}
@media (max-width: 720px) {
  .dawn-box { height: 13.5rem; }
  .rec-head .seg { margin-left: 0; }
  .ss-row { grid-template-columns: minmax(0, 1fr) 3.4rem 3.4rem; gap: .15rem var(--s-2); }
  .ss-row .ss-lanes { grid-column: 1 / -1; grid-row: 2; }
  .ss-head .ss-ticks { grid-column: 1 / -1; grid-row: 2; }
  .ss-list { max-height: 22rem; }
}
.life-row > .bird-name { grid-column: 1; grid-row: 1; }
.life-row > .life-d { grid-column: 2; grid-row: 1; }
.life-row > .life-play, .life-row > .life-pad { grid-column: 3; grid-row: 1; }
.life-row .bird-name span { display: block; }
#birds .data-panel .table thead th { white-space: nowrap; }

/* the smallest phones (320 px): Today · Week · Season and Listen keep to one row, so the rows get the room */
@media (max-width: 360px) {
  .birds-top .seg button { padding: 0 .6rem; }
  .bd-listen { padding-inline: .85rem; }
  .bd-listen .ico { display: none; }
}
