:root {
    --enamel: #1b6ec2;
    --enamel-deep: #1861ac;
    --link: #6ea8fe;
    --surface: var(--bs-tertiary-bg);
    --ink: var(--bs-body-color);
    --ink-soft: var(--bs-secondary-color);
    --line: var(--bs-border-color);
    --sign-yellow: #ffc107;
    --whatsapp: #198754;
    --danger: #ea868f;
    --warning-soft: rgba(255, 193, 7, 0.15);
    --danger-soft: rgba(220, 53, 69, 0.2);
    --radius: 15px;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    --body-font: "IBM Plex Sans Arabic", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --focus: var(--sign-yellow);
    --star: var(--sign-yellow);
    --pending-ink: #ffda6a;
    --published-ink: #7fd0a8;
    --header-bg: #0e1a30;
}

/* Themes. The picker and theme.js set data-theme; each block also retunes Bootstrap's own colors. */
:root[data-theme="night"] {
    --bs-body-bg: #14233f;
    --bs-body-bg-rgb: 20, 35, 63;
    --bs-body-color: #e8eef8;
    --bs-body-color-rgb: 232, 238, 248;
    --bs-tertiary-bg: #1b2e50;
    --bs-tertiary-bg-rgb: 27, 46, 80;
    --bs-secondary-bg: #253a61;
    --bs-secondary-bg-rgb: 37, 58, 97;
    --bs-secondary-color: #adbbd2;
    --bs-border-color: #35507f;
    --enamel: #2a6fc4;
    --enamel-deep: #225ea8;
    --link: #8fbcff;
    --danger: #f4a0a7;
}

:root[data-theme="day"] {
    --bs-body-bg: #f2f5fa;
    --bs-body-bg-rgb: 242, 245, 250;
    --bs-body-color: #1b2738;
    --bs-body-color-rgb: 27, 39, 56;
    --bs-tertiary-bg: #ffffff;
    --bs-tertiary-bg-rgb: 255, 255, 255;
    --bs-secondary-bg: #e4eaf3;
    --bs-secondary-bg-rgb: 228, 234, 243;
    --bs-secondary-color: #526176;
    --bs-border-color: #cdd7e4;
    --enamel: #1b6ec2;
    --enamel-deep: #1861ac;
    --link: #155ca6;
    --danger: #b3261e;
    --focus: #1b6ec2;
    --star: #c98a00;
    --pending-ink: #7a5b00;
    --published-ink: #146c43;
    --warning-soft: rgba(255, 193, 7, 0.25);
    --danger-soft: rgba(220, 53, 69, 0.12);
    --card-shadow: 0 2px 8px rgba(23, 54, 95, 0.1);
    --header-bg: #17365f;
}

:root[data-theme="nile"] {
    --bs-body-bg: #0f3031;
    --bs-body-bg-rgb: 15, 48, 49;
    --bs-body-color: #e6f2ef;
    --bs-body-color-rgb: 230, 242, 239;
    --bs-tertiary-bg: #16413f;
    --bs-tertiary-bg-rgb: 22, 65, 63;
    --bs-secondary-bg: #1e514e;
    --bs-secondary-bg-rgb: 30, 81, 78;
    --bs-secondary-color: #a9c8c1;
    --bs-border-color: #2f6a66;
    --enamel: #0c7c71;
    --enamel-deep: #096a60;
    --link: #7fe0d0;
    --danger: #f4a8a0;
    --published-ink: #8fe0b8;
    --header-bg: #0a2425;
}

.request-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--sign-yellow);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
}

.request-card-accepted, .request-card-completed {
    border-inline-start-color: var(--whatsapp);
}

.request-card-rejected {
    border-inline-start-color: var(--danger);
}

.request-card-cancelled {
    border-inline-start-color: var(--line);
}

.request-card-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.request-card-title {
    min-width: 0;
}

.profile-page .request-card h2 {
    font-size: 1.15rem;
    line-height: 1.4;
    margin: 0;
    overflow-wrap: anywhere;
}

.request-card h2 a {
    color: var(--ink);
    text-decoration: none;
}

.request-card h2 a:hover {
    color: var(--link);
}

.request-card .service-status {
    flex: none;
    font-size: 0.85rem;
    margin: 0;
    padding: 3px 10px;
}

.request-party {
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin: 2px 0 0;
}

