/* The account page (/account.html): tabs, design cards, credits and settings. Builds on app.css (colours, header) and
   offer.css (the round account button, the credits pill and the .soon-* / .acct-* buttons). Logical properties only (RTL needs no overrides). */

.account-page { background: var(--paper); color: var(--ink); --ok: #1b7a3a; --tag-green-bg: #e6f4ea; --tag-green: #14592a; --tag-amber-bg: #fdf0d5; --tag-amber: #7a4b00; --tag-grey-bg: #eceef1; --soft: #f7f8fa; }
@media (prefers-color-scheme: dark) {
  .account-page { --ok: #7fd69a; --tag-green-bg: rgb(127 214 154 / 0.16); --tag-green: #7fd69a; --tag-amber-bg: rgb(241 195 106 / 0.16); --tag-amber: #f1c36a; --tag-grey-bg: #2a2e35; --soft: #181b1f; }
}
.acct-main {
  --o-ink: var(--ink); --o-soft: var(--muted); --o-line: var(--line); --o-ctl: var(--control); --o-accent: var(--accent); --o-on-accent: var(--on-accent);
  --o-fill: var(--accent-fill); --o-fill-top: var(--accent-top); --o-fill-deep: var(--accent-deep); --o-btn-top: var(--btn-top); --o-btn-bottom: var(--btn-bottom);
}
.acct-main { padding-block: 1.5rem 3rem; display: grid; gap: 1rem; min-inline-size: 0; }
.acct-main > * { min-inline-size: 0; }
.acct-h1 { margin: 0; font-size: clamp(2rem, 8vw, 2.5rem); font-weight: 820; line-height: 1.1; letter-spacing: -0.035em; }
@media (min-width: 48em) {
  .acct-main { grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem); align-items: center; column-gap: 1.5rem; }
  .acct-main > .acct-body { display: contents; }
  .acct-main > .acct-body > * { grid-column: 1 / -1; }
  .acct-main > .acct-body > .acct-tabs { grid-column: 2; grid-row: 1; }
  .acct-h1 { grid-column: 1; grid-row: 1; }
}
.acct-h2 { margin: 0.5rem 0 0; font-size: 1.15rem; line-height: 1.3; letter-spacing: 0; }
.acct-body, .acct-panel { display: grid; gap: 1rem; min-inline-size: 0; }
.acct-lead { margin: 0; line-height: 1.5; max-inline-size: 42rem; }
.acct-note { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }
.acct-main [hidden] { display: none !important; }

/* buttons: the same look as the account window's (offer.css), usable on the page */
.account-page .acct-act, .account-page .soon-buy, .account-page .soon-pay { inline-size: auto; }
.acct-act { box-sizing: border-box; }
.soon-buy.acct-link { color: var(--on-accent); }
.account-page .acct-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.account-page .acct-act { flex: 0 1 auto; padding-block: 0.5rem; min-block-size: 48px; border-radius: 999px; border-color: var(--btn-edge); font-weight: 700; }
.account-page .acct-act.acct-danger { border-color: var(--accent-deep); }
/* the one red button of a screen */
.account-page .acct-act.acct-primary, .account-page .acct-sheet .acct-primary {
  border-color: var(--accent-deep); background: linear-gradient(var(--accent-top), var(--accent-fill)); color: var(--on-accent);
  box-shadow: 0 10px 24px -12px rgb(198 40 40 / 0.7);
}
.account-page .acct-act.acct-primary:hover { color: var(--on-accent); background: var(--accent-deep); }
.acct-linkbtn {
  min-block-size: 44px; padding: 0 2px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.acct-linkbtn:hover { color: var(--accent); }
.acct-linkbtn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.acct-linkbtn:disabled { opacity: 0.55; cursor: default; }
.acct-signin { justify-self: start; padding-inline: 1.5rem; }

/* tabs: one pill with three segments, the open one dark (E1) */
.acct-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); }
.acct-tab {
  flex: 1 1 0; min-inline-size: 0; min-block-size: 44px; padding-inline: 0.5rem; border: 0; border-radius: 999px; background: none; color: var(--muted);
  font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; line-height: 1.15;
}
.acct-tab:hover { color: var(--ink); }
.acct-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.acct-tab:focus-visible, .acct-act:focus-visible, .acct-quiet:focus-visible, .acct-link:focus-visible, .soon-buy:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.acct-panel:focus { outline: none; }

/* design cards */
.acct-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
/* cards of a row are one height (owner 2026-10-26): the head (a name of up to two lines and the date), the plan, the options in one
   line and the photos in one row of tiles keep their sizes whatever the design has; the question to delete sits over the card */
