:root {
    --bg: #ffffff;
    --bg-alt: #f6f7f8;
    --text: #181a1b;
    --text-soft: #5b5f63;
    --border: #e2e4e6;

    /* brand accent — interactive elements only (buttons, links) */
    --accent: #1868DB;
    --accent-hover: #1454b3;
    --accent-soft: rgba(24, 104, 219, 0.12);

    /* semantic status colors — kept separate from the brand accent */
    --success: #0E8A6D;
    --success-soft: rgba(14, 138, 109, 0.12);
    --warning: #C77D18;
    --warning-soft: rgba(199, 125, 24, 0.12);
    --danger: #D93025;
    --danger-soft: rgba(217, 48, 37, 0.12);

    --radius-card: 20px;
    --radius-pill: 999px;
    --shadow: 0 1px 2px rgba(24, 26, 27, 0.04), 0 8px 24px rgba(24, 26, 27, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 24px;
}

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: var(--accent-hover);
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 14.5px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-hover);
    /* Without this, the generic a:hover { color: var(--accent-hover) } rule wins over .btn's own
       base color for a .btn that's an <a> (e.g. login's "Continue with Google") - same blue as the
       new hover background, so the label vanishes. A <button class="btn"> never had this problem
       (a:hover only matches actual anchors), which is why it looked like a one-button-only bug. */
    color: #ffffff;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.card-padded {
    padding: 32px;
    max-width: 420px;
}

/* Combine with card-padded (e.g. class="card card-padded card-wide") for a card that needs
   real table width instead of card-padded's own 420px form-card default - same 960px .page/
   .site-nav-inner already use, so wide content lines up with the page and header instead of
   introducing a third width value. Declared after card-padded so it wins on max-width at equal
   specificity. */
.card-wide {
    max-width: 960px;
}

/* Wide content (tables especially) scrolls inside its own box on a narrow viewport instead of
   blowing out the page layout - wrap with <div class="table-scroll"><table>...</table></div>. */
.table-scroll {
    overflow-x: auto;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 16px;
}

.form-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.form-error {
    color: var(--danger);
    font-size: 14px;
    margin: 0 0 16px;
}

.identity-confirmed-badge {
    color: var(--success);
    font-weight: 700;
    cursor: help;
}

.form-warning {
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 13.5px;
    padding: 10px 12px;
    border-radius: 6px;
    margin: 0 0 16px;
}

.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* .card's own overflow:hidden (for clipping square-cornered table/image children to its rounded
   corners) also clips anything absolutely-positioned past its bottom edge - including
   .live-search-dropdown on write-review.html, whose search card has no such children and can be
   short enough that the dropdown never fits inside it. Opt out per-card rather than dropping
   overflow:hidden from .card itself, which other cards still rely on. */
.card-allow-overflow {
    overflow: visible;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th {
    text-align: left;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-soft);
    font-weight: 700;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
}

tr:last-child td {
    border-bottom: none;
}

.status-pill {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 700;
}

.status-ok {
    background: var(--success-soft);
    color: var(--success);
}

.status-pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-bad {
    background: var(--danger-soft);
    color: var(--danger);
}

.hero {
    text-align: center;
    padding: 40px 0 36px;
}

.hero p {
    color: var(--text-soft);
    font-size: 16px;
    margin: 0 0 28px;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.search-form .form-input {
    margin-bottom: 0;
}

.search-form .btn {
    flex-shrink: 0;
}

.live-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 20;
    text-align: left;
    max-height: 340px;
    overflow-y: auto;
}

.live-search-dropdown.open {
    display: block;
}

.result-count {
    color: var(--text-soft);
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin: 0 0 12px;
}

.pagination {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border-top: 1px solid var(--border);
}

.pagination-pages {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-soft);
}

.pagination-page:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.pagination-page-current {
    background: var(--accent);
    color: #fff;
}

.pagination-ellipsis {
    color: var(--text-soft);
    padding: 0 4px;
}

.result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    color: inherit;
    text-decoration: none;
    font-weight: normal;
}

.result-row:hover {
    background: var(--bg-alt);
}

.result-row + .result-row {
    border-top: 1px solid var(--border);
}

/* A .result-row whose content is plain text rather than an orderLabel() pill has nothing to mark
   it as clickable - the colored pill on order rows does that job for them, hover alone doesn't
   (invisible until you're already interacting with it). Used by write-review-page.js's "None of
   these - write a general review" row, the only option shown when there's no order history to
   list. */