.request-text {
    line-height: 1.8;
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.request-meta {
    color: var(--ink-soft);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 4px 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.request-note {
    background: var(--bs-secondary-bg);
    border-radius: 8px;
    margin: 0;
    overflow-wrap: anywhere;
    padding: 10px 12px;
    white-space: pre-line;
}

.request-card .status-note {
    margin: 0;
}

.request-card .request-reply {
    margin: 0;
}

.request-waiting {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.request-card .rate-service {
    border-top: 0;
    margin: 0;
    padding-top: 0;
}

.request-card-actions {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-top: 12px;
}

.request-card-actions:not(:has(*)) {
    display: none;
}

.request-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 16px;
}

.request-range {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
}

.request-chart {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-block: 16px 24px;
    padding: 16px 18px;
}

.request-chart-head {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    justify-content: space-between;
}

.profile-page .request-chart h2 {
    font-size: 1.15rem;
    margin: 0;
}

.request-chart-head span {
    color: var(--ink-soft);
}

.request-chart-hint {
    color: var(--ink-soft);
    font-size: 0.88rem;
    margin: 4px 0 10px;
}

.request-bar {
    align-items: center;
    background: none;
    border: 0;
    border-radius: 8px;
    color: var(--ink);
    display: grid;
    gap: 12px;
    grid-template-columns: 120px 1fr 76px;
    min-height: 40px;
    padding: 4px 8px;
    text-align: start;
    width: 100%;
}

.request-bar:hover, .request-bar[aria-pressed="true"] {
    background: var(--bs-secondary-bg);
}

.request-bar[aria-pressed="true"] .request-bar-label {
    font-weight: 600;
}

.request-bar-label {
    white-space: nowrap;
}

.request-bar-track {
    display: block;
    height: 12px;
}

.request-bar-fill {
    background: var(--link);
    border-radius: 4px;
    display: block;
    height: 100%;
}

.request-bar-value {
    font-weight: 600;
    text-align: end;
}

.request-bar-value small {
    color: var(--ink-soft);
    font-weight: 400;
}

.profile-page .request-group {
    color: var(--ink-soft);
    font-size: 1rem;
    margin: 12px 0 0;
}

.profile-page .request-group:first-child {
    margin-top: 0;
}

@media (max-width: 575px) {
    .request-bar {
        gap: 8px;
        grid-template-columns: 96px 1fr 62px;
    }
}

.service-ad-chip {
    background: var(--sign-yellow);
    border-radius: 999px;
    color: #212529;
    font-size: 0.8rem;
    font-weight: 600;
    inset-block-start: 10px;
    inset-inline-end: 10px;
    padding: 3px 12px;
    position: absolute;
    z-index: 1;
}

.plan-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-block: 20px;
}

.plan-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

.plan-card-current {
    border: 2px solid var(--enamel);
}

.plan-card-tag {
    color: var(--link);
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-page .plan-card h2, .plan-card h2 {
    font-size: 1.25rem;
    margin: 0;
}

.plan-card-price {
    margin: 0;
}

.plan-card-price strong {
    font-size: 1.3rem;
}

.plan-card-old-price {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-height: 1.75rem;
}

.plan-card-price .plan-card-discount {
    background: var(--enamel);
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
}

.plan-card-price span, .plan-card-description {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.plan-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plan-card-description {
    flex: 1;
    margin: 0;
}

.plan-summary, .plan-request, .plan-editor {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-block: 16px;
    padding: 16px 18px;
}

.plan-summary-head {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    justify-content: space-between;
}

.profile-page .plan-summary h2, .profile-page .plan-request h2 {
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.plan-summary-head span {
    color: var(--ink-soft);
}

.plan-usage {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin-top: 8px;
}

.plan-editor-numbers {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.plan-grant {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.plan-grant .field {
    margin: 0;
    min-width: 160px;
}

.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.theme-picker {
    display: flex;
    gap: 6px;
}

.theme-swatch {
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    height: 30px;
    padding: 0;
    width: 30px;
}

.theme-swatch[aria-pressed="true"] {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--sign-yellow);
}

.theme-swatch-night {
    background: linear-gradient(135deg, #14233f 50%, #2a6fc4 50%);
}

.theme-swatch-day {
    background: linear-gradient(135deg, #ffffff 50%, #1b6ec2 50%);
}

.theme-swatch-nile {
    background: linear-gradient(135deg, #0f3031 50%, #2bb3a3 50%);
}

html, body {
    font-family: var(--body-font);
}

h1:focus {
    outline: none;
}

a {
    color: var(--link);
}

h1, h2 {
    font-weight: 700;
    line-height: 1.3;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.brand-icon {
    color: #ff574a;
    font-size: 2rem;
}

.main-menu-item {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 110px;
}

.main-menu-item.active {
    border-bottom: solid 3px #929292;
}

.nav-menu {
    font-size: 1.1rem;
}

.account-badge {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.account-badge .nav-account, .account-badge .link-button {
    color: var(--bs-light);
}

/* Centered page title, as in the section headers of the MechanicShop client. */
.street-plate {
    padding-block: 32px 16px;
    text-align: center;
}

.street-plate h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin: 0 0 8px;
}

.street-plate p {
    color: var(--ink-soft);
    font-size: 1.1rem;
    margin: 0 0 24px;
}

.plate-search {
    display: flex;
    margin-inline: auto;
    max-width: 620px;
}

.plate-search input {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0 6px 6px 0;
    color: var(--ink);
    flex: 1;
    font-size: 1.05rem;
    min-width: 0;
    padding: 12px 16px;
}

.plate-search button {
    background: var(--enamel);
    border: 1px solid var(--enamel-deep);
    border-radius: 6px 0 0 6px;
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
}

.category-chip {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-size: 0.92rem;
    padding: 6px 12px;
}

.category-chip[aria-pressed="true"] {
    background: var(--enamel);
    border-color: var(--enamel);
    color: #fff;
}

.sort-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-block: 24px 16px;
}

.area-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.area-governorate {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
}

.area-governorate summary {
    align-items: baseline;
    cursor: pointer;
    display: flex;
    font-weight: 600;
    gap: 10px;
}

.area-governorate summary small {
    color: var(--ink-soft);
    font-weight: 400;
}

.area-rows {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.area-rows li {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding-block: 8px;
}

.area-row-name {
    flex: 1;
    min-width: 140px;
}

.area-row-meta {
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.area-form {
    margin-block: 10px;
    width: 100%;
}

.area-form-numbers {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.recommended-list .color-grid {
    margin-top: 10px;
}

.favorite-button {
    align-items: center;
    background: rgba(33, 37, 41, 0.75);
    border: 0;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: none;
    font-size: 1.1rem;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.favorite-button-active {
    color: #ff6b81;
}

.service-hero .favorite-button {
    inset-block-end: 10px;
    inset-inline-end: 10px;
    position: absolute;
    z-index: 1;
}

.service-details-title {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.review-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
}

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

.review-stars {
    color: var(--star);
}

.review-card time {
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin-inline-start: auto;
}

.review-card p {
    margin: 8px 0 0;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.review-service {
    display: inline-block;
    font-size: 0.9rem;
    margin-top: 6px;
}

.sort-select {
    flex: 0 1 220px;
    min-width: 180px;
}

.sort-select select {
    background: var(--bs-body-bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-size: 1.05rem;
    padding: 13px 14px;
    width: 100%;
}

.badge-recommended {
    align-items: center;
    align-self: flex-start;
    background: var(--warning-soft);
    border-radius: 999px;
    color: var(--pending-ink);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 600;
    gap: 4px;
    padding: 2px 10px;
}

.provider-card .badge-recommended {
    align-self: center;
    margin-block: 4px;
}

.provider-recommended {
    margin: 4px 0;
}

.filter-area {
    flex: 0 1 260px;
    min-width: 200px;
}

.filter-category {
    flex: 0 1 480px;
    min-width: 260px;
}

.combobox {
    position: relative;
}

.combobox-field {
    position: relative;
}

.combobox-field input {
    background: var(--bs-body-bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-size: 1.05rem;
    padding: 13px 14px;
    padding-inline-end: 44px;
    width: 100%;
}

.field .combobox-field input:not([type="radio"]) {
    padding-inline-end: 44px;
}

.combobox-clear, .combobox-chevron {
    color: var(--ink-soft);
    inset-block-start: 50%;
    inset-inline-end: 8px;
    position: absolute;
    transform: translateY(-50%);
}

.combobox-chevron {
    pointer-events: none;
}

.combobox-clear {
    background: none;
    border: 0;
    padding: 4px 8px;
}

.combobox-list {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    inset-inline: 0;
    list-style: none;
    margin: 4px 0 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
    position: absolute;
    z-index: 20;
}

.combobox-option {
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 10px 12px;
}

.combobox-option:hover, .combobox-option-active {
    background: var(--bs-secondary-bg);
}

.combobox-option-new {
    border-top: 1px solid var(--line);
    color: var(--link);
    font-weight: 600;
}

.combobox-empty {
    color: var(--ink-soft);
    padding: 8px 10px;
}

.sort-note {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.sort-bar .form-error {
    margin: 0;
}

.service-status {
    background: var(--warning-soft);
    border-radius: 6px;
    color: var(--pending-ink);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    padding: 4px 8px;
    text-align: center;
}

.service-status-published {
    background: rgba(25, 135, 84, 0.2);
    color: var(--published-ink);
}

.service-status-hidden {
    background: var(--bs-secondary-bg);
    color: var(--ink-soft);
}

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

.service-card-distance {
    color: var(--link);
    font-weight: 600;
}

.service-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-hero {
    flex: none;
    height: 190px;
    overflow: hidden;
    position: relative;
}

.service-hero-link {
    align-items: center;
    color: #fff;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.service-hero-link img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.service-hero-icon {
    font-size: 4rem;
}

.service-hero-chip {
    background: rgba(33, 37, 41, 0.85);
    border-radius: 999px;
    color: #fff;
    font-size: 0.85rem;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    padding: 3px 12px;
    position: absolute;
}

.service-hero-nav {
    align-items: center;
    background: rgba(33, 37, 41, 0.75);
    border: 0;
    border-radius: 50%;
    color: #fff;
    display: flex;
    height: 34px;
    inset-block-start: 50%;
    justify-content: center;
    position: absolute;
    transform: translateY(-50%);
    width: 34px;
}

.service-hero-previous {
    inset-inline-start: 8px;
}

.service-hero-next {
    inset-inline-end: 8px;
}

.service-hero-dots {
    bottom: 8px;
    display: flex;
    gap: 6px;
    justify-content: center;
    inset-inline: 0;
    position: absolute;
}

.service-hero-dots button {
    background: rgba(255, 255, 255, 0.55);
    border: 0;
    border-radius: 50%;
    height: 10px;
    padding: 0;
    width: 10px;
}

.service-hero-dots button.active {
    background: #fff;
}

.service-card-body {
    color: inherit;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 16px 16px;
    text-decoration: none;
}

.service-card-body:hover {
    color: inherit;
}

.service-card-body h2 {
    font-size: 1.2rem;
    margin: 10px 0 6px;
}

.service-card-provider {
    align-items: center;
    display: flex;
    gap: 10px;
}

.service-card-provider > span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.service-card-provider-name {
    display: block;
    font-weight: 500;
    line-height: 1.3;
}

.service-card-provider-job {
    color: var(--ink-soft);
    display: block;
    font-size: 0.85rem;
}

.service-card-category {
    align-self: flex-start;
    background: var(--enamel);
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-size: 0.82rem;
    padding: 2px 10px;
}

.service-card-summary {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: var(--ink-soft);
    display: -webkit-box;
    flex: 1;
    line-height: 1.5;
    margin-bottom: 0;
    min-height: 4.5em;
    overflow: hidden;
}

/* Always takes its line, so the meta row stays aligned across a grid row. */
.service-card-more {
    color: var(--link);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    min-height: 1.5em;
}

.service-card-meta {
    color: var(--ink-soft);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 4px 12px;
    justify-content: space-between;
}

.badge-verified {
    background: var(--sign-yellow);
    border-radius: 4px;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 1px 8px;
}

.badge-employee {
    background: #0dcaf0;
    border-radius: 4px;
    color: #212529;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 1px 8px;
}

.admin-provider-row {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
}

.admin-provider-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    font-size: 0.9rem;
    min-width: 180px;
}

.admin-provider-info span {
    color: var(--ink-soft);
}

.admin-provider-info span[dir="ltr"] {
    text-align: right;
}

.status-switch {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-flex;
    overflow: hidden;
}

.status-switch button {
    background: none;
    border: 0;
    color: var(--ink);
    padding: 6px 12px;
}

.status-switch button[aria-pressed="true"] {
    background: var(--enamel);
    color: #fff;
}

.badge-unverified {
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 400;
}

.load-more, .empty-state {
    margin-top: 32px;
    text-align: center;
}

.empty-state {
    padding-block: 48px;
}

.loading-note {
    color: var(--ink-soft);
    padding-block: 24px;
    text-align: center;
}

.btn-plate, .btn-outline-plate, .btn-call, .btn-whatsapp {
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
    padding: 10px 24px;
    text-align: center;
    text-decoration: none;
}

.btn-plate {
    background: var(--enamel);
    border: 2px solid var(--enamel);
    color: #fff;
}

.btn-plate:hover {
    background: var(--enamel-deep);
    border-color: var(--enamel-deep);
    color: #fff;
}

.btn-plate:disabled {
    opacity: 0.6;
}

.btn-plate-small {
    font-size: 0.92rem;
    padding: 4px 14px;
}

.btn-outline-plate {
    background: transparent;
    border: 2px solid var(--link);
    color: var(--link);
}

.link-button {
    background: transparent;
    border: 2px solid var(--link);
    border-radius: 6px;
    color: var(--link);
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 600;
    min-height: 36px;
    padding: 4px 14px;
    text-align: center;
    text-decoration: none;
}

.link-button:hover:not(:disabled) {
    background: var(--link);
    color: var(--bs-body-bg);
}

.link-button:disabled {
    opacity: 0.6;
}

.link-button.link-danger {
    border-color: var(--danger);
    color: var(--danger);
}

/* Bootstrap's own .link-danger forces its color, even on hover, so this has to as well. */
.link-button.link-danger:hover:not(:disabled) {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--bs-body-bg) !important;
}

.back-link {
    color: var(--link);
    display: inline-block;
    margin-bottom: 16px;
}

.service-details {
    align-items: start;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.service-details h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    margin: 12px 0;
}

.service-details-description {
    max-width: 65ch;
    white-space: pre-line;
}

.fact-list {
    display: grid;
    gap: 4px 24px;
    grid-template-columns: max-content 1fr;
    margin-top: 24px;
}

.fact-list dt {
    color: var(--ink-soft);
    font-weight: 400;
}

.fact-list dd {
    margin: 0;
}

.provider-plate {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 24px;
}

.provider-job {
    color: var(--ink-soft);
    margin: 0;
}

.provider-plate h2 {
    font-size: 1.35rem;
    margin: 0;
}

.provider-plate-kind {
    align-items: center;
    color: var(--ink-soft);
    display: flex;
    gap: 8px;
}

.btn-call, .btn-whatsapp {
    color: #fff;
    display: block;
    margin-top: 8px;
}

.btn-call {
    background: var(--enamel);
}

.btn-whatsapp {
    background: var(--whatsapp);
}

.btn-call:hover, .btn-whatsapp:hover {
    color: #fff;
    filter: brightness(0.9);
}

.form-page {
    margin-inline: auto;
    max-width: 680px;
}

.form-page-narrow {
    max-width: 440px;
}

.form-lead {
    color: var(--ink-soft);
}

fieldset {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    padding: 20px;
}

legend {
    float: none;
    font-size: 1.2rem;
    margin: 0;
    padding-inline: 8px;
    width: auto;
}

.field {
    margin-bottom: 16px;
}

.field label, .field-label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.field input:not([type="radio"]), .field select, .field textarea {
    background: var(--bs-body-bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    padding: 10px 12px;
    width: 100%;
}

.field small {
    color: var(--ink-soft);
    display: block;
    margin-top: 4px;
}

.field-row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.radio-row {
    display: flex;
    gap: 24px;
}

.radio-row label {
    font-weight: 400;
}

.avatar {
    align-items: center;
    background: var(--enamel);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: none;
    justify-content: center;
    object-fit: cover;
    overflow: hidden;
}

.nav-account {
    align-items: center;
    color: var(--link);
    display: inline-flex;
    gap: 8px;
    text-decoration: none;
}

.service-card-image {
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    margin-bottom: 12px;
    object-fit: cover;
    width: 100%;
}

.gallery-main {
    aspect-ratio: 4 / 3;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    margin-block: 16px 8px;
    object-fit: contain;
    width: 100%;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.gallery-thumbs button {
    background: none;
    border: 2px solid var(--line);
    border-radius: 6px;
    height: 64px;
    overflow: hidden;
    padding: 0;
    width: 80px;
}

.gallery-thumbs button[aria-pressed="true"] {
    border-color: var(--enamel);
}

.gallery-thumbs img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.location-search {
    margin-top: 8px;
}

.location-search gmp-place-autocomplete {
    width: 100%;
}

.location-map {
    border: 1px solid var(--line);
    border-radius: 8px;
    height: 320px;
    margin-block: 8px;
    width: 100%;
}

.location-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.location-embed {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    height: 300px;
    margin-block: 16px 8px;
    width: 100%;
}

.color-grid {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.category-manager {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    margin-top: 12px;
}

.tree-panel, .category-editor {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 14px;
}

.category-editor {
    position: sticky;
    top: 16px;
}

.category-editor h2 {
    font-size: 1.3rem;
    margin: 0 0 14px;
}

.category-path {
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin: 0 0 2px;
}

.category-editor-empty {
    color: var(--ink-soft);
    padding: 48px 16px;
    text-align: center;
}

.category-editor-empty i {
    font-size: 2.5rem;
}

.category-color-field {
    align-items: center;
    display: flex;
    gap: 12px;
}

.category-editor .category-color-field input[type="color"] {
    height: 40px;
    padding: 2px;
    width: 64px;
}

.tree-total {
    color: var(--ink-soft);
}

.tree-tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-bottom: 10px;
}

.tree-tools input {
    background: var(--bs-body-bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    flex: 1 1 200px;
    min-width: 0;
    padding: 8px 10px;
}

.tree-root, .tree-children, .tree-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tree-root {
    max-height: 62vh;
    overflow-y: auto;
}

.tree-children {
    border-inline-start: 2px solid var(--line);
    margin-inline-start: 15px;
    padding-inline-start: 8px;
}

.tree-row {
    align-items: center;
    border-radius: 8px;
    display: flex;
    gap: 2px;
}

.tree-row:hover {
    background: var(--bs-secondary-bg);
}

.tree-row-selected, .tree-row-selected:hover {
    background: var(--enamel);
    color: #fff;
}

.tree-toggle, .tree-label {
    background: none;
    border: 0;
    color: inherit;
}

.tree-toggle, .tree-toggle-space {
    flex: none;
    height: 32px;
    width: 28px;
}

.tree-label {
    align-items: center;
    display: flex;
    flex: 1;
    gap: 8px;
    min-width: 0;
    padding: 5px 4px;
    text-align: start;
}

.tree-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-dot {
    align-items: center;
    border-radius: 6px;
    color: #fff;
    display: flex;
    flex: none;
    font-size: 0.8rem;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.tree-dot-large {
    font-size: 1.2rem;
    height: 40px;
    width: 40px;
}

.tree-count {
    background: var(--bs-secondary-bg);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.75rem;
    min-width: 24px;
    padding: 0 6px;
    text-align: center;
}

.tree-results button {
    background: none;
    border: 0;
    border-radius: 6px;
    color: inherit;
    display: block;
    padding: 7px 8px;
    text-align: start;
    width: 100%;
}

.tree-results button:hover {
    background: var(--bs-secondary-bg);
}

.tree-empty {
    color: var(--ink-soft);
    padding: 8px;
}

.category-add {
    display: flex;
    gap: 8px;
    margin-block: 12px;
}

.category-add input {
    background: var(--bs-body-bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
}

.category-parent-select {
    background: var(--bs-body-bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    max-width: 200px;
    padding: 8px;
}

.category-node-actions {
    display: flex;
    gap: 8px;
    padding-inline: 8px;
}

.color-row {
    flex-wrap: wrap;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    gap: 12px;
    padding: 10px 14px;
}

.color-preview {
    align-items: center;
    border-radius: 8px;
    color: #fff;
    display: flex;
    flex: none;
    font-size: 1.3rem;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.color-name {
    flex: 1;
    font-weight: 500;
}

.color-row input[type="color"] {
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    height: 38px;
    padding: 2px;
    width: 56px;
}

.page-title {
    margin-top: 16px;
    text-align: center;
}

.page-lead {
    color: var(--ink-soft);
    margin-bottom: 24px;
    text-align: center;
}

.provider-card {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.provider-card:hover {
    color: inherit;
    transform: translateY(-5px);
}

.provider-name-link {
    color: inherit;
}

.provider-profile {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px;
}

.provider-profile-info {
    flex: 1;
    min-width: 240px;
}

.provider-profile-info h1 {
    margin: 0;
}

.provider-profile-info .provider-job {
    align-items: center;
    display: flex;
    gap: 8px;
}

.provider-profile-about {
    margin: 10px 0 0;
    max-width: 65ch;
    white-space: pre-line;
}

.provider-profile-contact {
    flex: 0 1 200px;
    min-width: 160px;
}

.provider-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.provider-links a {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: inline-flex;
    font-size: 1.15rem;
    height: 44px;
    justify-content: center;
    text-decoration: none;
    width: 44px;
}

.provider-links a:hover {
    border-color: var(--link);
    color: var(--link);
}

.work-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.work-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    padding-bottom: 14px;
}

.work-card-image {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.work-card-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 14px 0;
}

.work-card-thumbs button {
    background: none;
    border: 2px solid transparent;
    border-radius: 6px;
    flex: 0 0 auto;
    padding: 0;
}

.work-card-thumbs button[aria-pressed="true"] {
    border-color: var(--sign-yellow);
}

.work-card-thumbs img {
    border-radius: 4px;
    display: block;
    height: 44px;
    object-fit: cover;
    width: 56px;
}

.work-card h3 {
    font-size: 1.05rem;
    margin: 12px 14px 0;
}

.work-card p {
    color: var(--ink-soft);
    margin: 6px 14px 0;
    white-space: pre-line;
}

.work-empty {
    margin-top: 16px;
}

.work-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.work-editor {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}

.work-editor h3 {
    font-size: 1.1rem;
    margin: 0;
}

.work-editor-details {
    color: var(--ink-soft);
    margin: 6px 0 0;
    white-space: pre-line;
}

.work-editor-actions, .work-form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.work-editor .image-manager {
    margin-block: 14px;
}

.work-review-title {
    font-size: 1.15rem;
    margin: 8px 0 0;
}

.work-editor .service-status {
    display: inline-block;
    margin-bottom: 6px;
}

.link-danger {
    color: var(--danger);
}

.link-fields {
    margin-top: 12px;
}

.link-fields legend {
    font-size: 1.05rem;
    font-weight: 600;
}

.provider-services-title {
    font-size: 1.4rem;
    margin-block: 28px 16px;
}

.provider-card h2 {
    font-size: 1.2rem;
    margin: 6px 0 0;
}

.provider-card-about {
    color: var(--ink-soft);
    display: -webkit-box;
    flex: 1;
    font-size: 0.92rem;
    margin: 4px 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.provider-card-footer {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 10px;
    width: 100%;
}

.star-rating {
    align-items: center;
    color: var(--star);
    display: inline-flex;
    gap: 2px;
}

.star-rating-value {
    color: var(--ink);
    font-weight: 600;
    margin-inline-start: 6px;
}

.star-rating-count {
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin-inline-start: 4px;
}

.rate-service {
    border-top: 1px solid var(--line);
    margin-block: 12px;
    padding-top: 12px;
}

.rate-stars {
    display: flex;
    gap: 2px;
}

.rate-stars button {
    background: none;
    border: 0;
    color: var(--star);
    font-size: 1.4rem;
    padding: 2px 4px;
}

.review-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    margin-top: 16px;
    padding: 20px;
}

.review-card h2 {
    margin: 0;
}

.review-category {
    align-items: center;
    color: var(--ink-soft);
    display: flex;
    gap: 8px;
}

.review-phone {
    text-align: right;
}

.admin-shell {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: 220px minmax(0, 1fr);
}

.admin-sidebar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    /* It stays in view while the page scrolls, so a long menu scrolls by itself. */
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 12px;
    position: sticky;
    top: 16px;
}

.admin-sidebar-title {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin: 4px 8px 8px;
}

.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-sidebar a {
    border-radius: 8px;
    color: var(--ink);
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
}

.admin-sidebar a:hover {
    background: var(--bs-secondary-bg);
}

.admin-sidebar a.active {
    background: var(--enamel);
    color: #fff;
}

.admin-count {
    background: var(--sign-yellow);
    border-radius: 999px;
    color: #212529;
    font-size: 0.8rem;
    font-weight: 600;
    margin-inline-start: auto;
    min-width: 24px;
    padding: 0 7px;
    text-align: center;
}

.admin-content .profile-page {
    margin-inline: 0;
    max-width: none;
}

.admin-content .service-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.category-name-input {
    background: var(--bs-body-bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
}

.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.review-image {
    text-align: center;
    width: 112px;
}

.review-image img {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.my-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.status-note {
    background: var(--warning-soft);
    border-inline-start: 4px solid var(--sign-yellow);
    border-radius: 4px;
    display: block;
    margin-top: 16px;
    padding: 10px 12px;
}

.status-rejected {
    background: var(--danger-soft);
    border-inline-start-color: var(--danger);
}

.image-manager {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin-block: 24px;
}

.image-tile {
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 8px;
    padding: 8px;
}

.image-tile-primary {
    border-color: var(--sign-yellow);
}

.image-tile img {
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    object-fit: cover;
    width: 100%;
}

.image-tile-actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 40px;
}

.file-button {
    color: var(--link);
    cursor: pointer;
    display: block;
    margin-top: 4px;
    text-decoration: underline;
}

.file-button:focus-within, .btn-outline-plate:focus-within {
    outline: 3px solid var(--focus);
}

.my-service {
    display: flex;
    flex-direction: column;
}

.my-service .service-card {
    flex: 1;
}

.profile-page {
    margin-inline: auto;
    max-width: 960px;
}

.profile-page section {
    margin-top: 32px;
}

.profile-page h2 {
    font-size: 1.4rem;
}

.profile-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
}

.profile-header h1, .profile-header p {
    margin: 0;
}

.profile-header p {
    color: var(--ink-soft);
}

.profile-section-title {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.profile-section-title h2 {
    margin: 0;
}

.save-note {
    color: var(--whatsapp);
    margin-inline-start: 12px;
}

.validation-message, .form-error {
    color: var(--danger);
}

.form-error {
    margin-top: 16px;
}

.google-button {
    min-height: 44px;
}

.divider-text {
    color: var(--ink-soft);
    margin-block: 16px;
    text-align: center;
}

@media (max-width: 760px) {
    .service-details, .field-row, .admin-shell, .category-manager {
        grid-template-columns: 1fr;
    }

    .category-editor {
        position: static;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}

/* Home page: list or map */
.view-switch {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-flex;
    overflow: hidden;
}

.view-switch button {
    background: var(--surface);
    border: 0;
    color: var(--ink);
    min-height: 44px;
    padding-inline: 16px;
}

.view-switch button[aria-pressed="true"] {
    background: var(--enamel);
    color: #fff;
}

.view-switch button:focus-visible,
.map-result:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: -2px;
}

.map-view {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    height: min(70vh, 640px);
    margin-block-end: 24px;
    overflow: hidden;
}

.map-results {
    border-inline-end: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.map-results-head {
    border-block-end: 1px solid var(--line);
    display: grid;
    gap: 4px;
    padding: 12px 16px;
}

.map-results-head small,
.map-results-empty {
    color: var(--ink-soft);
}

.map-results-empty {
    margin: 0;
    padding: 16px;
}

.map-results ul {
    flex: 1;
    list-style: none;
    margin: 0;
    overflow-y: auto;
    padding: 0;
}

.map-result {
    background: none;
    border: 0;
    border-block-end: 1px solid var(--line);
    color: var(--ink);
    display: grid;
    gap: 0;
    padding: 8px 16px;
    text-align: start;
    width: 100%;
}

.map-result strong,
.map-result-line {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-result-line {
    color: var(--ink-soft);
    font-size: 0.8125rem;
}

.map-result-top {
    color: var(--ink-soft);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    font-weight: 600;
    gap: 0 12px;
}

.map-result:hover {
    background: var(--bs-secondary-bg);
}

.map-result[aria-pressed="true"] {
    background: var(--bs-secondary-bg);
    box-shadow: inset -4px 0 0 var(--enamel);
}

.map-canvas {
    min-height: 0;
}

/* The bubble is always white, whatever the site theme. */
.map-bubble {
    color: #1b2738;
    display: grid;
    gap: 4px;
    max-width: 220px;
}

.map-bubble a {
    color: #155ca6;
    font-weight: 600;
}

@media (max-width: 768px) {
    .map-view {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 320px 340px;
        height: auto;
    }

    .map-canvas {
        grid-row: 1;
    }

    .map-results {
        border-block-start: 1px solid var(--line);
        border-inline-end: 0;
        grid-row: 2;
    }
}

/* Home page: most viewed strip */
.most-viewed {
    margin-block: 8px 16px;
}

.most-viewed-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-block-end: 8px;
}

.most-viewed-head h2 {
    font-size: 1.125rem;
    margin: 0;
}

.most-viewed-head a {
    color: var(--ink);
    text-decoration: none;
}

.most-viewed-head a:hover {
    color: var(--link);
    text-decoration: underline;
}

.most-viewed-window {
    overflow: hidden;
}

.most-viewed-track {
    animation: most-viewed-slide var(--strip-duration, 60s) linear infinite;
    display: flex;
    width: max-content;
}

.most-viewed-track:hover,
.most-viewed-track:focus-within {
    animation-play-state: paused;
}

.most-viewed-track ul {
    display: flex;
    gap: 12px;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    min-width: 100vw;
    padding: 0;
    padding-inline-end: 12px;
}

.most-viewed-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: grid;
    padding: 8px 12px;
    text-decoration: none;
    width: 240px;
}

.most-viewed-item:hover {
    border-color: var(--enamel);
}

.most-viewed-item strong,
.most-viewed-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.most-viewed-item span {
    color: var(--ink-soft);
    font-size: 0.8125rem;
}

@keyframes most-viewed-slide {
    to {
        transform: translateX(50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .most-viewed-window {
        overflow-x: auto;
    }

    .most-viewed-track {
        animation: none;
    }

    .most-viewed-copy {
        display: none !important;
    }
}

/* Products: public showcase */
.product-showcase {
    margin-block: 32px;
}

.product-showcase h2 {
    font-size: 1.4rem;
    margin-block-end: 16px;
}

.product-layout {
    display: grid;
    gap: 16px;
}

.product-layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.product-layout-spotlight {
    grid-auto-rows: 1fr;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    padding: 0 0 12px;
    text-align: start;
}

.product-card > strong,
.product-card > .product-price,
.product-card > .product-unavailable {
    padding-inline: 12px;
}

.product-card:hover,
.product-card[aria-pressed="true"] {
    border-color: var(--enamel);
}

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

.product-card-image {
    align-items: center;
    background: var(--bs-secondary-bg);
    color: var(--ink-soft);
    display: flex;
    flex: none;
    font-size: 2rem;
    height: 170px;
    justify-content: center;
    position: relative;
}

.product-card-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.product-card-lead {
    grid-column: span 2;
    grid-row: span 2;
}

.product-card-lead .product-card-image {
    flex: 1;
    height: auto;
    min-height: 260px;
}

.product-card-lead > strong {
    font-size: 1.2rem;
}

.product-discount {
    background: var(--enamel);
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    inset-block-start: 8px;
    inset-inline-start: 8px;
    padding: 2px 8px;
    position: absolute;
}

.product-price {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
}

.product-price del {
    color: var(--ink-soft);
    font-size: 0.875rem;
}

.product-unavailable {
    color: var(--danger);
    font-size: 0.875rem;
    margin: 0;
}

.product-category {
    color: var(--ink-soft);
    margin: 0;
}

.product-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    margin-block-end: 16px;
    padding: 16px;
}

.product-panel-main {
    aspect-ratio: 1;
    border-radius: 8px;
    display: block;
    object-fit: contain;
    width: 100%;
}

.product-panel-text {
    display: grid;
    align-content: start;
    gap: 8px;
}

.product-panel-text h3 {
    margin: 0;
}

.product-panel-description {
    margin: 0;
    white-space: pre-line;
}

.product-panel-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Products: owner's screen */
.product-themes {
    margin-block: 16px;
}

.product-themes h2 {
    font-size: 1.1rem;
}

.product-theme-options {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-theme-option {
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    padding: 12px;
}

.product-theme-option.is-selected {
    border-color: var(--enamel);
}

.product-editor {
    background: var(--surface);
    border-radius: var(--radius);
    margin-block: 16px;
}

.product-editor-checks {
    display: grid;
    gap: 8px;
    margin-block-end: 16px;
}

.product-editor-images {
    margin-block-start: 16px;
}

.product-editor-images h4 {
    font-size: 1rem;
}

.product-editor-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-block-end: 12px;
}

.product-editor-thumb {
    display: grid;
    gap: 4px;
    justify-items: center;
}

.product-editor-thumb img,
.product-row img {
    border-radius: 8px;
    height: 96px;
    object-fit: cover;
    width: 96px;
}

.product-row {
    align-items: center;
    display: flex;
    gap: 12px;
}

.product-row h3 {
    font-size: 1.05rem;
    margin: 0 0 4px;
}

@media (max-width: 768px) {
    .product-layout-spotlight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-panel {
        grid-template-columns: minmax(0, 1fr);
    }
}

.profile-page > .product-editor {
    border: 1px solid var(--line);
    padding: 16px;
}

.btn-outline-plate.product-jump {
    background: var(--sign-yellow);
    border-color: var(--sign-yellow);
    color: #212529;
    margin-block-start: 12px;
}

.btn-outline-plate.product-jump:hover {
    background: #e0a800;
    border-color: #e0a800;
    color: #212529;
}

.product-showcase {
    scroll-margin-block-start: 96px;
}

.product-showcase:focus {
    outline: none;
}

/* Sign out stays quiet in the header. */
.account-badge .link-button,
.account-badge .link-button:hover:not(:disabled) {
    background: none;
    border: 0;
    color: var(--bs-light);
    font-weight: 400;
    min-height: 0;
    padding: 4px 8px;
    text-decoration: underline;
}

.service-products-chip {
    background: var(--enamel);
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    inset-block-end: 10px;
    inset-inline-start: 10px;
    padding: 3px 12px;
    position: absolute;
    z-index: 1;
}

.product-preview {
    background: var(--bs-secondary-bg);
    border-radius: var(--radius);
    margin-block-start: 12px;
    padding: 16px;
}

.product-preview .product-showcase {
    margin-block: 0;
}

.product-theme-text {
    display: grid;
    flex: 1;
    gap: 8px;
}

.theme-sketch {
    display: grid;
    gap: 4px;
    grid-template-rows: repeat(2, 36px);
}

.theme-sketch i {
    background: var(--bs-secondary-bg);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.product-theme-option.is-selected .theme-sketch i {
    background: var(--enamel);
    border-color: var(--enamel);
}

.theme-sketch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-sketch-spotlight {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.theme-sketch-spotlight i:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.service-share.is-open {
    flex-basis: 100%;
}

.service-share-panel {
    background: var(--bs-secondary-bg);
    border-radius: 8px;
    color: var(--ink);
    margin-block-start: 8px;
    padding: 12px;
}

.service-share-panel p {
    margin-block: 0 8px;
}

.service-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Provider reports */
.report-page {
    max-width: 1040px;
}

.report-tiles {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-block: 16px 24px;
}

.report-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 2px;
    padding: 12px 16px;
}

.report-tile span,
.report-tile small {
    color: var(--ink-soft);
}

.report-tile strong {
    font-size: 1.6rem;
}

.report-trend {
    align-items: flex-end;
    display: flex;
    gap: 2px;
    height: 120px;
    margin-block-start: 12px;
}

.report-trend-day {
    align-items: flex-end;
    display: flex;
    flex: 1;
    height: 100%;
    min-width: 0;
}

.report-trend-day:hover {
    background: var(--bs-secondary-bg);
}

.report-trend-bar {
    background: var(--link);
    border-radius: 2px 2px 0 0;
    display: block;
    width: 100%;
}

.report-trend-range {
    color: var(--ink-soft);
    display: flex;
    font-size: 0.8125rem;
    justify-content: space-between;
    margin-block-start: 4px;
}

.report-table-wrap {
    overflow-x: auto;
}

.report-table {
    border-collapse: collapse;
    min-width: 640px;
    width: 100%;
}

.report-table th,
.report-table td {
    border-block-end: 1px solid var(--line);
    padding: 8px;
    text-align: start;
    white-space: nowrap;
}

.report-table tbody th {
    font-weight: 500;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Provider's page settings */
.store-link-field {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: flex;
    overflow: hidden;
}

.store-link-field span {
    background: var(--bs-secondary-bg);
    color: var(--ink-soft);
    padding: 8px 10px;
    white-space: nowrap;
}

.store-link-field input {
    border: 0;
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
}

.store-colors {
    border: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin: 0 0 16px;
    padding: 0;
}

.store-colors legend {
    font-size: 1rem;
    font-weight: 600;
    margin-block-end: 8px;
}

.store-color {
    align-items: center;
    border: 2px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    padding: 6px 10px;
}

.store-color span {
    border-radius: 50%;
    height: 24px;
    width: 24px;
}

.store-color.is-selected {
    border-color: var(--link);
}

.store-color:focus-within {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.store-cover-preview {
    aspect-ratio: 16 / 7;
    border-radius: 8px;
    display: block;
    margin-block-end: 12px;
    object-fit: cover;
    width: 100%;
}

.store-qr-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.store-qr {
    background: #fff;
    border-radius: 8px;
    height: 160px;
    width: 160px;
}

.store-qr svg {
    height: 100%;
    width: 100%;
}

.store-public-link {
    overflow-wrap: anywhere;
}

/* Service hours */
.service-hours {
    align-items: center;
    color: var(--ink-soft);
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 2px 6px;
    margin-block-end: 8px;
}

.service-hours i {
    font-size: 0.5rem;
}

.service-hours small {
    font-weight: 400;
}

.service-hours.is-open,
.available-dot {
    color: var(--published-ink);
}

.availability-fields {
    border: 0;
    margin: 0;
    padding: 0;
}

.availability-fields legend {
    font-size: 1rem;
    font-weight: 600;
}

.availability-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-block-end: 8px;
}

/* Open requests and offers */
.offer-cta {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: space-between;
    margin-block-end: 16px;
    padding: 12px 16px;
}

.request-estimate {
    background: var(--bs-secondary-bg);
    border-radius: 8px;
    display: grid;
    gap: 2px;
    margin-block-end: 16px;
    padding: 12px 14px;
}

.request-head {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: space-between;
}

.profile-page .request-head h2 {
    font-size: 1.1rem;
    margin: 0;
}

.request-state {
    color: var(--ink-soft);
    font-size: 0.875rem;
}

.request-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-end: 12px;
}

.request-images img {
    border-radius: 8px;
    height: 88px;
    object-fit: cover;
    width: 88px;
}

.offer-list {
    display: grid;
    gap: 8px;
    margin-block-end: 12px;
}

.offer-card {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px 12px;
}

.offer-card.is-chosen {
    border-color: var(--link);
    border-width: 2px;
}

.offer-card > div:nth-child(2) {
    display: grid;
    gap: 2px;
}

.offer-card span {
    color: var(--ink-soft);
    font-size: 0.875rem;
}

.offer-action {
    display: grid;
    gap: 6px;
    justify-items: end;
}

.recipients-input {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 8px;
    width: 90px;
}

@media (max-width: 576px) {
    .offer-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .offer-action {
        grid-column: 1 / -1;
        justify-items: stretch;
    }
}

.unlinked-areas {
    background: var(--warning-soft);
    border-radius: var(--radius);
    margin-block: 16px;
    padding: 12px 16px;
}

.profile-page .unlinked-areas h2 {
    font-size: 1.1rem;
    margin: 0 0 4px;
}

.unlinked-area {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-block-start: 8px;
}

.unlinked-area strong {
    min-width: 130px;
}

.provider-plate .service-share .btn-call {
    border: 0;
    width: 100%;
}

/* My trusted providers */
.btn-save-provider {
    background: transparent;
    border: 2px solid var(--link);
    border-radius: 6px;
    color: var(--link);
    display: block;
    font-weight: 600;
    margin-top: 8px;
    padding: 8px 16px;
    width: 100%;
}

.btn-save-provider[aria-pressed="true"] {
    background: var(--link);
    color: var(--bs-body-bg);
}

.my-pros {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-top: 16px;
}

.my-pro {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 10px;
    padding: 16px;
}

.my-pro-head {
    align-items: center;
    display: flex;
    gap: 12px;
}

.profile-page .my-pro h2 {
    font-size: 1.15rem;
    margin: 0;
}

.my-pro-head p {
    color: var(--ink-soft);
    margin: 0;
}

.my-pro-actions,
.my-pro-rename {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.my-pro-rename input {
    border: 1px solid var(--line);
    border-radius: 6px;
    flex: 1;
    min-width: 140px;
    padding: 6px 8px;
}

.rate-save-provider {
    background: var(--bs-secondary-bg);
    border-radius: 8px;
    margin-block-start: 12px;
    padding: 10px 12px;
}

/* Achievements and badges */
.badge-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
    padding: 0;
    list-style: none;
}

.badge-chips li {
    padding: 3px 10px;
    border: 1px solid var(--sign-yellow);
    border-radius: 999px;
    font-size: 0.85rem;
}

.badge-chips i {
    color: var(--sign-yellow);
}

.rewards-summary,
.rewards-section {
    margin-block: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.rewards-section h2 {
    margin-block-end: 8px;
    font-size: 1.2rem;
}

.rewards-points {
    margin: 0 0 8px;
}

.rewards-points strong {
    font-size: 2.5rem;
    line-height: 1;
}

.rewards-meter {
    height: 10px;
    margin-block-end: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--bs-secondary-bg);
}

.rewards-meter span {
    display: block;
    height: 100%;
    background: var(--sign-yellow);
}

.rewards-summary p:last-child,
.rewards-section p:last-child {
    margin-block-end: 0;
}

.rewards-waiting {
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--warning-soft);
}

.invite-link {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.invite-link input {
    flex: 1 1 240px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bs-body-bg);
    color: var(--ink);
}

.invite-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ink-soft);
}

.invite-stats strong {
    color: var(--ink);
}

.reward-badges {
    display: grid;
    gap: 10px;
}

.reward-badge {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: 12px;
}

.reward-badge > i {
    color: var(--ink-soft);
    font-size: 1.8rem;
}

.reward-badge.is-earned {
    border: 1px solid var(--sign-yellow);
}

.reward-badge.is-earned > i {
    color: var(--sign-yellow);
}

.reward-badge h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.reward-badge p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.reward-achievements {
    margin: 0;
    padding: 0;
    list-style: none;
}

.reward-achievements li {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.reward-achievements p {
    margin: 2px 0 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.reward-achievements span {
    flex: none;
    font-weight: 700;
}

.rewards-count {
    color: var(--ink-soft);
}

.join-invite {
    text-align: center;
}

.join-invite h1 {
    margin-block-start: 14px;
}

.invite-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.invite-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding-block: 10px;
    border-block-start: 1px solid var(--line);
}

.invite-list p {
    margin: 2px 0 0;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.invite-status {
    flex: none;
    font-size: 0.85rem;
}

.invite-status.is-completed {
    color: var(--published-ink);
}

.invite-status.is-pending {
    color: var(--pending-ink);
}

.invite-status.is-rejected {
    color: var(--danger);
}

/* Phone confirmation */
.phone-verify {
    margin-block: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.phone-verify h2 {
    margin-block-end: 8px;
    font-size: 1.2rem;
}

.phone-verify small {
    display: block;
    margin-block-start: 10px;
    color: var(--ink-soft);
}

.phone-verify-done {
    margin: 0;
    color: var(--published-ink);
}

.phone-verify-code {
    margin-block: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.phone-review {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 16px;
    margin-block-end: 12px;
}

.phone-review dt {
    color: var(--ink-soft);
    font-weight: 400;
}

.phone-review dd {
    margin: 0;
    font-weight: 700;
    text-align: start;
}

.phone-confirmed {
    color: var(--published-ink);
    font-size: 0.9rem;
}

.phone-confirmed-mark {
    display: inline-flex;
    gap: 1px;
    align-items: center;
    margin-inline-start: 4px;
    color: var(--published-ink);
    font-size: 0.75rem;
    vertical-align: middle;
}

/* Reports, insights and legal pages */
.report-provider {
    margin-block-start: 12px;
}

.report-form {
    margin-block-start: 10px;
}

.report-form small {
    display: block;
    margin-block-start: 8px;
    color: var(--ink-soft);
}

.report-phone {
    text-align: end;
}

.delete-account {
    margin-block: 32px 8px;
    padding: 18px;
    border: 1px solid var(--danger);
    border-radius: var(--radius);
}

.delete-account h2 {
    margin-block-end: 8px;
    font-size: 1.2rem;
}

.insight-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-block: 18px 28px;
}

.insight-stats > div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.insight-stats dt {
    color: var(--ink-soft);
    font-weight: 400;
}

.insight-stats dd {
    margin: 4px 0 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.insight-table {
    --bs-table-bg: transparent;
    margin-block-end: 28px;
}

.legal-page {
    max-width: 70ch;
    margin-inline: auto;
}

.legal-page h2 {
    margin-block-start: 28px;
    font-size: 1.25rem;
}

.login-consent {
    margin-block-start: 20px;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.site-footer {
    padding-block: 20px;
    border-block-start: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.9rem;
    text-align: center;
}

.site-footer a {
    margin-inline: 8px;
}

.brand-logo {
    display: block;
    width: auto;
    height: 52px;
}

/* The sections of the account and admin side menus. */
.side-menu-group {
    align-items: center;
    background: none;
    border: 0;
    border-radius: 8px;
    color: var(--ink-soft);
    display: flex;
    font-size: 0.85rem;
    font-weight: 700;
    gap: 8px;
    margin-block-start: 8px;
    min-height: 36px;
    padding: 4px 10px;
    text-align: start;
    width: 100%;
}

.side-menu-group > span:first-child {
    flex: 1;
}

.side-menu-group:hover {
    background: var(--bs-secondary-bg);
}

.side-menu-group[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.side-menu-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-menu-toggle {
    display: none;
}

.header-cta {
    align-items: center;
    background: var(--sign-yellow);
    border-radius: 8px;
    color: #212529;
    display: inline-flex;
    font-weight: 700;
    gap: 6px;
    padding: 7px 12px;
    text-decoration: none;
}

.header-cta:hover {
    background: #e0a800;
    color: #212529;
}

.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .site-header nav.nav {
        display: none;
    }

    /* The bottom bar already carries the account and sign-in links. */
    .account-badge .nav-account,
    .header-actions > a:not(.header-cta) {
        display: none;
    }

    .header-cta {
        font-size: 0.875rem;
        padding: 6px 10px;
    }

    .site-footer {
        padding-block-end: 84px;
    }

    .mobile-nav {
        background: var(--header-bg);
        border-block-start: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.2);
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        inset-inline: 0;
        padding-block-end: env(safe-area-inset-bottom);
        position: fixed;
        z-index: 20;
    }

    .mobile-nav a {
        align-items: center;
        color: rgba(255, 255, 255, 0.82);
        display: flex;
        flex-direction: column;
        font-size: 0.75rem;
        gap: 2px;
        min-height: 56px;
        justify-content: center;
        text-decoration: none;
    }

    .mobile-nav a i {
        font-size: 1.25rem;
    }

    .mobile-nav a.active {
        color: var(--sign-yellow);
        font-weight: 700;
    }

    .admin-sidebar-title {
        display: none;
    }

    .side-menu-toggle {
        align-items: center;
        background: var(--enamel);
        border: 0;
        border-radius: 8px;
        color: #fff;
        display: flex;
        font-weight: 700;
        justify-content: space-between;
        min-height: 44px;
        padding: 0 12px;
        width: 100%;
    }

    .admin-sidebar {
        max-height: none;
        overflow-y: visible;
    }

    .admin-sidebar nav {
        display: none;
    }

    .admin-sidebar.is-open nav {
        display: flex;
        flex-direction: column;
        margin-block-start: 8px;
    }
}

/* The side menu's scrollbar takes the theme's color. */
.admin-sidebar::-webkit-scrollbar {
    width: 12px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: var(--bs-secondary-bg);
    border-radius: 999px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: var(--enamel);
    border: 2px solid var(--bs-secondary-bg);
    border-radius: 999px;
}

@supports not selector(::-webkit-scrollbar) {
    .admin-sidebar {
        scrollbar-color: var(--enamel) var(--bs-secondary-bg);
    }
}

/* The admin home. */
.home-waiting {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    margin-block-end: 24px;
}

.home-waiting a {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    text-decoration: none;
}

.home-waiting a:hover {
    border-color: var(--enamel);
}

.home-waiting strong {
    font-size: 1.25rem;
    margin-inline-start: auto;
}

.home-trends,
.home-columns {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-block: 24px;
}

.trend {
    margin: 0;
}

.trend figcaption {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-block-end: 8px;
}

.trend-bars {
    align-items: stretch;
    border-block-end: 1px solid var(--line);
    direction: ltr;
    display: flex;
    gap: 2px;
    height: 110px;
}

.trend-bars span {
    align-items: flex-end;
    display: flex;
    flex: 1;
    min-width: 0;
}

.trend-bars i {
    background: var(--enamel);
    border-radius: 3px 3px 0 0;
    display: block;
    min-height: 1px;
    width: 100%;
}

.home-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}

.home-list li {
    border-block-end: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding-block: 8px;
}

.home-list time {
    color: var(--ink-soft);
    font-size: 0.85rem;
    white-space: nowrap;
}

.audit-details {
    color: var(--ink-soft);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
    text-align: left;
}

/* A count stands out only when something is waiting. */
.admin-count {
    background: var(--bs-secondary-bg);
    color: var(--ink-soft);
}

.admin-count.has-items {
    background: #d92d20;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
    color: #fff;
    font-weight: 700;
}

/* Possible providers, for admins only. */
.candidate-search {
    display: flex;
    gap: 8px;
    margin-block-end: 12px;
}

.candidate-search input {
    border: 1px solid var(--line);
    border-radius: 8px;
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
}

.candidate-sample {
    background: var(--bs-secondary-bg);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.75rem;
    margin-inline-start: 6px;
    padding: 1px 8px;
}

.candidate-facts {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-block: 16px;
}

.candidate-facts dt {
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-weight: 400;
}

.candidate-facts dd {
    margin: 0;
}

.license-image {
    display: block;
    max-width: 100%;
    max-height: 28rem;
    border-radius: 12px;
}

/* Choosing a category level by level. */
.category-picker {
    display: grid;
    gap: 10px;
}

.category-chosen {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
}

.category-chosen .bi-check-circle-fill {
    color: #1FA971;
}

.category-chosen .link-button {
    margin-inline-start: auto;
}

.category-crumbs {
    align-items: center;
    color: var(--ink-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-crumbs button:disabled {
    color: inherit;
    font-weight: 700;
    opacity: 1;
}

.category-tiles {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.category-tile {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: inherit;
    display: flex;
    gap: 8px;
    min-height: 48px;
    padding: 8px 10px;
    text-align: start;
}

.category-tile:hover,
.category-result:hover {
    border-color: currentColor;
}

.category-tile-more {
    color: var(--ink-soft);
    font-size: 0.75rem;
    margin-inline-start: auto;
}

.category-results {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 0;
    max-height: 280px;
    overflow-y: auto;
    padding: 0;
}

.category-result {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: inherit;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    text-align: start;
    width: 100%;
}

.category-result small,
.category-hint {
    color: var(--ink-soft);
}

.category-hint {
    margin: 0;
}

.category-new {
    border-block-start: 1px solid var(--line);
    padding-block-start: 10px;
}

.category-new-row {
    display: flex;
    gap: 8px;
}

.category-new-row input {
    flex: 1;
}

.category-suggested {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 20px;
    padding: 16px 20px;
}

.category-suggested ul {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.category-suggested li {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* The light beside a field that opens extra advice. */
.field-label-row {
    align-items: center;
    display: flex;
    gap: 6px;
}

.field-label-row label {
    margin-block-end: 0;
}

.field-tip {
    display: inline-flex;
    position: relative;
}

.field-tip-button {
    background: none;
    border: 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1;
    padding: 4px;
}

.field-tip-body {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    color: inherit;
    display: none;
    font-size: 0.875rem;
    font-weight: 400;
    gap: 6px;
    inset-block-start: 100%;
    inset-inline-start: 0;
    line-height: 1.5;
    padding: 12px;
    position: absolute;
    width: min(340px, 78vw);
    z-index: 50;
}

.field-tip:hover .field-tip-body,
.field-tip:focus-within .field-tip-body {
    display: grid;
}

.field-tip-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.field-tip-examples span {
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 1px 8px;
}

/* Nothing may widen the page sideways on a phone. */
html {
    overflow-x: clip;
}

/* A checkbox sits beside its words, not above them. */
.field label input[type="checkbox"] {
    display: inline-block;
    width: auto;
}

/* Turning notifications on for this device. */
.push-toggle {
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    gap: 12px;
    margin-block: 12px;
    padding: 12px 14px;
}

.push-toggle > .bi {
    font-size: 1.25rem;
}

.push-toggle > div {
    align-items: flex-start;
    display: grid;
    gap: 6px;
    justify-items: start;
}