.acct-card {
  position: relative; display: grid; grid-template-rows: auto auto auto 1fr; gap: 0.5rem; align-content: start; padding: 1rem;
  border: 1px solid var(--line); border-radius: 18px; background: var(--raised); min-inline-size: 0;
}
.acct-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0.25rem; block-size: 4.4em; }
.acct-card-title { display: grid; align-content: start; gap: 0.15rem; min-inline-size: 0; }
.acct-card-line { display: flex; align-items: flex-start; gap: 0.15rem; min-inline-size: 0; }
.acct-card-name {
  font-weight: 750; color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; border-radius: 4px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.acct-card-name:hover { color: var(--accent); }
.acct-card-date { font-size: 0.85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the pencil beside the name: always there on a touch screen, on hover or focus with a mouse */
.acct-pen {
  flex: none; display: grid; place-items: center; inline-size: 32px; block-size: 28px; margin-block-start: -3px; padding: 0;
  border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer;
}
.acct-pen svg { inline-size: 18px; block-size: 18px; }
.acct-pen:hover { background: var(--paper-alt); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .acct-pen { opacity: 0; }
  .acct-card:hover .acct-pen, .acct-pen:focus-visible { opacity: 1; }
}
.acct-more {
  inline-size: 44px; block-size: 44px; margin-block-start: -6px; margin-inline-end: -6px; padding: 0; border: 1px solid var(--btn-edge);
  border-radius: 50%; background: linear-gradient(var(--btn-top), var(--btn-bottom)); color: var(--muted); font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.acct-more:hover, .acct-more[aria-expanded="true"] { border-color: var(--btn-edge); background: var(--paper-alt); color: var(--ink); }
/* the menu: under the button on a computer, a sheet from the bottom on a phone */
.acct-menu {
  position: absolute; inset-block-start: 3.4rem; inset-inline-end: 0.75rem; z-index: 3; min-inline-size: 12rem; margin: 0; padding: 0.35rem;
  list-style: none; background: var(--raised); border: 1px solid var(--btn-edge); border-radius: 10px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
}
.acct-menu-item {
  display: block; box-sizing: border-box; inline-size: 100%; padding: 0.6rem 0.75rem; border: 0; border-radius: 6px; background: none;
  color: var(--ink); font: inherit; text-align: start; text-decoration: none; cursor: pointer;
}
.acct-menu-item:hover, .acct-menu-item:focus { background: var(--paper-alt); outline: none; }
.acct-menu-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.acct-menu li:last-child { margin-block-start: 0.3rem; padding-block-start: 0.3rem; border-block-start: 1px solid var(--line); }
.acct-menu-danger { color: var(--accent); }
@media (max-width: 30em) {
  .acct-menu { position: fixed; inset: auto 0 0 0; min-inline-size: 0; padding: 0.5rem 0.5rem 1.25rem; border-radius: 14px 14px 0 0; }
  .acct-menu-item { padding: 0.9rem 0.75rem; font-size: 1.05rem; }
}
/* rename on the card: the field and two small buttons in the name's place */
.acct-rename { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.25rem; }
.acct-rename-input {
  min-inline-size: 0; box-sizing: border-box; block-size: 2.1rem; padding: 0 0.5rem; border: 2px solid var(--accent); border-radius: 6px;
  background: var(--raised); color: var(--ink); font: inherit; font-weight: 650;
}
.acct-rename-ok, .acct-rename-no {
  inline-size: 2.1rem; block-size: 2.1rem; padding: 0; border: 1px solid var(--btn-edge); border-radius: 6px; cursor: pointer;
  background: linear-gradient(var(--btn-top), var(--btn-bottom)); color: var(--ink); font: inherit;
}
.acct-rename-ok { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.acct-rename-note { grid-column: 1 / -1; font-size: 0.8rem; }
.acct-thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--paper-alt); color: var(--muted); overflow: hidden; }
.acct-thumb-icon { font-size: 2.5rem; line-height: 1; }
/* a phone: the card is a row (E2) - the small plan on the left, the name and the options beside it, the photos under both */
@media (max-width: 33.99em) {
  .acct-card { grid-template-columns: 5.25rem minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 0.75rem; }
  .acct-card-head { grid-column: 2; grid-row: 1; block-size: auto; min-block-size: 3.2em; }
  .acct-thumb { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: 1; align-self: start; }
  .acct-opts { grid-column: 2; grid-row: 2; }
  .acct-photos { grid-column: 1 / -1; }
}
.acct-thumb-img { inline-size: 100%; block-size: 100%; object-fit: contain; background: #fff; }
/* the options: "4 options:" and the first names in one line, the rest as "+N" */
.acct-opts { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.35rem; block-size: 1.9rem; overflow: hidden; font-size: 0.85rem; }
.acct-opts-n { flex: none; font-weight: 650; }
.acct-opts-none { color: var(--muted); }
.acct-chip {
  flex: none; padding: 0.1rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acct-opts-n + .acct-chip { flex: 0 1 auto; min-inline-size: 2.5em; }    /* one long first name is cut short, the others go into "+N" */
.acct-chip-more { color: var(--muted); }
.acct-photos { display: grid; gap: 0.35rem; align-content: start; }
.acct-photos-line { margin: 0; font-size: 0.82rem; color: var(--muted); }
/* "Deleted" with Undo at the bottom of the screen */
.acct-toast {
  position: fixed; inset-inline: 1rem; inset-block-end: 1rem; z-index: 5; margin-inline: auto; max-inline-size: 30rem; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.4rem; padding-inline: 1rem 0.4rem;
  border: 1px solid var(--line); border-radius: 14px; background: var(--raised); color: var(--ink); font-weight: 650; box-shadow: 0 14px 30px -16px rgb(0 0 0 / 0.4);
}
.acct-toast-text { min-inline-size: 0; overflow-wrap: anywhere; }
.acct-toast-undo {
  flex: none; min-block-size: 44px; padding-inline: 0.9rem; border: 0; border-radius: 8px; background: none; cursor: pointer;
  color: inherit; font: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: 0.2em;
}
.acct-toast-undo:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.acct-card-confirm {
  position: absolute; inset-block-start: 3.6rem; inset-inline: 0.75rem; z-index: 2; background: var(--raised);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.16);
}
.acct-more:focus-visible, .acct-pen:focus-visible, .acct-card-name:focus-visible, .acct-rename-ok:focus-visible, .acct-rename-no:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.acct-thumb-photo .acct-thumb-img { object-fit: cover; background: var(--paper-alt); }
/* the photos under the plan: up to four square tiles and a "+N" tile (owner 2026-10-23) */
.acct-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.acct-strip-photo, .acct-strip-more {
  aspect-ratio: 1; min-inline-size: 0; padding: 0; overflow: hidden; border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper-alt); color: var(--ink); font: inherit; font-weight: 650; cursor: pointer;
}
.acct-strip-photo:hover, .acct-strip-more:hover { border-color: var(--accent); }
.acct-strip-img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
@media (min-width: 34em) { .acct-strip:empty::before { content: ""; aspect-ratio: 1; } }   /* cards side by side: no photos keeps one tile's height */
.acct-strip-photo:focus-visible, .acct-strip-more:focus-visible, .acct-photo-step:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* the photo viewer */
.acct-photo-dialog { inline-size: min(56rem, calc(100% - 16px)); }
.acct-photo-dialog [hidden] { display: none !important; }
.acct-photo-img { display: block; inline-size: 100%; max-block-size: 65dvh; object-fit: contain; border-radius: 8px; background: var(--paper-alt); }
.acct-photo-nav { display: flex; justify-content: space-between; gap: 0.5rem; }
.acct-photo-step:disabled { opacity: 0.45; cursor: default; }
.acct-confirm { display: grid; gap: 0.5rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: 10px; }
.acct-danger { border-color: var(--accent-deep); color: var(--accent); }
.acct-quiet {
  justify-self: start; min-block-size: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 0.2em;
}
.acct-quiet:hover { color: var(--ink); }
.acct-empty { display: grid; gap: 0.75rem; justify-items: start; }

/* settings: API keys (account-keys.js). Targets 44 px, the field 16 px so a phone does not zoom, long keys break instead of scrolling the page */
.acct-keys { display: grid; gap: 0.75rem; margin-block-start: 1rem; padding-block-start: 1rem; border-block-start: 1px solid var(--line); }
.acct-keys-list { list-style: none; margin: 0; padding: 0; display: grid; max-inline-size: 42rem; }
.acct-key { display: grid; justify-items: start; gap: 0.25rem; padding-block: 0.6rem; border-block-end: 1px solid var(--line); }
.acct-key > .acct-act, .acct-key > .acct-confirm { justify-self: stretch; }
@media (min-width: 30em) { .acct-key > .acct-act { justify-self: start; } }
.acct-key-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; min-inline-size: 0; }
.acct-key-name { font-weight: 650; overflow-wrap: anywhere; }
.acct-key-prefix, .acct-key-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; }
.acct-key-prefix { color: var(--muted); }
.acct-key-dates { margin: 0; }
.acct-keys-form { display: grid; gap: 0.35rem; max-inline-size: 28rem; }
.acct-keys-label { font-size: 0.9rem; color: var(--muted); }
.acct-keys-input {
  box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: 0 0.75rem; border: 1.5px solid var(--control); border-radius: 10px;
  background: var(--raised); color: var(--ink); font: inherit; font-size: 16px;
}
.acct-keys-input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.acct-keys-agree { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; min-block-size: 44px; }
.acct-keys-tick { inline-size: 24px; block-size: 24px; margin: 0; flex: none; accent-color: var(--accent); }
.acct-keys-agree label { cursor: pointer; padding-block: 0.6rem; }
.acct-keys-link { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--accent); }
.acct-keys-create { margin-block-start: 0.25rem; }
.acct-key-new { max-inline-size: 42rem; }
.acct-key-value { display: block; padding: 0.6rem 0.75rem; border-radius: 8px; background: var(--paper-alt); overflow-wrap: anywhere; word-break: break-all; user-select: all; }