.result-row-action {
    color: var(--accent);
    font-weight: 600;
}

.result-row-action:hover {
    color: var(--accent-hover);
}

/* profile.html's "Companies You've Claimed" list - wraps each membership's existing .result-row
   link alongside a default-business star that must stay a sibling control, not nested inside the
   <a>, so clicking it never also navigates to the business page. Owns the between-row divider
   .result-row's own "+" sibling selector handled before the star existed as a second child. */
.membership-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.membership-row + .membership-row {
    border-top: 1px solid var(--border);
}

.membership-row .result-row {
    flex: 1;
    min-width: 0;
}

.default-business-star {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    padding: 8px 14px;
    color: var(--border);
    cursor: pointer;
    flex-shrink: 0;
}

.default-business-star:hover {
    color: var(--warning);
}

.default-business-star-active {
    color: var(--warning);
}

/* .result-row is normally an <a> (Companies You've Claimed) - review-from-orders.js's delivery
   picker reuses the same look for a <button> instead, which needs its native chrome reset first. */
button.result-row {
    border: none;
    background: none;
    font: inherit;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: block;
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.result-title-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.result-name {
    font-weight: 700;
    font-size: 15.5px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-dot {
    color: var(--text-soft);
    font-size: 13.5px;
    font-weight: normal;
    white-space: nowrap;
    flex-shrink: 0;
}

.result-dba {
    color: var(--text-soft);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-rating {
    color: #b8860b;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.type-pill-carrier {
    background: var(--accent-soft);
    color: var(--accent);
    flex-shrink: 0;
}

.type-pill-broker {
    background: var(--success-soft);
    color: var(--success);
    flex-shrink: 0;
}

.type-pill-all {
    background: var(--bg-alt);
    color: var(--text-soft);
}

.type-filter {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.type-filter-pill {
    cursor: pointer;
    border: 1.5px solid transparent;
}

.type-filter-pill.type-filter-active {
    border-color: currentColor;
}

.landing-stats {
    display: flex;
    gap: 16px;
    margin: 8px 0 24px;
}

.landing-stat-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 32px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.landing-stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 4px rgba(24, 26, 27, 0.06), 0 12px 28px rgba(24, 26, 27, 0.09);
    transform: translateY(-2px);
}

.landing-stat-card:hover .landing-stat-count {
    color: var(--accent);
}

.landing-stat-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.landing-stat-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 4px;
}

.landing-stat-count {
    font-size: 36px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.landing-stat-label {
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-soft);
}

.empty-state {
    text-align: center;
    color: var(--text-soft);
    padding: 40px 20px;
}

.site-nav {
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.impersonation-banner {
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 8px 24px;
}

.impersonation-banner .link-button {
    color: var(--warning);
    text-decoration: underline;
    margin-left: 8px;
}

.business-match-banner {
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 8px 24px;
}

.business-match-banner a {
    color: var(--accent);
    margin-left: 8px;
}

.business-match-banner .link-button {
    color: var(--accent);
    text-decoration: underline;
    margin-left: 8px;
    font-weight: 600;
}

.site-nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav-brand {
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
    letter-spacing: -0.02em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav-logo {
    display: block;
}

.site-nav-brand:hover {
    color: var(--text);
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    font-size: 14px;
    white-space: nowrap;
}

.site-nav-avatar {
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

.profile-avatar {
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

.site-nav-account {
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav-profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-weight: 400;
}

.site-nav-profile-link:hover {
    color: var(--text);
}

.site-nav-account form {
    display: inline;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
}

.link-button:hover {
    color: var(--accent-hover);
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 48px;
}

.site-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-footer-brand {
    font-weight: 800;
    color: var(--text-soft);
    font-size: 14px;
}

.site-footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
}

.site-footer-links a {
    color: var(--text-soft);
    font-weight: 400;
}

.site-footer-links a:hover {
    color: var(--text);
}

.detail-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.detail-section h3 {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-soft);
    font-weight: 700;
    margin: 0 0 14px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px 24px;
}

.detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-soft);
    margin-bottom: 2px;
}

.detail-value {
    font-size: 14.5px;
}

.detail-updated {
    margin-top: 24px;
    font-size: 12.5px;
    color: var(--text-soft);
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.review-row:not(:last-child) {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.review-body {
    min-width: 0;
    flex: 1;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.review-author {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text);
}

.review-stars {
    font-size: 14px;
    letter-spacing: 1px;
}

.star-filled {
    color: #f5a623;
}

.star-empty {
    color: var(--border);
}

/* Fractional-fill star rating (e.g. 3.4 stars showing a 40%-filled 4th star) - the business
   Reviews header's own summary, distinct from .review-stars above which only ever rounds to a
   whole star. Two identical five-star strings stacked via absolute positioning: the base layer is
   fully empty-colored, and ::before redraws the same glyphs on top in gold, clipped to --fill
   (a percentage of the 5-star width) via overflow:hidden - so the clip cuts partway through
   whichever star lands on the fractional boundary. */
.review-stars-partial {
    position: relative;
    display: inline-block;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--border);
}

.review-stars-partial::before {
    content: "★★★★★";
    position: absolute;
    top: 0;
    left: 0;
    width: var(--fill, 0%);
    overflow: hidden;
    white-space: nowrap;
    color: #f5a623;
}

/* Interactive rating input for the Write a Review modal (see write-review.js) - a <select> of
   "N - <word>" options replaced with clickable stars plus a live word label, so there's no default
   value the way a <select> always has one (its first option, or whatever .value is set to). */
.star-picker {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 16px;
}

.star-picker-star {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    font-size: 30px;
    line-height: 1;
    color: var(--border);
}

.star-picker-star.star-picker-star-filled {
    color: #f5a623;
}

.star-picker-label {
    margin-left: 10px;
    font-size: 14px;
    color: var(--text-soft);
    min-width: 70px;
}

.review-date {
    font-size: 12.5px;
    color: var(--text-soft);
    margin-left: auto;
}

.review-notes {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--text);
    /* Preserves line breaks a reviewer typed (pros/cons, separate points) while still wrapping
       normally - without this, the browser collapses them and a structured review reads as one
       run-on paragraph. Thymeleaf's th:text already renders the raw text safely (HTML-escaped),
       this is purely how the browser displays whitespace within it. */
    white-space: pre-wrap;
}

.review-reactions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* The reviewed business's own public response - see business/view.html's own comment. */
.review-reply {
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--bg-alt);
    border-radius: 10px;
}

.review-reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
}

