/* Styles of the app only (loaded after design/static/design.css of the shared design folder). */

/* Logbook: highlight a whole entry (all of its firearm lines) together */
tbody.entry-group tr:hover { background: none; }
tbody.entry-group:hover { background: var(--row-alt); }
tr.group-start td { border-top: 2px solid var(--border); }

/* notification settings (account): one row per type, a checkbox column per channel */
.notification-settings th.center, .notification-settings td.center { text-align: center; width: 6rem; }
.notification-settings input[type=checkbox] { width: 1.1rem; height: 1.1rem; }
.notification-settings input[type=checkbox]:disabled { opacity: .55; cursor: not-allowed; }
.setting-label { display: inline-flex; align-items: center; gap: .5rem; }
.setting-label .icon { color: var(--muted); }

/* Combobox (static/combo.js): every select becomes an input that opens like a select and
   filters its options while typing; the original select stays hidden in the form */
.combo { position: relative; }
.combo-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.combo-input { padding-right: 2rem; cursor: pointer; text-overflow: ellipsis; }
.combo-input:focus { cursor: text; }
.combo-arrow {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  display: flex; padding: .2rem; color: var(--muted); cursor: pointer;
}
.combo-arrow svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.combo-list {
  position: fixed; z-index: 40; overflow-y: auto; margin: 0; padding: .3rem; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15); text-align: left;
}
.combo-list[hidden], .combo-list li[hidden] { display: none; }
.combo-list li { padding: .4rem .55rem; border-radius: 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-list li.active { background: var(--bg); }
.combo-list .combo-group { padding: .5rem .55rem .2rem; font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; cursor: default; }
/* an ungrouped option after a group (e.g. "Leihwaffe" at the end) is set apart so it does not look like part of it */
.combo-list .combo-after-group { border-top: 1px solid var(--border); margin-top: .3rem; padding-top: .55rem; }
.combo-list .combo-new { color: var(--accent); white-space: normal; }  /* may wrap in narrow columns */
.combo-list .combo-empty { cursor: default; }
.combo-hint { margin: .25rem 0 0; }

/* divisions of a competition type (admin, ADR 0056): checkboxes in columns */
.division-choice { margin-top: 1rem; }
.division-choice .check { display: inline-flex; min-width: 11rem; margin: .25rem 1rem .25rem 0; }
.division-choice .check[hidden] { display: none; }
.default-choice { margin-top: 1rem; }
.division-choice + .form-grid { margin-top: 1rem; }  /* e.g. the default category below the ticked categories */
/* hit zones of a competition type (admin, ADR 0057) */
.zone-table { min-width: 26rem; max-width: 40rem; }
.zone-table .col-code { width: 6rem; }
.zone-table .col-points { width: 6rem; }
@media (max-width: 600px) {
  .zone-table tr { grid-template-columns: 1fr 1fr auto; }
  .zone-table td:first-child { grid-column: 1; }
  .zone-table .col-zone-name { grid-column: 2; grid-row: 1; }
  .zone-table .col-remove { grid-column: 3; grid-row: 1; }
}
/* stages of a competition (ADR 0057): one card per stage */
.stage-title { margin: 0; font-size: 1rem; }
/* the competition box: the competition details, stage cards and add button on a soft background */
.preview-hint { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; margin: .4rem 0 .6rem; padding: .55rem .75rem;
  border-radius: var(--radius); background: var(--bg); color: var(--muted); line-height: 1.45; }
.preview-body { align-self: stretch; display: grid; gap: .6rem; justify-items: start; color: var(--text); font-size: 1rem; line-height: normal; }
.preview-body > .form-grid, .preview-body > .stage-list { justify-self: stretch; }
.preview-body .stage-list { margin: 0; }
.preview-body .stage-list:empty { display: none; }
.preview-body .stage-card { background: var(--surface); }
.preview-body #stageTotal { margin: 0; }
h3.form-subsection { font-size: 1rem; margin: 0; }
/* import from a WinMSS export (ADR 0084): button with info, then the choice of the competitor and a status line */
.winmss-import[hidden] { display: none; }
.winmss-import { display: grid; gap: .5rem; justify-self: stretch; }
/* below the import as much space as between the rows of the competition details */
.preview-body > .winmss-import { margin-bottom: 1rem; }
/* heading of the import looks like the labels of the fields (size, colour, space below) */
.winmss-title { margin: 0 0 -.3rem; font-size: .85rem; font-weight: normal; color: var(--muted); }
.winmss-import .label-row label.btn { margin: 0; cursor: pointer; }
.winmss-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.winmss-row > .label-row { margin: 0; }
.winmss-choice { flex: 1 1 26rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.winmss-choice > select, .winmss-choice > .combo { flex: 1 1 16rem; max-width: 30rem; }
.winmss-choice[hidden], .winmss-message[hidden] { display: none; }
.winmss-message { margin: 0; color: var(--muted); }
.winmss-message.error-text { color: var(--err-text); }
.stage-list { display: grid; gap: .6rem; margin: .5rem 0; }
.stage-card { border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem .75rem; display: grid; gap: .5rem; }
.stage-head { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: auto;
  gap: .5rem; align-items: end; }
/* DQ (ADR 0080) and DNF (ADR 0112) on a stage: dropdowns Nein/Ja next to the name, only if the competition type knows
   them; a disqualified card gets a red edge, a not finished one an orange edge */
.stage-dq, .stage-dnf { width: 6rem; }
.stage-status[hidden] { display: none; }
.stage-card.stage-not-finished { border-color: var(--warn); box-shadow: inset 3px 0 0 var(--warn); }
.stage-max_points { width: 6.5rem; }
/* heading "Stage <n>" with the ⋮ menu (up, down, insert an empty stage above, delete) far right, vertically
   centred; the first stage cannot move up, the last not down */
.stage-title-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: -.25rem 0; }
.stage-card:first-child .stage-up, .stage-card:last-child .stage-down { display: none; }
.stage-menu .row-menu-list button { white-space: nowrap; }
.stage-card.stage-disqualified { border-color: var(--danger); box-shadow: inset 3px 0 0 var(--danger); }
/* second line: the hit fields of the zones, then time, points and hit factor in the same grid; the third line
   (stage winner, ADR 0080) uses the same columns, so its hits, time, points and hit factor stand below the own
   ones: --zones (set by the script) columns for the zones, five more for time, points,
   hit factor, stage percentage and stage points (the last two in line 2 only, ADR 0089) */
.stage-result, .stage-best { display: grid; grid-template-columns: repeat(calc(var(--zones, 1) + 5), minmax(3rem, 7rem));
  gap: .5rem; align-items: end; }
.stage-hits { display: contents; }
.stage-hits[hidden], .stage-best[hidden], #divisionRow[hidden] { display: none; }
.stage-result .stage-time { grid-column: calc(var(--zones, 1) + 1); }
.stage-best { border-top: 1px dashed var(--border); padding-top: .5rem; }
.stage-line-title { grid-column: 1 / -1; font-size: .85rem; font-weight: 600; color: var(--muted); }
.stage-best .stage-best_time { grid-column: calc(var(--zones, 1) + 1); }
.stage-hf .label { display: block; white-space: nowrap; font-size: .85rem; color: var(--muted); margin-bottom: .2rem; }
.stage-hf output { display: block; padding: .45rem 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage-card input, .stage-card select { padding: .35rem .4rem; }
.stage-card select, .stage-card .combo-input { padding-right: 1.8rem; }
@media (max-width: 600px) {
  /* row 1: name; row 2: max. points, DQ, DNF; below three columns: the zones, then time, points, hit factor */
  .stage-head { display: flex; flex-wrap: wrap; }
  .stage-head .stage-name { flex: 1 1 100%; }
  .stage-head .stage-max_points, .stage-head .stage-status { flex: 1 1 0; width: auto; min-width: 0; }
  .stage-result, .stage-best { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage-result .stage-time, .stage-best .stage-best_time { grid-column: 1; }
}

/* Filter rows always span the full width: the search field (.q) takes the remaining
   space, .narrow fields (short selects) and .actions (buttons) only take what they need */
.filter { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.filter > div { min-width: 140px; flex: 1; }
.filter .q { flex: 3 1 14rem; }
.filter .narrow { flex: 0 1 10rem; min-width: 8rem; }
.filter .actions { flex: 0 0 auto; min-width: 0; }
/* forces the following fields onto a new line (e.g. search row, then filter row) */
.filter .break { flex: 0 0 100%; min-width: 0; height: 0; }

/* Chosen ammunition types of the price trend, each with a remove link */
.type-chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .8rem; }
.type-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; padding: .15rem .3rem .15rem .6rem; }
.type-chip a { color: var(--muted, inherit); text-decoration: none; font-size: 1rem; line-height: 1; padding: 0 .2rem; border-radius: 999px; }
.type-chip a:hover { color: var(--text); background: var(--border); }

/* Template buttons above the logbook and the form of a new entry (ADR 0050) */
.template-picker { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* Firearm lines in the logbook form */
.line-table td { padding: .3rem .25rem; vertical-align: middle; }
/* icon-only button, e.g. the trash can that removes a firearm line */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; padding: .35rem; line-height: 0; }
/* shortened e-mail address with copy button (Admin > Benutzer) */
.email-copy { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.email-copy .icon-btn { padding: .2rem; border: 0; background: none; box-shadow: none; color: var(--muted); }
.email-copy .icon-btn:hover { color: inherit; filter: none; }
.icon-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the caliber column is only needed for loaner guns */
.line-table:not(.has-loaner) .caliber-col, .line-table:not(.has-loaner) .col-caliber { display: none; }
.line-table input, .line-table select { padding: .35rem .4rem; }
/* fixed column widths: firearm and rounds stay compact, notes take the rest of the row */
.line-table { table-layout: fixed; min-width: 34rem; }
.line-table .col-firearm { width: 15rem; }
.line-table .col-caliber { width: 10rem; }
.line-table .col-rounds { width: 6rem; }
.line-table .col-remove { width: 2.75rem; }
.line-table .num-input { width: 100%; }

.chart-box { position: relative; height: 300px; }

/* Logbook form: each firearm line (and range buddy line) as a small block on narrow screens,
   the column names as labels above the fields */
@media (max-width: 600px) {
  .line-table, .line-table tbody { display: block; min-width: 0; }
  .line-table colgroup, .line-table thead { display: none; }
  .line-table tr { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: .4rem .5rem; align-items: end;
    padding: .65rem 0; border-top: 1px solid var(--border); }
  .line-table tr:first-child { border-top: 0; }
  .line-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .line-table td[data-label]::before { content: attr(data-label); display: block; font-size: .85rem; color: var(--muted); margin-bottom: .2rem; }
  .line-table .col-firearm, .line-table .col-buddy { grid-column: 1 / 3; }
  .line-table .col-remove { grid-column: 3; grid-row: 1; }
  .line-table .caliber-col { grid-column: 1 / -1; }
  .line-table .col-rounds { grid-column: 1; }
  .line-table .col-notes { grid-column: 2 / -1; }
  .line-table .buddy-status { grid-column: 1 / -1; }
  .line-table .buddy-status:empty { display: none; }
  /* the caliber of an own firearm is shown in the dropdown already */
  .line-table td.caliber-col:has(.loaner-only[hidden]) { display: none; }
}

/* Logbook: one card per entry (tbody) – date and time as the title, place and event below, then one
   compact line per firearm ("Glock 17 · 9mm · 120 Schuss") */
@media (max-width: 600px) {
  table.logbook-table tbody.entry-group { display: block; position: relative; padding: .65rem 0; border-top: 1px solid var(--border); }
  table.logbook-table tbody.entry-group:first-of-type { border-top: 0; }
  table.logbook-table tbody.entry-group tr { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem;
    position: static; padding: 0; border: 0; }
  table.logbook-table tr.group-start td { border-top: 0; }
  table.logbook-table td.card-title { flex: 0 1 auto; padding-right: 0; }
  table.logbook-table td.entry-time { order: -1; flex: 1 1 auto; display: block; text-align: left; padding-right: 2.5rem; }
  table.logbook-table td.entry-time br { display: none; }
  table.logbook-table td.entry-time .duration::before { content: " · "; }
  /* the firearm lines always start below the title, also without place and event */
  table.logbook-table tr.group-start::after { content: ""; order: -1; flex: 0 0 100%; }
  table.logbook-table td.entry-detail { flex: 0 0 100%; justify-content: flex-start; text-align: left; }
  table.logbook-table td.entry-detail::before { flex: 0 0 3.5rem; }
  table.logbook-table td.line-firearm, table.logbook-table td.line-caliber, table.logbook-table td.line-rounds { display: block; }
  table.logbook-table td.line-firearm { flex: 1 1 auto; text-align: left; }
  table.logbook-table td.line-rounds::after { content: " Schuss"; color: var(--muted); }
  table.logbook-table td.actions { top: .35rem; }
}



/* Login page */
.login-card { max-width: 26rem; margin: 3rem auto; text-align: center; padding: 2rem 1.5rem; }
.login-card h1 { margin-top: 0; }
.google-btn { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.1rem; font-weight: 600; }
.google-btn svg { width: 1.2rem; height: 1.2rem; }

/* Admin → Benutzer: blocked users */
.badge.blocked { background: var(--err-bg); color: var(--err-text); border-color: transparent; }
tr.blocked-user td { color: var(--muted); }

/* Admin → Benutzer: open/close the registration of new users */
.registration form { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; }
/* description of a statistics page (community statistics: preceded by the community note), below the second-level navigation */
.page-note { margin: -.5rem 0 1rem; }
.page-note p { margin: 0 0 .35rem; }

/* Account page: label / value list */
.account-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1.25rem; margin: 0 0 1rem; }
.account-facts dt { color: var(--muted); }
.account-facts dd { margin: 0; overflow-wrap: anywhere; }  /* long e-mail addresses wrap instead of sticking out */
/* Connected account (ADR 0113): provider logo, name and address of the account at the provider */
.connected-account { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; }
.connected-account svg { display: block; flex: none; width: 1.75rem; height: 1.75rem; }
/* account tab with a form only (community statistics): no gap above its first paragraph */
#community > form > p:first-of-type { margin-top: 0; }
.connected-account div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
/* card with its heading and an action beside it (passkeys on the account page, ADR 0113) */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.card-head h2 { margin: 0; }

/* Friends page: own friend code, code input, friend list with profile picture */
.friend-code { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin: .5rem 0 1rem; }
.friend-code code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.6rem; font-weight: 600;
  letter-spacing: .2em; padding: .35rem .8rem; border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--bg); user-select: all; }