/* credits / billing (billing-panel.js): cards of 20 px radius, the tags, the cancel sheet. Boards E1, E1d, E4, E6. */
.acct-bill { gap: 1rem; }
.acct-bill-grid { display: grid; gap: 1rem; min-inline-size: 0; align-items: start; }
.acct-bill:not(.is-sub) .acct-bill-grid { max-inline-size: 42rem; }
@media (min-width: 60em) {
  .acct-bill.is-sub .acct-bill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 1.25rem; }
  .is-sub .acct-a-plan, .is-sub .acct-a-pay, .is-sub .acct-a-details, .is-sub .acct-a-prices { grid-column: 1; }
  .is-sub .acct-a-credits, .is-sub .acct-a-invoices, .is-sub .acct-a-history { grid-column: 2; }
  .is-sub .acct-a-invoices { grid-row: span 2; }
}
.acct-box {
  display: grid; gap: 0.75rem; align-content: start; min-inline-size: 0; padding: 1.1rem 1rem; border: 1px solid var(--line); border-radius: 20px;
  background: var(--raised);
}
@media (min-width: 40em) { .acct-box { padding: 1.4rem 1.5rem; } }
.acct-box > .acct-linkbtn, .acct-box > .acct-act { justify-self: start; }
.acct-box-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.acct-label { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
:lang(ar) .acct-label { letter-spacing: 0; }
.acct-tag { display: inline-flex; align-items: center; min-block-size: 24px; padding-inline: 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; white-space: nowrap; }
.acct-tag.is-green { background: var(--tag-green-bg); color: var(--tag-green); }
.acct-tag.is-amber { background: var(--tag-amber-bg); color: var(--tag-amber); }
.acct-tag.is-grey { background: var(--tag-grey-bg); color: var(--muted); }
.acct-plan-name { margin: 0; font-size: 1.4rem; font-weight: 850; line-height: 1.2; letter-spacing: -0.02em; }
.acct-balance-line { margin: 0.25rem 0 0; font-size: 0.95rem; font-weight: 700; }
.acct-sub .acct-row { align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.acct-sub .acct-lead { color: var(--ink); }
.acct-sub > .acct-act { justify-self: start; }

/* the balance: the label on the left, the number on the right (off: the number big under its label) */
.acct-balance { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.4rem; }
.acct-balance-label { flex: 1 1 auto; }
.acct-balance-n { order: 2; font-size: 1.9rem; font-weight: 850; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.acct-balance-unit { order: 3; font-size: 0.95rem; font-weight: 650; color: var(--muted); }
.acct-bill:not(.is-sub) .acct-balance-label { flex-basis: 100%; }
.acct-bill:not(.is-sub) .acct-balance-n { order: 0; font-size: clamp(2.5rem, 12vw, 3rem); }
.acct-bill:not(.is-sub) .acct-balance-unit { order: 0; font-size: 1.1rem; }
.account-page .soon-packs { max-inline-size: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.5rem; }
.account-page .soon-packs > .soon-consent { grid-column: 1 / -1; align-items: flex-start; margin: 0; padding: 0.7rem 0.8rem; border: 2px solid transparent; border-radius: 14px; background: var(--soft); font-size: 0.9rem; }
.account-page .soon-packs > .soon-consent.is-needed { border-color: var(--accent); }
.account-page .soon-packs > .soon-consent .soon-consent-box { inline-size: 22px; block-size: 22px; }
/* the packs are the secondary pills of the board (the red one is for the plan to read) */
.account-page .acct-bill .soon-packs .soon-buy {
  min-block-size: 50px; border-radius: 999px; border: 1px solid var(--btn-edge); box-shadow: none; color: var(--ink);
  background: linear-gradient(var(--btn-top), var(--btn-bottom)); font-weight: 700;
}
.account-page .acct-bill .soon-packs .soon-buy:hover { color: var(--ink); background: var(--btn-bottom); }
.account-page .soon-pay { max-inline-size: none; border-radius: 999px; }
.acct-prices { border-collapse: collapse; inline-size: 100%; }
.acct-prices th, .acct-prices td { padding: 0.6rem 0.25rem; border-block-end: 1px solid var(--line); text-align: start; vertical-align: top; }
.acct-prices tr:last-child th, .acct-prices tr:last-child td { border-block-end: 0; }
.acct-prices th { font-weight: 500; }
.acct-prices td { font-weight: 700; white-space: nowrap; }
.acct-history { list-style: none; margin: 0; padding: 0; display: grid; }
.acct-h-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.75rem; padding: 0.6rem 0; border-block-end: 1px solid var(--line); }
.acct-h-row:last-child { border-block-end: 0; }
.acct-h-date { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); }
.acct-h-delta { font-weight: 750; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.acct-h-delta.pos { color: var(--ok); }

/* the payment method and the invoices */
.acct-pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.acct-pay-icon svg { display: block; inline-size: 24px; block-size: 24px; }
.acct-pay-text { display: grid; flex: 1 1 8rem; min-inline-size: 0; }
.acct-pay-line { font-weight: 750; overflow-wrap: anywhere; }
.acct-invoices { list-style: none; margin: 0; padding: 0; display: grid; }
.acct-inv { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.1rem 0.75rem; padding-block: 0.55rem; border-block-end: 1px solid var(--line); }
.acct-inv:last-child { border-block-end: 0; }
.acct-inv-what { display: grid; min-inline-size: 0; }
.acct-inv-name { font-weight: 700; font-size: 0.95rem; overflow-wrap: anywhere; }
.acct-inv-amount { font-weight: 750; font-variant-numeric: tabular-nums; }
.acct-inv-pdf { display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; min-inline-size: 44px; font-weight: 700; font-size: 0.92rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.acct-inv-pdf:hover { color: var(--accent); }

/* back from the payment page: a note, or the wait for the plan with a spinner, then the red "Upload your plan" */
.acct-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--raised); }
.acct-banner-text { margin: 0; flex: 1 1 12rem; font-weight: 650; line-height: 1.4; }
.acct-banner-title { margin: 0; font-weight: 800; }
.acct-banner-body { display: grid; gap: 0.1rem; flex: 1 1 12rem; min-inline-size: 0; }
.acct-banner.is-done { border-color: var(--ok); }
.acct-banner.is-done .acct-banner-text { font-size: 1.05rem; font-weight: 800; }
.acct-spin { flex: none; inline-size: 22px; block-size: 22px; border-radius: 50%; border: 3px solid var(--room-b); border-top-color: var(--accent); animation: acct-spin 0.9s linear infinite; }
.acct-spin[hidden] { display: none; }
@keyframes acct-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .acct-spin { animation-duration: 3s; } }

/* "Cancel Plus?": a sheet from the bottom on a phone, a window in the middle on a computer (E6) */
.acct-sheet {
  --o-ink: var(--ink); --o-ctl: var(--control); --o-accent: var(--accent); --o-btn-top: var(--btn-top); --o-btn-bottom: var(--btn-bottom);
  inline-size: min(28rem, calc(100% - 2rem)); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--raised); color: var(--ink);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.5);
}
.acct-sheet::backdrop { background: rgb(14 17 22 / 0.5); }
.acct-sheet-inner { display: grid; gap: 0.8rem; padding: 0.7rem 1rem 1.25rem; }
@media (min-width: 40em) { .acct-sheet-inner { padding: 1.5rem; } }
.acct-grab { justify-self: center; inline-size: 44px; block-size: 5px; border-radius: 999px; background: var(--line); }
@media (min-width: 40em) { .acct-grab { display: none; } }
.acct-sheet-title { margin: 0; font-size: 1.6rem; font-weight: 820; letter-spacing: -0.03em; }
.acct-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.acct-checks li { display: flex; gap: 0.6rem; line-height: 1.4; }
.acct-check { flex: none; inline-size: 1rem; font-weight: 800; text-align: center; }
.acct-checks .is-ok .acct-check { color: var(--ok); }
.acct-checks .is-no { color: var(--muted); }
.acct-sheet [hidden] { display: none !important; }
.acct-sheet .acct-act { inline-size: 100%; min-block-size: 54px; font-size: 1.05rem; }
.acct-sheet a.acct-act { display: flex; align-items: center; justify-content: center; text-decoration: none; }   /* "Pay and switch to Pro": a link that looks like the button above it */
/* "Change plan" of a Pro (E7): the Plus option as the marked tier card of the board, one red button, the quiet links under it */
.acct-tier { display: grid; gap: 0.4rem; padding: 0.9rem 1rem; border: 2px solid var(--accent); border-radius: 20px; background: var(--raised); box-shadow: 0 24px 50px -34px rgb(198 40 40 / 0.7); }
.acct-tier-name { margin: 0; font-size: 1.15rem; font-weight: 820; letter-spacing: -0.02em; }
.acct-tier .acct-note { font-size: 0.95rem; }
.acct-sheet-more { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; }
.acct-sub .acct-sched { font-weight: 750; }
@media (max-width: 39.99em) {
  .acct-sheet { inline-size: 100%; max-inline-size: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; border-inline: 0; border-block-end: 0; }
}