.reply-add-btn {
    margin-top: 8px;
}

.review-comments {
    margin-top: 10px;
}

/* A small "💬 N comments" label above the thread - marks it as a discussion attached to the
   review above, rather than the flat border-top rule this used to have, which read as just
   another list item (no visual cue it was a reply thread, not a sibling review). */
.review-comment-thread-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.review-comment {
    padding: 8px 10px;
    margin-top: 6px;
    background: var(--bg-alt);
    border-radius: 10px;
}

.review-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-comment-author {
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
}

.review-comment-form {
    margin-top: 8px;
}

.review-comment-form .comment-input {
    margin-bottom: 8px;
}

/* Home page reviews teaser row - Views stays a plain read-only count, but Helpful/Confirms are
   the same interactive .reaction-btn buttons business/view.html/reviews.html have (this element
   also carries .review-reactions, reactions.js's hook class). */
.review-teaser-stats {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--text-soft);
}

/* Existing comments on the teaser, always visible (no click/toggle - unlike the interactive
   .review-comment-form on business/view.html/reviews.html) and styled like an SMS/chat thread:
   a rounded bubble per comment with one flattened corner standing in for a message tail, each
   commenter's own name labeling their bubble since this isn't a fixed two-party conversation. */
.review-teaser-comments {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.review-teaser-comment {
    align-self: flex-start;
    max-width: 85%;
    background: var(--bg-alt);
    border-radius: 14px 14px 14px 4px;
    padding: 8px 12px;
}

.review-teaser-comment-author {
    font-weight: 700;
    font-size: 12px;
    color: var(--text-soft);
    margin-bottom: 2px;
}

.review-teaser-comment-body {
    font-size: 13px;
    color: var(--text);
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg);
    color: var(--text-soft);
    font-size: 12.5px;
    cursor: pointer;
}

.reaction-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.reaction-btn-active {
    background: var(--success-soft);
    border-color: var(--success);
    color: var(--success);
}