.code-input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; letter-spacing: .15em; }
.code-input::placeholder { text-transform: none; letter-spacing: normal; font-family: inherit; }
.friend-name { display: inline-flex; align-items: center; gap: .6rem; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none;
  display: inline-flex; align-items: center; justify-content: center; background: var(--bg); color: var(--muted); }
.avatar .icon { font-size: 18px; }

/* Notifications (mail icon left of the user menu) and the indicators for open Range Buddy requests */
.notify-menu { margin-left: auto; position: relative; }
.notify-menu, .notify-menu + .user-menu { display: flex; }
.notify-menu + .user-menu { margin-left: -1rem; }
.user-btn, .nav-toggle { position: relative; }
.topbar nav .count-badge { margin-left: .35rem; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.2rem; height: 1.2rem;
  padding: 0 .35rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700;
  line-height: 1; vertical-align: middle; }
.theme-option .count-badge { margin-left: auto; }
.count-badge.on-icon { position: absolute; top: -.3rem; right: -.35rem; border: 2px solid var(--surface); height: 1.3rem; }
.dot-indicator { position: absolute; top: -1px; right: -1px; width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--surface); }
.notify-dropdown { width: min(22rem, calc(100vw - 2rem)); }
.notify-dropdown { max-height: min(32rem, calc(100vh - 6rem)); overflow-y: auto; }
.notify-dropdown form { margin: 0; }
.notify-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.notify-head .link-btn { border: 0; background: none; box-shadow: none; padding: .35rem .55rem; color: var(--accent);
  font-size: .8rem; font-weight: 400; }