/* settings: the cards of E3 */
.acct-email { margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.acct-select {
  box-sizing: border-box; inline-size: 100%; min-block-size: 48px; padding-inline: 0.9rem; border: 1px solid var(--line); border-radius: 14px;
  background: var(--raised); color: var(--ink); font: inherit; font-size: 16px;
}
.acct-select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.acct-box .acct-email { color: var(--ink); white-space: normal; }
.acct-stack { display: grid; gap: 0.5rem; }
.account-page .acct-stack .acct-act { inline-size: 100%; }
.acct-panel > .acct-quiet { color: var(--accent); font-weight: 650; }

/* the owner's tools (owner-tools.js, rec-player.js): a panel at the start of the page, shown only to the owner's account */
.wrap.has-owner-tools { max-inline-size: 110rem; display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.has-owner-tools > .acct-main { grid-column: 2; grid-row: 1; }
.has-owner-tools > [hidden] { display: none !important; }
.owner-tools {
  grid-column: 1; grid-row: 1; position: sticky; inset-block-start: 1rem; margin-block-start: 1.5rem;
  display: grid; gap: 0.25rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--raised);
}
.owner-tools-title { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.owner-tools-item {
  min-block-size: 40px; padding-inline: 0.75rem; border: 0; border-radius: 8px; background: none; color: var(--ink);
  font: inherit; font-weight: 600; text-align: start; cursor: pointer;
}
.owner-tools-item:hover { background: var(--room-a); }
.owner-tools-item[aria-current="true"] { background: var(--room-a); box-shadow: inset 3px 0 0 var(--accent); }
.owner-tools-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 47.99em) {
  .wrap.has-owner-tools { grid-template-columns: minmax(0, 1fr); gap: 0; }   /* as specific as the wide rule above, or the 12rem column stays on a phone */
  .has-owner-tools > .acct-main, .owner-tools { grid-column: 1; grid-row: auto; }
  .owner-tools { position: static; display: flex; flex-wrap: wrap; }
  .owner-tools-title { inline-size: 100%; }
}

/* the owner's "Bot questions" tool (bot-log-panel.js): one card a question, long words and answers wrap, targets 44 px on a phone */
.bl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; min-inline-size: 0; }
.bl-item { display: grid; gap: 0.35rem; min-inline-size: 0; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); overflow-wrap: anywhere; }
.bl-miss { box-shadow: inset 4px 0 0 var(--accent); }
.bl-item p { margin: 0; min-inline-size: 0; }
.bl-meta, .bl-marks { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; font-size: 0.85rem; color: var(--muted); }
.bl-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.bl-tag { padding: 0 0.5rem; border: 1px solid var(--line); border-radius: 999px; text-transform: uppercase; font-size: 0.75rem; }
.bl-q { font-weight: 650; line-height: 1.4; white-space: pre-wrap; }
.bl-a { line-height: 1.45; white-space: pre-wrap; }
.bl-a.bl-fold { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-langwrap { overflow-x: auto; max-inline-size: 28rem; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.bl-langtable td, .bl-langtable th { block-size: 36px; }
.bl-cap { padding: 0.4rem 0.6rem; text-align: start; font-size: 0.8rem; font-weight: 650; color: var(--muted); }
.bl-found { font-weight: 650; }
.bl-yes { color: var(--ok); }
.bl-no { color: var(--accent); }

/* this screen is one column over the whole work area: the cabinet's two-column `.acct-main` grid (a title and the tabs side by side,
   the rest in the second column) left the left half empty (owner 2026-11-02) */
.acct-main.rp-root { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0.6rem; padding-block: 1rem 3rem; }
.rp-root > * { grid-column: 1; }
.rp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1.25rem; }
.rp-root .rp-h1 { grid-column: auto; grid-row: auto; font-size: 1.6rem; letter-spacing: -0.02em; }
.rp-tabs { margin: 0; inline-size: 14rem; max-inline-size: 100%; }
.rp-tabs .acct-tab { min-block-size: 40px; }

/* the one line of controls over the table */
.rp-bar, .rp-row, .rp-controls { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
.rp-bar { gap: 0.5rem 0.6rem; align-items: center; }
.rp-count { margin-inline-start: auto; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-field { display: grid; gap: 0.25rem; font-size: 0.85rem; color: var(--muted); }
.rp-field[hidden] { display: none; }
.rp-field select, .rp-speed, .rp-colsbtn { min-block-size: 40px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding-inline: 0.5rem; }
.rp-colsbtn { padding-inline: 0.85rem; font-weight: 600; cursor: pointer; }
.rp-colsbtn:hover, .rp-colsbtn[aria-expanded="true"] { border-color: var(--ink); }
.rp-field select:focus-visible, .rp-colsbtn:focus-visible, .rp-seg-btn:focus-visible, .rp-chipbtn:focus-visible, .rp-sum-line:focus-visible, .rp-plus:focus-visible, .rp-go:focus-visible,
.rp-x:focus-visible, .rp-sort:focus-visible, .rp-colopt:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.rp-colwrap { position: relative; }
.rp-colmenu {
  position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 4px); z-index: 20; display: grid; gap: 0.1rem; min-inline-size: 13rem; padding: 0.4rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 12px 32px rgb(0 0 0 / 0.18);
}
.rp-colopt { display: flex; align-items: center; gap: 0.5rem; min-block-size: 36px; padding-inline: 0.5rem; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }
.rp-colopt:hover { background: var(--room-a); }
.rp-colopt input { inline-size: 18px; block-size: 18px; accent-color: var(--accent); }
.rp-colreset { justify-self: start; min-block-size: 36px; }
.rp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.rp-chips-label { font-size: 0.8rem; color: var(--muted); margin-inline-end: 0.2rem; }
.rp-chipbtn { min-block-size: 34px; padding-inline: 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); color: var(--ink); font: inherit; font-size: 0.85rem; cursor: pointer; }
.rp-chipbtn:hover { border-color: var(--ink); }
.rp-chipbtn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.rp-page, .rp-play, .rp-navbtn {
  min-block-size: 36px; padding-inline: 0.85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer;
}
.rp-navbtn:disabled { opacity: 0.45; cursor: default; }
.rp-page[aria-current="true"] { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.rp-status:empty { display: none; }
/* the day's recording caps at 80% or more (rec-player.js, rec-core.js limitNote) */
.rp-limit { margin: 0; padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-inline-start: 4px solid var(--accent); border-radius: var(--radius); background: var(--paper-alt); color: var(--ink); font-size: 0.9rem; font-weight: 600; line-height: 1.45; }
.rp-limit[hidden] { display: none; }
.rp-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-inline-size: 0; }
.rp-listbox { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; min-inline-size: 0; align-content: start; }
.rp-chip { justify-self: start; padding: 0.1rem 0.6rem; border: 1px solid var(--accent); border-radius: 999px; background: none; color: var(--accent); font: inherit; font-size: 0.85rem; cursor: pointer; }
/* a visit chosen: a window over the list (rec-modal.js; owner 2026-11-18). The list is not touched: no column narrows, nothing moves. */
.rp-x {
  display: grid; place-items: center; inline-size: 40px; block-size: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--raised); color: var(--ink);
  font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.rp-x:hover { border-color: var(--ink); }
/* the dialog is the whole screen, transparent, its padding the margin around the window; a click on that margin (the dialog itself) closes it */
.rp-dlg { box-sizing: border-box; inline-size: 100%; block-size: 100%; max-inline-size: none; max-block-size: none; margin: 0; padding: 20px; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.rp-dlg:not([open]) { display: none; }
.rp-dlg::backdrop { background: rgb(12 16 22 / 0.62); }
/* the window; the same box goes full screen (.rp-detail:fullscreen) and is the page of a visit opened on its own (.rp-solo-box) */
.rp-dlg-box, .rp-solo-box { box-sizing: border-box; display: flex; flex-direction: column; gap: 0.6rem; inline-size: 100%; block-size: 100%; min-inline-size: 0; min-block-size: 0; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 20px 60px rgb(0 0 0 / 0.4); overflow: hidden; }
.rp-dlg-box:focus { outline: none; }
.rp-dlg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; }
.rp-dlg-title { margin: 0; flex: 1 1 14rem; min-inline-size: 0; font-size: 1.05rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.rp-dlg-nav { flex-wrap: nowrap; }
.rp-dlg-nav .rp-nav-count { margin-inline-end: 0; white-space: nowrap; padding-inline: 0.25rem; }
.rp-dlg-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.6rem; min-block-size: 0; }
.rp-dlg-body > .rp-play-grid { flex: 1 1 auto; min-block-size: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; gap: 0.6rem; }
.rp-dlg-body .rp-play-main { grid-template-rows: auto minmax(0, 1fr) auto; min-block-size: 0; gap: 0.5rem; }
.rp-dlg-body .rp-stage { grid-template-rows: minmax(0, 1fr); min-block-size: 0; }
.rp-dlg-body .rp-theater { block-size: 100%; min-block-size: 8rem; }
/* what the visitor did, under the view: its own list that scrolls inside a box of a set height */
.rp-dlg-body .rp-play-side { display: flex; flex-direction: column; gap: 0.35rem; block-size: clamp(7.5rem, 24vh, 15rem); min-block-size: 0; overflow: hidden; }
.rp-dlg-body .rp-side-h { flex: none; }
.rp-dlg-body .rp-tools { flex: none; margin: 0; }
.rp-dlg-body .rp-log { position: relative; flex: 1 1 auto; min-block-size: 0; max-block-size: none; }
.rp-dlg-body .rp-row { flex: none; }
.rp-where { margin: 0; padding: 0.3rem 0.7rem; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); font-size: 0.92rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the Full screen button beside the page tabs; in full screen the window box fills the screen and the player takes what the rest leaves */
.rp-fs { padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); color: var(--ink); font: inherit; font-size: 0.9rem; cursor: pointer; }
.rp-fs:hover, .rp-fs[aria-pressed="true"] { border-color: var(--accent); }
.rp-detail:fullscreen { background: var(--paper); border-radius: 0; border: 0; box-shadow: none; }
.rp-dlg-body .rp-controls:empty { display: none; }
.rp-log { position: relative; }
.rp-log-item.is-current .rp-log-btn { background: var(--room-a); color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.rp-log-p .rp-log-btn { color: var(--accent); }
/* a visit on a page of its own (rec-solo.js): the cabinet's side panel and the account steps are not drawn */
.has-owner-tools.is-rec-solo > .owner-tools { display: none; }
.wrap.has-owner-tools.is-rec-solo { grid-template-columns: minmax(0, 1fr); }
.has-owner-tools.is-rec-solo > .acct-main { grid-column: 1; }
.rp-solo { padding-block: 0.75rem 1rem !important; }
/* its own height: the page scrolls, so the box follows its content and the view gets a size of its own (not what the window leaves) */
.rp-solo-box { block-size: auto; min-block-size: 20rem; }
.rp-solo-box .rp-dlg-body, .rp-solo-box .rp-dlg-body > .rp-play-grid { flex: none; }
.rp-solo-box .rp-theater { block-size: clamp(16rem, 62vh, 40rem); }
.rp-solo-box > .rp-status { flex: none; margin: 0; }
.rp-solo-back { align-self: center; white-space: nowrap; text-decoration: none; }
.rp-when { color: inherit; text-decoration: none; }
.rp-when:hover { text-decoration: underline; }
a.rp-go { text-decoration: none; }
@media (max-width: 47.99em) {
  .rp-dlg { padding: 0; }
  .rp-dlg-box { border-radius: 0; border: 0; padding: 0.5rem 0.6rem; }
  .rp-dlg-nav { order: 3; inline-size: 100%; justify-content: space-between; }
  .rp-dlg-title { font-size: 0.95rem; }
  .rp-dlg-body .rp-play-side { block-size: clamp(7.5rem, 30vh, 13rem); }
  .rp-dlg-body .rp-theater { padding: 6px; }
  .rp-dlg-body .rp-controls { padding: 0.35rem 0.5rem; gap: 0.4rem 0.6rem; }
  .rp-dlg-body .rp-range { flex-basis: 8rem; }
}

/* the day's totals: one folded line; a click opens the tiles */
.rp-sum { border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.rp-sum-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1.1rem; min-block-size: 44px; padding: 0.35rem 0.75rem; font-size: 0.88rem; cursor: pointer; list-style: none; }
.rp-sum-line::-webkit-details-marker { display: none; }
.rp-sum-item { display: inline-flex; gap: 0.35rem; align-items: baseline; white-space: nowrap; }
.rp-sum-label { color: var(--muted); }
.rp-sum-item b { font-variant-numeric: tabular-nums; }
.rp-sum-more { margin-inline-start: auto; color: var(--muted); font-size: 0.8rem; }
.rp-sum-more::after { content: " ▾"; }
.rp-sum[open] .rp-sum-more::after { content: " ▴"; }
.rp-sum > .rp-kpis { padding: 0 0.6rem 0.6rem; }
@media (max-width: 47.99em) { .rp-sum-item:nth-child(n+4) { display: none; } .rp-sum[open] .rp-sum-item { display: inline-flex; } }
.rp-kpis { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.rp-kpi { display: grid; gap: 0.1rem; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.rp-kpi-label { font-size: 0.78rem; color: var(--muted); }
.rp-kpi-value { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.rp-kpi-hint { font-size: 0.75rem; color: var(--muted); }

/* the visits table: one line a visit, the header stays on top */
.rp-tablewrap { overflow: auto; max-block-size: calc(100vh - 11rem); min-block-size: 14rem; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.rp-table { inline-size: 100%; border-collapse: collapse; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.rp-table th, .rp-table td { padding: 0.3rem 0.45rem; text-align: start; white-space: nowrap; border-block-end: 1px solid var(--line); }
.rp-table td { block-size: 44px; }
.rp-table thead th { position: sticky; inset-block-start: 0; z-index: 1; background: var(--raised); font-size: 0.78rem; font-weight: 650; color: var(--muted); }
.rp-sort { min-block-size: 32px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.rp-sort:hover, th[aria-sort] .rp-sort { color: var(--ink); }
/* column widths dragged in the header: a handle on the end edge of each header cell; with any width set the table is fixed at them and its wrapper scrolls */
.rp-table thead th { position: sticky; }
.rp-resize { position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: 14px; cursor: col-resize; touch-action: none; user-select: none; z-index: 2; }
.rp-resize::after { content: ""; position: absolute; inset-block: 22%; inset-inline-end: 5px; inline-size: 2px; border-radius: 1px; background: var(--line); }
.rp-resize:hover::after, .rp-resize.is-drag::after { background: var(--accent); }
.rp-resize:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (pointer: coarse) { .rp-resize { inline-size: 24px; } }
.rp-table.rp-fixed { table-layout: fixed; max-inline-size: none; }
.rp-table.rp-fixed th, .rp-table.rp-fixed td { overflow: hidden; text-overflow: ellipsis; max-inline-size: none; }
.rp-table.rp-fixed .rp-sort { max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; padding-inline-end: 0.6rem; }
.rp-row-visit { cursor: pointer; }
.rp-row-visit:hover { background: var(--room-a); }
.rp-row-visit:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.rp-row-visit.is-current, .rp-row-visit.is-current:hover { background: var(--room-b); box-shadow: inset 3px 0 0 var(--accent); }
.rp-c-num { text-align: end !important; }
.rp-c-time { font-weight: 650; }
.rp-c-who { color: var(--muted); }
.rp-c-back { color: var(--accent); font-weight: 650; }
.rp-c-path, .rp-c-acct { max-inline-size: 7.5rem; overflow: hidden; text-overflow: ellipsis; }
.rp-c-acct { color: var(--accent); }
/* what leads a row: the "+" (its pages and data) and the play button */
.rp-c-lead { inline-size: 1%; padding-inline: 0.3rem 0.1rem !important; }
.rp-plus, .rp-go {
  display: inline-grid; place-items: center; inline-size: 32px; block-size: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink);
  font: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1; vertical-align: middle; cursor: pointer;
}
.rp-plus { border-color: transparent; background: none; color: var(--muted); border-radius: 8px; }
.rp-plus:hover { color: var(--ink); background: var(--room-b); }
.rp-go { margin-inline-start: 0.15rem; background: var(--ink); border-color: var(--ink); }
.rp-go::before { content: ""; margin-inline-start: 2px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--paper); }
[dir="rtl"] .rp-go::before { transform: scaleX(-1); }
.rp-go:hover { background: var(--accent-fill); border-color: var(--accent-fill); }
.rp-go:hover::before { border-left-color: #fff; }
.rp-go-sm { inline-size: 26px; block-size: 26px; }
/* favourites and "not viewed yet" (rec-marks.js): the star after the play button; an unviewed row is bold with a dot */
.rp-c-star { position: relative; inline-size: 1%; padding-inline: 0.2rem 0.1rem !important; }
.rp-star { display: inline-grid; place-items: center; inline-size: 36px; block-size: 36px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; vertical-align: middle; }
.rp-star:hover { background: var(--room-b); color: var(--ink); }
.rp-star:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rp-star .rp-ico { stroke: currentColor; }
.rp-star[aria-pressed="true"] { color: #a86a00; }
.rp-star[aria-pressed="true"] .rp-ico { fill: #f0b429; }
.rp-new-dot { position: absolute; inset-inline-start: 1px; inset-block-start: 50%; inline-size: 8px; block-size: 8px; margin-block-start: -4px; border-radius: 50%; background: var(--accent); }
.rp-new-dot[hidden] { display: none; }
.rp-row-visit.is-unviewed td { font-weight: 700; }
/* the per-visitor Filter button (a funnel left of the play button): off, highlight (the others greyed), isolate (only him, all time) */
.rp-filter { display: inline-grid; place-items: center; inline-size: 32px; block-size: 32px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; vertical-align: middle; }
.rp-filter:hover { color: var(--ink); background: var(--room-b); }
.rp-filter:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rp-filter .rp-ico { stroke: currentColor; }
.rp-filter[data-vf="highlight"] { color: var(--accent); border-color: var(--accent); }
.rp-filter[data-vf="isolate"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.rp-filter[data-vf="isolate"] .rp-ico { fill: currentColor; }
.rp-filter:disabled { opacity: 0.35; cursor: not-allowed; }
/* a user line's fold arrow takes the Filter button's place (same size), and a visit row under it keeps a gap of that size */
.rp-fold { flex: none; display: inline-grid; place-items: center; inline-size: 32px; block-size: 32px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; vertical-align: middle; }
.rp-fold:hover { color: var(--ink); background: var(--room-b); }
.rp-fold:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rp-filter-gap { display: inline-block; inline-size: 32px; block-size: 32px; vertical-align: middle; }
.rp-row-visit.is-dim, .rp-group-row.is-dim { opacity: 0.45; }
.is-dim .rp-src, .is-dim .rp-step, .is-dim .rp-cc, .is-dim .rp-act { filter: grayscale(1); }
.rp-vfchip { min-block-size: 36px; }
.rp-vfchip[hidden], .rp-period-note[hidden] { display: none; }
.rp-period-note { color: var(--muted); font-size: 0.85rem; }
.rp-seg.is-off { opacity: 0.5; }
.rp-seg.is-off .rp-seg-btn { cursor: not-allowed; }
.rp-day:disabled { opacity: 0.5; }
.rp-marksrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.9rem; }
.rp-marksrow[hidden] { display: none; }
.rp-markall { min-block-size: 40px; padding-inline: 0.5rem; }
.rp-marknote { margin: 0; }
.rp-marknote[hidden] { display: none; }
/* badges: country, device, system, browser, source */
.rp-cc { display: inline-block; min-inline-size: 2.1em; padding: 0.05rem 0.3rem; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-align: center; }
.rp-ico { inline-size: 20px; block-size: 20px; vertical-align: middle; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rp-tag { display: inline-block; max-inline-size: 5.5rem; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; color: var(--muted); font-size: 0.8rem; }
.rp-c-from { max-inline-size: 9.5rem; overflow: hidden; text-overflow: ellipsis; }
.rp-src { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--room-b); font-size: 0.75rem; font-weight: 650; }
.rp-src-reddit_ad, .rp-src-reddit { background: #ffe3d6; color: #8a2d00; }
.rp-src-search { background: #dff0e3; color: #14592a; }
.rp-src-ai { background: #ece3fb; color: #4a2a8a; }
.rp-src-social { background: #dde9fb; color: #1b4a96; }
.rp-src-utm { background: #fdf0d5; color: #7a4b00; }
@media (prefers-color-scheme: dark) {
  .rp-src-reddit_ad, .rp-src-reddit { background: rgb(255 120 70 / 0.2); color: #ffb08f; }
  .rp-src-search { background: rgb(127 214 154 / 0.18); color: #9fe0b5; }
  .rp-src-ai { background: rgb(170 130 240 / 0.2); color: #cdb4f6; }
  .rp-src-social { background: rgb(100 160 255 / 0.2); color: #a8c8fb; }
  .rp-src-utm { background: rgb(241 195 106 / 0.18); color: #f1c36a; }
}
.rp-src-x { margin-inline-start: 0.4rem; color: var(--muted); font-size: 0.78rem; }
/* the activity strip: a segment a page, darker with more taps */
.rp-act { display: flex; gap: 2px; inline-size: 100%; min-inline-size: 2rem; block-size: 10px; }
.rp-act-seg { flex-basis: 4px; min-inline-size: 4px; border-radius: 2px; background: var(--line); }
.rp-act-1 { background: #f1c36a; }
.rp-act-2 { background: #ef8a3c; }
.rp-act-3 { background: var(--accent); }
/* the "+" row: the visit's path and what is known of it */
.rp-detail-row > td { padding: 0 !important; block-size: auto !important; background: var(--paper); white-space: normal !important; }
.rp-expand { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem 1.5rem; padding: 0.6rem 0.75rem 0.75rem 3rem; }
@media (max-width: 47.99em) { .rp-expand { padding-inline-start: 0.75rem; } }
.rp-expand-head { display: flex; align-items: center; gap: 0.5rem; }
.rp-expand-head .rp-side-h { margin: 0; }
.rp-expand-head .rp-infobtn { inline-size: 1.75rem; block-size: 1.75rem; font-size: 0.9rem; }
.rp-pathlist { list-style: none; margin: 0.3rem 0 0; padding: 0; display: grid; gap: 0.25rem; }
.rp-pathrow { display: grid; grid-template-columns: 26px minmax(0, 1fr) 3.2rem 5rem 4.5rem; gap: 0.5rem; align-items: center; font-size: 0.85rem; }
.rp-path-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-path-n { color: var(--muted); text-align: end; }
@media (max-width: 47.99em) { .rp-pathrow { grid-template-columns: 26px minmax(0, 1fr) 3.2rem; } .rp-pathrow .rp-path-n:nth-child(n+4) { display: none; } }
/* what a narrower screen keeps is decided in rec-player.js maxLvl(): a phone the time, the visit, the country, the device and the time on site; a tablet also the source, the steps and the pages */
/* Activity: the strip on top, the steps wrapped under it; never cut off, the row grows */
.rp-table td.rp-c-steps, .rp-table.rp-fixed td.rp-c-steps { white-space: normal; overflow: visible; text-overflow: clip; }
.rp-steps { display: flex; flex-wrap: wrap; gap: 0.2rem 0.25rem; margin-block-start: 0.25rem; }
.rp-step { padding: 0 0.4rem; border-radius: 999px; background: var(--room-b); font-size: 0.75rem; line-height: 1.5; }
.rp-step-pay_click, .rp-step-plan_start, .rp-step-file_chosen { background: var(--accent); color: var(--on-accent); }
.rp-step-plan_failed, .rp-step-err { background: none; border: 1px solid var(--accent); color: var(--accent); }
.rp-group-row th { padding: 0; white-space: normal; background: var(--room-a); border-block-end: 1px solid var(--line); }
.rp-group-btn {
  inline-size: 100%; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; padding: 0.5rem 0.6rem; border: 0;
  background: none; color: var(--ink); font: inherit; text-align: start; cursor: pointer;
}
.rp-group-line { display: flex; align-items: center; gap: 0.2rem; padding-inline-start: 0.3rem; }
.rp-group-line > .rp-group-btn { flex: 1 1 auto; min-block-size: 44px; align-items: center; }
.rp-group-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.rp-group-caret { inline-size: 1em; color: var(--muted); }
.rp-group-path { font-weight: 700; }
.rp-group-meta { font-size: 0.8rem; font-weight: 400; color: var(--muted); }
/* grouped by user (rec-userrow.js): a person with several visits is one row of the same columns, tinted; his visits sit under it a little in from the
   edge, and under each visit its pages (the page list is in from the edge a step further) */
.rp-user-row { cursor: pointer; }
.rp-user-row > td { background: var(--room-a); }
.rp-user-row:hover > td { background: var(--room-b); }
.rp-user-row.is-dim { opacity: 0.45; }
.rp-user-visit > .rp-c-lead { padding-inline-start: 1.4rem !important; }
.rp-user-detail .rp-expand { padding-inline-start: 2rem; }
@media (min-width: 48em) { .rp-user-detail .rp-expand { padding-inline-start: 4.4rem; } }
.rp-more-row td { text-align: center; }
.rp-group-row { cursor: pointer; }
.rp-group-row > .rp-g { background: var(--room-a); font-weight: 650; border-block-end: 1px solid var(--line); }
.rp-group-row:hover > * { background: var(--room-b); }
.rp-g.rp-c-gsteps, .rp-g.rp-c-dev, .rp-g.rp-c-from { font-size: 0.8rem; font-weight: 500; color: var(--muted); }

/* heatmap: page picture and beside it what was pressed */
.rp-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.rp-seg-btn { min-block-size: 36px; padding-inline: 0.85rem; border: 0; background: var(--raised); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.rp-seg-btn + .rp-seg-btn { border-inline-start: 1px solid var(--line); }
.rp-seg-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.rp-heatgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); gap: 1.25rem; align-items: start; }
@media (max-width: 63.99em) { .rp-heatgrid { grid-template-columns: minmax(0, 1fr); } }
.rp-heatside { padding: 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); min-inline-size: 0; }
.rp-heatside:empty { display: none; }
.rp-ctl { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.2rem; font-size: 0.85rem; }
.rp-ctl-row { position: relative; display: flex; gap: 0.5rem; justify-content: space-between; padding: 0.2rem 0.4rem; border-radius: 6px; cursor: default; }
.rp-ctl-bar { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 6px; background: rgb(255 60 0 / 0.14); pointer-events: none; }
.rp-ctl-name { position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-ctl-n { position: relative; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-legend { display: grid; gap: 0.25rem; min-inline-size: 0; }
.rp-legend:empty { display: none; }
.rp-legend p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.rp-legend .rp-legend-line { color: var(--ink); font-weight: 600; }
.rp-scale { block-size: 10px; max-inline-size: 18rem; border-radius: 5px; }
.rp-scale-line { font-variant-numeric: tabular-nums; }

/* one visit over the whole width: back, count, previous / next; page tabs; the player and beside it what is known */
.rp-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }
.rp-nav-count { margin-inline-end: auto; color: var(--muted); font-size: 0.9rem; }
.rp-play-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 1.25rem; align-items: start; }
@media (max-width: 63.99em) { .rp-play-grid { grid-template-columns: minmax(0, 1fr); } }
.rp-play-main, .rp-play-side { display: grid; gap: 0.75rem; min-inline-size: 0; }
.rp-play-side { padding: 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.rp-side-h { margin: 0.25rem 0 0; font-size: 0.95rem; }
.rp-info { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.2rem 0.9rem; margin: 0; font-size: 0.86rem; }
.rp-info dt { color: var(--muted); }
.rp-info dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 47.99em) {
  .rp-table th, .rp-table td { padding: 0.35rem 0.45rem; }
  .rp-kpi-value { font-size: 1.15rem; }
}
.rp-view, .rp-stage { display: grid; gap: 0.75rem; min-inline-size: 0; }
.rp-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
/* the visit's details: a round "i" beside the page tabs, its popup fixed to the window (rec-info.js) */
.rp-infowrap { display: inline-block; }
.rp-infobtn {
  inline-size: 2.25rem; block-size: 2.25rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--raised); color: var(--ink);
  font: italic 700 1rem/1 Georgia, serif; cursor: pointer;
}
.rp-infobtn:hover, .rp-infobtn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.rp-infopop {
  position: fixed; z-index: 40; inline-size: min(24rem, calc(100vw - 1rem)); overflow: auto; padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--raised); color: var(--ink); box-shadow: 0 10px 30px rgb(0 0 0 / 0.22);
}
.rp-infopop[hidden] { display: none; }
.rp-stage { overflow: hidden; justify-items: start; }
.rp-frame { position: relative; transform-origin: 0 0; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 24px rgb(0 0 0 / 0.12); }
[dir="rtl"] .rp-frame { transform-origin: 100% 0; }
.rp-iframe { display: block; inline-size: 100%; block-size: 100%; border: 0; }
.rp-over { position: absolute; inset: 0; overflow: hidden; }
.rp-look { position: absolute; inset: 0; overflow: hidden; background: #fff; pointer-events: none; }
.rp-look .replayer-wrapper { position: relative; }
.rp-look .replayer-mouse { display: none; }
.rp-shot { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; pointer-events: none; }
.rp-shot[hidden] { display: none; }
.rp-canvas { position: absolute; inset: 0; pointer-events: none; }
.rp-pointer {
  position: absolute; left: 0; top: 0; inline-size: 14px; block-size: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: rgb(255 80 40 / 0.85); border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 0.4); transition: transform 90ms linear;
}
.rp-ripple { position: absolute; inline-size: 44px; block-size: 44px; margin: -22px 0 0 -22px; border-radius: 50%; pointer-events: none; animation: rp-ripple 700ms ease-out forwards; }
.rp-ripple-touch { background: rgb(255 80 40 / 0.45); border: 2px solid rgb(255 80 40 / 0.9); }
.rp-ripple-mouse { background: rgb(40 120 255 / 0.35); border: 2px solid rgb(40 120 255 / 0.9); }
.rp-ripple-click { border: 3px solid rgb(255 200 0 / 0.95); }
@keyframes rp-ripple { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rp-pointer { transition: none; } .rp-ripple { animation-duration: 1ms; animation-fill-mode: none; } }
.rp-badge { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; padding: 2px 8px; border-radius: 999px; background: rgb(23 32 43 / 0.8); color: #fff; font-size: 12px; }
.rp-range { flex: 1 1 12rem; min-inline-size: 8rem; accent-color: var(--accent); }
.rp-time { font-variant-numeric: tabular-nums; color: var(--muted); }
.rp-skip { display: flex; align-items: center; gap: 0.25rem; font-size: 0.9rem; }
.rp-tools { color: var(--ink); margin-block-end: 0.4rem; }
.rp-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; max-block-size: 22rem; overflow: auto; font-size: 0.85rem; }
.rp-log-btn { inline-size: 100%; padding: 0.2rem 0.4rem; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; text-align: start; cursor: pointer; white-space: pre; }
.rp-log-item.is-past .rp-log-btn { color: var(--ink); }
.rp-log-k .rp-log-btn { font-weight: 650; }
.rp-log-btn:hover { background: var(--raised); }
.rp-del { justify-self: start; }

/* the player as in Metrica's Webvisor (owner 2026-10-29): the page in the middle of a dark stage, a phone visit in a phone's
   outline, a computer visit under a browser bar; under it one control bar with a timeline that marks the visit's events */
.rp-stage { justify-items: stretch; }
.rp-theater { display: grid; place-items: center; block-size: min(76vh, 54rem); min-block-size: 22rem; padding: 16px; border-radius: 12px; background: #2b2f36; overflow: hidden; }
.rp-device { display: grid; justify-items: start; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 12px 40px rgb(0 0 0 / 0.45); }
.rp-device .rp-frame { border: 0; box-shadow: none; }
.rp-device-bar { display: flex; align-items: center; gap: 0.6rem; inline-size: 100%; block-size: 34px; padding-inline: 0.6rem; background: #e9ebef; border-block-end: 1px solid #d5d8de; color: #4a5160; font-size: 0.78rem; }
.rp-device-dots { flex: none; inline-size: 40px; block-size: 10px; background: radial-gradient(circle at 5px 5px, #ff5f57 4px, transparent 4.5px), radial-gradient(circle at 19px 5px, #febc2e 4px, transparent 4.5px), radial-gradient(circle at 33px 5px, #28c840 4px, transparent 4.5px); }
.rp-device-url { flex: 1; min-inline-size: 0; padding: 2px 10px; overflow: hidden; border-radius: 999px; background: #fff; text-overflow: ellipsis; white-space: nowrap; }
.rp-device.is-phone { padding: 12px; border-radius: 36px; background: #0f1114; box-shadow: 0 12px 40px rgb(0 0 0 / 0.5), inset 0 0 0 2px #3a3f47; }
.rp-device.is-phone .rp-device-bar { display: none; }
.rp-device.is-phone .rp-frame { overflow: hidden; border-radius: 24px; background: #0f1114; }
.rp-controls { align-items: center; gap: 0.6rem 0.9rem; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.rp-controls .rp-play { display: grid; place-items: center; inline-size: 44px; min-block-size: 44px; block-size: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--accent-fill); }
.rp-controls .rp-play::before { content: ""; margin-inline-start: 3px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.rp-controls .rp-play.is-playing::before { inline-size: 12px; block-size: 14px; margin: 0; border: 0; background: linear-gradient(90deg, #fff 0 4px, transparent 4px 8px, #fff 8px 12px); }
[dir="rtl"] .rp-controls .rp-play::before { transform: scaleX(-1); }
.rp-track { display: grid; flex: 1 1 14rem; min-inline-size: 10rem; }
.rp-track .rp-range { inline-size: 100%; margin: 0; }
.rp-marks { position: relative; block-size: 10px; margin-inline: 8px; }
.rp-mark { position: absolute; inset-block-start: 1px; inline-size: 3px; block-size: 8px; margin-inline-start: -1.5px; border-radius: 2px; background: #f5a623; }
.rp-mark-k { inline-size: 8px; margin-inline-start: -4px; border-radius: 50%; background: var(--accent); }
.rp-mark-v { background: #8a93a3; }
.rp-mark-f { background: #2f80ed; }
/* the steps that matter to the owner, each its own colour and bigger: a sample, a plan, the buy button */
.rp-mark-k.rp-mark-s-demo_open { inline-size: 10px; block-size: 10px; margin-inline-start: -5px; background: #2f80ed; }
.rp-mark-k.rp-mark-s-file_chosen, .rp-mark-k.rp-mark-s-plan_start { inline-size: 10px; block-size: 10px; margin-inline-start: -5px; background: #1b9a52; }
.rp-mark-k.rp-mark-s-pay_shown { background: #8a3fc0; }
.rp-mark-k.rp-mark-s-pay_click { inline-size: 12px; block-size: 12px; margin-inline-start: -6px; inset-block-start: 0; background: #d12f2f; box-shadow: 0 0 0 2px rgb(209 47 47 / 0.25); }
.rp-marks { block-size: 12px; }
.rp-speeds { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.rp-speeds button { min-block-size: 32px; padding-inline: 0.55rem; border: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 0.85rem; cursor: pointer; }
.rp-speeds button + button { border-inline-start: 1px solid var(--line); }
.rp-speeds button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 47.99em) { .rp-theater { block-size: min(72vh, 44rem); padding: 10px; } }
/* a phone: fingers and 16px fields (iOS zooms into smaller ones) */
@media (max-width: 47.99em) {
  .rp-field select, .rp-colsbtn { min-block-size: 44px; font-size: 16px; }
  .rp-seg-btn, .rp-navbtn, .rp-chipbtn, .rp-colopt, .rp-page { min-block-size: 44px; }
  .rp-infobtn { inline-size: 44px; block-size: 44px; }
  .rp-x { inline-size: 44px; block-size: 44px; }
  .rp-plus { inline-size: 30px; block-size: 44px; }
  .rp-go { inline-size: 44px; block-size: 44px; }
  .rp-star { inline-size: 44px; block-size: 44px; }
  .rp-filter, .rp-fold, .rp-filter-gap { inline-size: 44px; block-size: 44px; }
  .rp-vfchip { min-block-size: 44px; }
  .rp-bar .rp-period-note, .rp-bar .rp-vfchip { grid-column: 1 / -1; }
  .rp-markall { min-block-size: 44px; }
  .rp-table th, .rp-table td { padding-inline: 0.3rem; }
  .rp-nav { flex-wrap: nowrap; gap: 0.4rem; }
  .rp-nav-count { font-size: 0.8rem; white-space: nowrap; }
  .rp-navbtn { padding-inline: 0.55rem; }
  .rp-go-sm { inline-size: 40px; block-size: 40px; }
  .rp-pathrow { grid-template-columns: 40px minmax(0, 1fr) 3.2rem; }
  .rp-sort { min-block-size: 44px; }
  .rp-speeds button { min-block-size: 44px; }
  .rp-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rp-bar .rp-period { grid-column: 1 / -1; }
  .rp-bar .rp-period .rp-seg-btn { flex: 1 1 0; }
  .rp-bar .rp-count { margin: 0; }
  .rp-bar .rp-field { min-inline-size: 0; }
  .rp-bar .rp-field select { inline-size: 100%; min-inline-size: 0; }
  .rp-colwrap, .rp-colsbtn { inline-size: 100%; }
  .rp-head { flex-wrap: nowrap; }
  .rp-root .rp-h1 { font-size: 1.3rem; }
  .rp-chips { flex-wrap: nowrap; overflow-x: auto; padding-block-end: 4px; }
  .rp-chipbtn, .rp-chips-label { flex: none; white-space: nowrap; }
  .rp-colmenu { inset-inline-start: 0; inset-inline-end: 0; }
  .rp-tabs { inline-size: 13.5rem; flex: none; }
  .rp-tabs .acct-tab { font-size: 0.9rem; }
  .rp-tablewrap { max-block-size: none; }
}