.reaction-count {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.verified-confirms-note {
    font-size: 12px;
    color: var(--success);
}

.review-view-count {
    font-size: 12px;
    color: var(--text-soft);
}

/* Thumbnail strip under a review's notes (business/view.html, /reviews, the permalink page, the
   home teaser, profile's "Your Reviews") - each thumbnail links to its own full-size image in a
   new tab rather than a custom lightbox, which felt like more UI than 1-5 photos warrants. */
.review-photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.review-photo-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* The edit-review modal's own photo manager (edit-review.js) - existing photos with a delete-x,
   plus a file input to add more, decoupled from the modal's Save button (see edit-review.js's own
   comment: add/remove happen immediately via their own endpoints, not bundled into Save Changes). */
.edit-review-photo-thumb-wrap {
    position: relative;
    display: inline-block;
}

.edit-review-photo-delete-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    padding: 0;
    border-radius: 50%;
    background: var(--danger);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.reaction-report-btn {
    margin-left: auto;
    border: none;
    background: none;
    color: var(--text-soft);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.reaction-report-btn:hover {
    color: var(--danger);
}

.reaction-report-btn:disabled {
    color: var(--text-soft);
    text-decoration: none;
    cursor: default;
}

/* Deliberately its own class, not a second use of .reaction-report-btn - reactions.js wires up
   the report modal via container.querySelector('.reaction-report-btn') (first match wins), so
   sharing that class made it grab this button instead of the real Report one when Edit came first
   in the DOM. margin-left:auto lives here instead, so Edit+Report still end up grouped on the
   right together even though they're separate classes now. */
.edit-review-btn {
    margin-left: auto;
    border: none;
    background: none;
    color: var(--text-soft);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.edit-review-btn:hover {
    color: var(--accent);
}

.input-label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--text-soft);
}

.api-keys-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.api-keys-table th {
    text-align: left;
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-soft);
    border-bottom: 1px solid var(--border);
}

.api-keys-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.api-keys-table tr:last-child td {
    border-bottom: none;
}

.key-revoke-btn,
.admin-delete-btn,
.review-delete-btn {
    background: none;
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    font-size: 13px;
    cursor: pointer;
}

.key-revoke-btn:hover,
.admin-delete-btn:hover,
.review-delete-btn:hover {
    background: var(--danger-soft);
}

.key-revoked-label {
    color: var(--text-soft);
    font-size: 13px;
}

/* Revoked webhook rows (see webhooks.js's own renderWebhooks) are hidden by default - only
   #webhooksTableId.show-revoked (toggled by the small "Show revoked" checkbox) reveals them. */
.webhook-row-revoked {
    display: none;
}

#webhooksTableId.show-revoked .webhook-row-revoked {
    display: table-row;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-soft);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 12px 16px;
}

.btn-text:hover {
    color: var(--text);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 26, 27, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: var(--bg);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 24px;
    max-width: 480px;
    width: calc(100% - 32px);
    /* Without these, a modal whose content grows past the viewport (e.g. #fromOrdersModal's own
       delivery list) just overflows off-screen with no way to reach the rest of it or the buttons
       below - every modal shares this class, so this is a blanket fix rather than one per modal.
       A short modal never approaches 90vh, so this is a no-op for those. */
    max-height: 90vh;
    overflow-y: auto;
}

/* Screenshot lightbox on chrome-extension.html - the thumbnails are already full-resolution
   (1280x800) images just displayed small via .chrome-ext-screenshot's own max-width, so "full
   size" is the same <img>'s own src shown larger, not a second asset. Reuses .modal-overlay for
   the backdrop (same one write-review.js's modal uses) - only .lightbox-content itself is new. */
.chrome-ext-screenshot-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: zoom-in;
    display: block;
    flex: 1;
    min-width: 260px;
    max-width: 400px;
}

.chrome-ext-screenshot {
    display: block;
    width: 100%;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    transition: opacity 0.15s;
}

.chrome-ext-screenshot-btn:hover .chrome-ext-screenshot {
    opacity: 0.85;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.lightbox-image {
    display: block;
    max-width: 95vw;
    max-height: 90vh;
    border-radius: var(--radius-card);
}

.lightbox-close, .lightbox-nav {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 18px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.lightbox-prev {
    left: 12px;
}

.lightbox-next {
    right: 12px;
}

.key-reveal {
    display: block;
    margin-top: 12px;
    padding: 12px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    word-break: break-all;
    font-size: 14px;
}