.notify-head .link-btn:hover { text-decoration: underline; filter: none; }
/* a notification is a button (PATCH marks it as read), styled like a menu entry */
.notification { display: flex; width: 100%; gap: .6rem; align-items: flex-start; padding: .55rem; border: 0;
  border-radius: 6px; background: none; box-shadow: none; color: var(--muted); font: inherit; font-weight: 400;
  text-align: left; line-height: 1.35; }
.notification:hover { background: var(--bg); filter: none; }
.notification.unread { color: var(--text); }
.notification .icon { color: var(--muted); margin-top: .1rem; }
.notification.unread .icon { color: var(--accent); }
.notification-date { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.notification .unread-label { color: var(--danger); font-weight: 600; }
/* Range Buddies page: received and sent requests */
.request-list { list-style: none; margin: 0; padding: 0; }
.request-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem;
  padding: .7rem 0; border-top: 1px solid var(--border); }
.request-list li:first-child { border-top: 0; }
.request-list .friend-name > span { display: flex; flex-direction: column; }
.request-list .friend-name > span > strong + code, .request-list code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .05em; }
.request-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.request-actions form { margin: 0; }
h2 .count-badge { margin-left: .35rem; }
#requests { scroll-margin-top: 8rem; }
@media screen and (min-width: 601px) { #requests { scroll-margin-top: 1rem; } }  /* the top bar is outside the scrolling area */
/* the mail icon has no circle of its own, unlike the profile picture */
.notify-btn, .notify-btn:hover, .notify-btn[aria-expanded="true"] { background: none; border-color: transparent; box-shadow: none; }
.notify-btn .icon { font-size: 1.5rem; line-height: 1; display: block; }
.notify-menu { align-self: center; align-items: center; }
.notify-menu + .user-menu { align-self: center; align-items: center; }

/* Confirmations of logbook entries by range buddies (ADR 0026) */
.badge .icon { font-size: .95em; vertical-align: -.12em; }
.badge.confirmed { background: var(--ok-bg); color: var(--ok-text); border-color: transparent; }
.badge.declined { background: var(--err-bg); color: var(--err-text); border-color: transparent; }
.badge.pending { color: var(--muted); }
/* desktop only: on narrow screens the lines are blocks, a min-width would push the bin out of view */
@media (min-width: 601px) { .buddy-table { min-width: 24rem; } }
.line-table .col-buddy { width: 18rem; }
/* confirmed buddy: name only, aligned with the text in the dropdowns */
.line-table .buddy-locked { display: block; padding: calc(.35rem + 1px) calc(.4rem + 1px); line-height: 1.45; }
/* template form (ADR 0050): no status column, the buddy takes the whole row like the firearm lines */
.line-table.names-only .col-buddy { width: auto; }
.confirm-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .2rem 1rem; margin: .25rem 0 0; }
.confirm-facts dt { color: var(--muted); }
.confirm-facts dd { margin: 0; overflow-wrap: anywhere; }
.confirmed-icon { color: var(--ok-text); }
.confirm-indicator { display: inline-block; vertical-align: middle; margin-right: .15rem; }
.request { padding: .9rem 0; border-top: 1px solid var(--border); }
.request p { margin: 0 0 .4rem; }
.request-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.request-actions form { margin: 0; }
.request-actions.inline { margin: 0; }
/* Open confirmation request: what happens in the own logbook, then confirm or decline (ADR 0035) */
form.request { margin: 0; }
.logbook-choice { margin: .75rem 0 0; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); }
.logbook-choice legend { padding: 0 .3rem; color: var(--muted); font-size: .875rem; }
.logbook-choice label { display: flex; align-items: baseline; gap: .5rem; padding: .3rem 0; cursor: pointer; }
.logbook-choice input { flex: none; margin: 0; }
.request-actions.decision button.primary { min-width: 9rem; }
@media (max-width: 600px) {
  .request-actions.decision { flex-wrap: nowrap; }
  .request-actions.decision button.primary { flex: 1; }
}
.entry-note { margin: .35rem 0 0; display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
/* Answered confirmation requests: one card per row on small screens (ADR 0035) */
@media (max-width: 600px) {
  .answered-table thead { display: none; }
  .answered-table tr { display: grid; grid-template-columns: 1fr auto; gap: .35rem .5rem; padding: .75rem 0;
    border-top: 1px solid var(--border); }
  .answered-table tbody tr:first-child { border-top: 0; }
  .answered-table td { display: block; padding: 0; border: 0; }
  .answered-table td.from { grid-column: 1; grid-row: 1; font-weight: 600; align-self: center; }
  .answered-table td.actions { grid-column: 2; grid-row: 1; }
  .answered-table td.state { grid-column: 1 / -1; grid-row: 2; }
  .answered-table td.entry { grid-column: 1 / -1; grid-row: 3; }
}

/* review list of competition entries (admin, ADR 0095) */
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.review-reasons { list-style: none; padding: 0; margin: .6rem 0; }
.review-reasons li { display: flex; align-items: center; gap: .35rem; color: var(--warn); }
.review-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
/* range buddy table (not .table-wrap, whose overflow would clip the info tips); the community comparison and the
   admin (ADR 0095) are listed with an icon and an info tip */
.buddy-wrap { position: relative; }
.buddy-table .buddy-source { display: flex; align-items: center; gap: .35rem; }

/* Login by e-mail link and passkey (ADR 0098) */
.login-email { display: grid; gap: .5rem; text-align: left; margin: 0 0 1rem; }
.login-email label { margin: 0; }
.login-email button { width: 100%; }
.passkey-login { margin: 0 0 1rem; }
.passkey-login[hidden] { display: none; }
.passkey-btn { width: 100%; font-weight: 600; padding: .6rem 1.1rem; }
.passkey-login .flash { margin: .5rem 0 0; text-align: left; }
.passkey-hint p { margin: 0 0 .6rem; }
.passkey-hint .flash { margin: .6rem 0 0; }
.passkey-hint-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.passkey-hint[hidden] { display: none; }
.login-or { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; color: var(--muted); font-size: .85rem; }
.login-or::before, .login-or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.login-or[hidden] { display: none; }
.login-card .google-btn, .login-card .passkey-btn { width: 100%; justify-content: center; }
.auth-panel .login-email, .auth-panel .passkey-login { margin-bottom: .75rem; }
.auth-panel .login-or { margin: 0 0 .75rem; }
#resendLink:disabled { opacity: .6; cursor: not-allowed; font-variant-numeric: tabular-nums; }
