* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #eef2f5;
    color: #17222c;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pin-entry-body {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 24px 18px;
    background: #244582;
    color: #ffffff;
}

.pin-entry-shell {
    width: min(720px, 100%);
    min-height: calc(100vh - 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.pin-pad-form {
    width: min(560px, 100%);
    display: grid;
    justify-items: center;
    gap: clamp(18px, 3vh, 30px);
}

.pin-hidden-input {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pin-phone-entry .pin-hidden-input {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: auto;
}

.pin-phone-entry .pin-keypad {
    display: none !important;
}

.pin-phone-entry .pin-pad-form {
    min-height: calc(100vh - 48px);
    align-content: center;
}

.pin-screen-title {
    margin: 0;
    font-size: clamp(52px, 9vw, 92px);
    line-height: 1.05;
    font-weight: 300;
    letter-spacing: 0.03em;
    text-align: center;
    color: #ffffff;
}

.pin-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 18px);
    margin-top: clamp(10px, 2vh, 26px);
}

.pin-dot {
    width: clamp(34px, 8vw, 54px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.pin-dot.is-filled {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(0.96);
}

.pin-screen-error {
    max-width: min(420px, 100%);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(143, 29, 29, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-align: center;
}

.pin-keypad {
    width: min(100%, 540px);
    display: grid;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: clamp(18px, 2.5vh, 34px) clamp(26px, 5vw, 56px);
    align-items: center;
}

.pin-keypad-spacer {
    visibility: hidden;
}

.pin-key {
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border-radius: 50%;
    border: 3px solid rgba(163, 158, 145, 0.9);
    background: transparent;
    color: #ffffff;
    font-size: clamp(44px, 8vw, 82px);
    font-weight: 300;
    line-height: 1;
}

.pin-key:hover,
.pin-key:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.pin-key:active {
    transform: scale(0.98);
}

.auth-card,
.page-shell,
.topbar {
    width: min(1100px, calc(100% - 32px));
}

.auth-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(14, 33, 52, 0.12);
}

.stack {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

input,
button {
    font: inherit;
}

input {
    padding: 12px 14px;
    border: 1px solid #c6d1db;
    border-radius: 12px;
    background: #fcfdff;
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: #1b6ca8;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.muted {
    color: #5f7080;
}

.error-box,
.info-box {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.error-box {
    background: #fbe7e7;
    color: #8c1e1e;
}

.info-box {
    background: #e5f1fb;
    color: #14496d;
}

.topbar {
    margin: 0 auto;
    padding: 20px 0 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.topbar h1 {
    margin: 0;
}

.welcome-modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(12, 24, 38, 0.48);
    z-index: 3000;
}

.welcome-modal-card {
    width: min(420px, 100%);
    padding: 28px 24px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(10, 29, 48, 0.24);
    text-align: center;
}

.welcome-modal-card h2 {
    margin: 0 0 12px;
    font-size: 32px;
}

.welcome-modal-name {
    margin: 0 0 22px;
    font-size: 24px;
    font-weight: 700;
    color: #1b4f82;
}

.search-page-title-short {
    display: none;
}

.search-page-topbar {
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 0;
}

.search-page-title,
.search-page-actions {
    flex: 0 0 auto;
}

.search-page-panel {
    flex: 1 0 100%;
}

.search-page-shell {
    margin-top: 18px;
}

.pitch-view-image-strip {
    width: min(1100px, calc(100% - 32px));
    margin: 12px auto 0;
}

.details-phone-line {
    width: 100%;
    margin-top: 8px;
    text-align: center;
}

.details-phone-line .phone-link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.pitch-view-header-main .customer-phone-line {
    width: min(320px, 100%);
    margin: 10px auto 0;
}

.customer-phone-line .phone-link {
    min-height: 50px;
    padding: 9px 14px;
    border: 2px solid #1b6ca8;
    border-radius: 8px;
    background: #ffffff;
    color: #115f9a;
    font-size: 36px;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

.details-reg-plate {
    display: flex;
    width: fit-content;
    min-width: min(198px, 100%);
    max-width: min(300px, 100%);
    align-items: center;
    justify-content: center;
    min-height: 20px;
    margin: 10px auto 0;
    padding: 6px 18px;
    background: #f7d600;
    color: #111111;
    border: 2px solid #1a1a1a;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.details-reg-secondary-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.details-reg-plate-secondary {
    margin-top: 0;
}

.details-reg-size-1 {
    font-size: 25px;
}

.details-reg-size-2 {
    font-size: 25px;
}

.details-reg-size-3 {
    font-size: 25px;
}

.pitch-view-header {
    position: relative;
    justify-content: center;
}

.pitch-view-header-main {
    width: 100%;
    text-align: center;
}

.pitch-view-header-main h1 {
    font-size: 20px;
    width: 100%;
    text-align: center;
}

.pitch-main-heading {
    font-size: 28px;
}

.pitch-view-header-actions,
.stack-topbar.pitch-view-header-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
}

.page-phones {
    margin: 8px 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #17222c;
    text-align: center;
}

.page-vehicle-line {
    margin: 8px 0 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #17222c;
    text-align: center;
}

.vehicle-notes-panel {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto 24px;
}

.vehicle-notes-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.vehicle-notes-heading h2 {
    margin: 0;
    font-size: 22px;
    color: #17222c;
}

.vehicle-notes-button {
    cursor: pointer;
}

.vehicle-notes-cancel[hidden],
.vehicle-notes-form[hidden] {
    display: none;
}

.vehicle-notes-form {
    width: min(680px, 100%);
    margin: 0 auto 12px;
}

.vehicle-notes-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c9d6e2;
    border-radius: 12px;
    font-size: 16px;
    color: #17222c;
    background: #ffffff;
    resize: vertical;
    min-height: 110px;
    font-family: inherit;
    line-height: 1.4;
}

.vehicle-notes-form textarea:focus {
    outline: 2px solid #8fb4d9;
    border-color: #7ea5cf;
}

.vehicle-notes-box {
    min-height: 120px;
    max-height: 220px;
    padding: 14px 16px;
    border: 1px solid #d8e2eb;
    border-radius: 14px;
    background: #f8fbfd;
    color: #17222c;
    font-size: 16px;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-y: auto;
}

.camera-processing-status {
    width: min(400px, calc(100% - 24px));
    margin: 8px auto 0;
    padding: 9px 12px;
    border: 1px solid #6ea0c8;
    border-radius: 8px;
    background: #eaf4fb;
    color: #164b70;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.camera-processing-status[hidden] {
    display: none;
}

.capture-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(12, 24, 38, 0.64);
}

.capture-progress-overlay[hidden] {
    display: none;
}

.capture-progress-panel {
    width: min(320px, 100%);
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 24px;
    border-radius: 8px;
    background: #ffffff;
    color: #17222c;
    text-align: center;
}

.capture-progress-spinner {
    width: 54px;
    height: 54px;
    border: 6px solid #d5e2eb;
    border-top-color: #1b6ca8;
    border-radius: 50%;
    animation: capture-progress-spin 0.8s linear infinite;
}

@keyframes capture-progress-spin {
    to {
        transform: rotate(360deg);
    }
}

.extra-images-section {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto 32px;
}

.extra-images-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.extra-images-heading-row h2 {
    margin: 0;
    font-size: 22px;
    color: #17222c;
}

.extra-images-heading-row span {
    min-width: 32px;
    padding: 5px 8px;
    border-radius: 8px;
    background: #e8eef2;
    color: #263946;
    font-weight: 700;
    text-align: center;
}

.extra-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.extra-image-item {
    min-width: 0;
    margin: 0;
    display: grid;
    align-content: start;
    overflow: hidden;
    border: 1px solid #cedae3;
    border-radius: 8px;
    background: #ffffff;
}

button.extra-image-button {
    min-width: 0;
    padding: 0;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 7px 7px 0 0;
    background: #f2f5f7;
}

button.extra-image-button:focus-visible {
    outline: 3px solid #67a8d5;
    outline-offset: -3px;
}

.extra-image-button img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    background: #f2f5f7;
}

.extra-image-item figcaption {
    display: grid;
    gap: 3px;
    color: #17222c;
    text-align: left;
}

.extra-image-note,
.extra-image-meta {
    width: 100%;
    padding: 8px 10px 0;
    overflow-wrap: anywhere;
}

.extra-image-note {
    font-weight: 700;
}

button.extra-image-note-button {
    display: block;
    min-height: 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #115f9a;
    text-align: left;
    text-decoration: underline;
}

button.extra-image-note-button:focus-visible {
    outline: 3px solid #67a8d5;
    outline-offset: -3px;
}

.extra-image-meta {
    padding-top: 4px;
    padding-bottom: 9px;
    color: #657681;
    font-size: 12px;
}

.extra-images-empty {
    margin: 0;
    padding: 14px 0;
    color: #657681;
}

.extra-image-dialog {
    width: min(520px, calc(100% - 24px));
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 20px 54px rgba(8, 26, 40, 0.28);
}

.extra-image-dialog::backdrop {
    background: rgba(12, 24, 38, 0.62);
}

.extra-image-dialog-content {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.extra-image-dialog h2 {
    margin: 0;
    font-size: 21px;
}

.extra-image-dialog img {
    width: min(360px, 100%);
    aspect-ratio: 1 / 1;
    justify-self: center;
    display: block;
    object-fit: contain;
    background: #f2f5f7;
    border: 1px solid #d7e0e7;
    border-radius: 8px;
}

.extra-image-dialog form:not([hidden]) {
    display: grid;
    gap: 14px;
}

.extra-image-dialog input[type="text"] {
    width: 100%;
}

.extra-image-dialog-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.danger-button {
    background: #b52626;
}

.secondary-button {
    background: #566772;
}

.page-phone-line {
    margin: 8px 0 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #17222c;
    text-align: center;
}

.page-phone-line-single {
    font-size: 30px;
}

.email-link {
    color: #0b63c9;
    text-decoration: underline;
}

.email-link:hover,
.email-link:focus {
    text-decoration: underline;
}

.phone-link {
    color: #0b63c9;
    text-decoration: underline;
}

.phone-link:hover,
.phone-link:focus {
    text-decoration: underline;
}

.stack-topbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.arrow-button {
    min-width: 48px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 1.15rem;
    font-weight: 900;
}

.arrow-button-placeholder {
    background: #c7d3de;
    color: transparent;
    cursor: default;
    pointer-events: none;
}

.page-shell {
    margin: 0 auto 24px;
    display: grid;
    gap: 18px;
}

.admin-page-shell {
    align-items: start;
}

.admin-user-form {
    max-width: 520px;
}

.admin-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.admin-checkbox input {
    width: auto;
    margin: 0;
}

.admin-section-title {
    margin: 0 0 14px;
    font-size: 22px;
    color: #17222c;
}

.admin-users-table th,
.admin-users-table td {
    white-space: nowrap;
}

.content-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    align-items: start;
}

.search-panel,
.table-panel,
.details-panel {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(14, 33, 52, 0.08);
    padding: 18px;
}

.table-panel {
    overflow: auto;
}

.search-panel {
    text-align: center;
}

.search-panel label {
    justify-items: center;
}

.search-box-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#pitch-search {
    width: min(520px, 100%);
    margin: 0 auto;
}

.clear-search-button {
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 10px;
    background: #c61f1f;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}


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

.desktop-hidden {
    display: none;
}

.mobile-summary-cell {
    display: none;
}

tbody tr {
    cursor: pointer;
}

tbody tr:hover,
tbody tr.is-selected {
    background: #eef7fd;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid #e4ebf1;
    text-align: left;
    white-space: nowrap;
}

th {
    background: #f5f9fc;
    position: sticky;
    top: 0;
}

.pitch-table th:nth-child(1),
.pitch-table td:nth-child(1) { width: 5%; }

.pitch-table th:nth-child(2),
.pitch-table td:nth-child(2) { width: 20%; }

.pitch-table th:nth-child(4),
.pitch-table td:nth-child(4) { width: 13%; }

.pitch-table th:nth-child(5),
.pitch-table td:nth-child(5) { width: 13%; }

.pitch-table th:nth-child(6),
.pitch-table td:nth-child(6) { width: 17%; }

.pitch-table th:nth-child(7),
.pitch-table td:nth-child(7) { width: 9%; }

.pitch-table th:nth-child(8),
.pitch-table td:nth-child(8) { width: 20%; }

.status-line {
    margin-top: 12px;
}

.details-panel h2 {
    margin-top: 0;
}

.details-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.primary-image-registration {
    width: 100%;
    display: grid;
    justify-items: center;
}

.pitch-summary-details {
    width: min(100%, 640px);
    margin: 10px auto 0;
    color: #17222c;
    text-align: center;
    line-height: 1.35;
}

.pitch-summary-facts {
    display: flex;
    justify-content: center;
    gap: 10px 24px;
    flex-wrap: wrap;
    font-size: 18px;
}

.pitch-summary-address {
    margin-top: 6px;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.main-image-user {
    color: #526774;
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px;
    margin-bottom: 7px;
    line-height: 1.2;
    text-align: center;
}


.details-text-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    justify-self: stretch;
}

.details-image-shell {
    margin: 16px 0 8px;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #f6f9fb;
    border-radius: 14px;
    border: 1px solid #dde7ef;
}

.swipe-image-shell {
    touch-action: pan-y;
    transition: transform 0.18s ease, opacity 0.18s ease;
    will-change: transform, opacity;
}

.details-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.capture-image {
    cursor: pointer;
}

.camera-capture-input {
    display: none;
}

.hidden {
    display: none;
}

.image-placeholder {
    display: grid;
    place-items: center;
    min-height: 180px;
    border: 1px dashed #c8d6e2;
    border-radius: 14px;
    background: #f7fafc;
    color: #6d7c8b;
    text-align: center;
    padding: 16px;
}

.details-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
}

.pitch-view-panel {
    justify-items: stretch;
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.pitch-view-panel .details-list {
    width: 100%;
    max-width: 320px;
    justify-items: start;
    justify-self: start;
    text-align: left;
    margin-top: 0;
    margin-left: 0;
}

.details-entry {
    display: block;
    width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
}

.details-entry-label {
    font-weight: 700;
    font-size: calc(1em + 2px);
}

.details-entry-value {
    white-space: pre-wrap;
}

.pitch-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.pitch-pagination[hidden] {
    display: none;
}

.pitch-pagination span {
    min-width: 110px;
    text-align: center;
    font-weight: 700;
}

.pitch-page-button {
    width: 48px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
    font-size: 22px;
}

.pitch-page-button:disabled {
    background: #aab6bf;
    cursor: not-allowed;
    opacity: 0.65;
}

@media (max-width: 720px) and (orientation: portrait) {
    .pitch-main-heading {
        font-size: 24px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-page-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        column-gap: 10px;
        row-gap: 10px;
        padding-bottom: 0;
    }

    .search-page-title {
        grid-column: 1 / -1;
    }

    .search-page-panel {
        flex-basis: auto;
        min-width: 0;
    }

    .topbar h1 {
        text-align: center;
    }

    .search-page-actions {
        align-self: end;
        justify-self: end;
        flex-direction: column;
        gap: 6px;
    }

    .search-page-actions .button-link {
        padding: 8px 10px;
        font-size: 14px;
    }

    .search-panel label {
        display: none;
    }

    #pitch-search {
        font-size: 25px;
    }

    .pitch-view-header-actions,
    .stack-topbar.pitch-view-header-actions {
        position: static;
        transform: none;
        justify-content: center;
        display: flex;
    }

    .pitch-view-image-strip {
        width: min(100%, calc(100% - 32px));
        margin-top: 12px;
    }

    .details-image-container {
        width: min(100%, 320px);
        max-width: 320px;
    }

    .details-image-container {
        margin-left: auto;
        margin-right: auto;
    }

    .details-text-container {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: auto;
    }

    .pitch-view-panel .details-list {
        width: 100%;
        max-width: none;
        margin-top: 0;
        margin-left: 0;
        margin-right: auto;
        justify-self: start;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    th,
    td {
        font-size: 14px;
        padding: 10px 8px;
    }

    .table-panel {
        overflow: visible;
    }

    .pitch-table thead {
        display: none;
    }

    .pitch-table,
    .pitch-table tbody,
    .pitch-table tr,
    .pitch-table td {
        display: block;
        width: 100%;
    }

    .pitch-table tbody {
        display: grid;
        gap: 12px;
    }

    .desktop-hidden {
        display: none;
    }

    .pitch-table tr {
        display: block;
        padding: 12px;
        background: #ffffff;
        border: 1px solid #e4ebf1;
        border-radius: 12px;
    }

    .pitch-table td {
        border-bottom: none;
        padding: 0;
        white-space: normal;
        min-width: 0;
    }

    .pitch-table tr > td:not(.mobile-summary-cell) {
        display: none;
    }

    .mobile-summary-cell {
        display: block;
    }

    .mobile-summary-line {
        line-height: 1.35;
        white-space: normal;
        word-break: break-word;
        text-align: center;
    }

    .mobile-summary-line + .mobile-summary-line {
        margin-top: 4px;
    }

    .mobile-summary-line:first-child {
        font-weight: 700;
        font-size: 22px;
    }

    .mobile-summary-line:nth-child(2) {
        font-size: 22px;
    }

    .mobile-summary-line:nth-child(3) {
        font-size: 17px;
    }

    .mobile-summary-line:nth-child(3) .mobile-summary-make {
        font-weight: 700;
    }
}

@media (orientation: landscape) {
    .search-panel {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        text-align: left;
    }

    .search-panel label {
        display: block;
        font-size: 36px;
        flex: 0 0 auto;
    }

    .search-box-row {
        flex: 0 1 520px;
        justify-content: flex-start;
        gap: 0;
    }

    #pitch-search {
        flex: 1 1 auto;
        font-size: 24px;
        margin: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .clear-search-button {
        margin-left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}

@media (min-width: 721px) and (orientation: landscape) {
    .search-page-topbar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
    }

    .search-page-panel {
        flex: none;
        min-width: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        text-align: left;
    }

    .search-page-panel > label {
        display: none !important;
    }

    .search-page-title-full {
        display: inline;
    }

    .search-page-title-short {
        display: none;
    }

    .search-page-actions {
        justify-self: end;
        align-self: center;
    }
}

@media (max-width: 932px) and (orientation: landscape) {
    th,
    td {
        font-size: 11px;
    }

    .search-page-topbar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 6px 0 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    .search-page-title h1 {
        font-size: 25px;
        white-space: nowrap;
    }

    .search-page-panel {
        flex: none;
        min-width: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        text-align: left;
    }

    .search-panel label {
        display: none;
    }

    .search-box-row {
        width: 75%;
        min-width: 180px;
        flex: 0 1 auto;
        margin: 0 auto;
    }

    #pitch-search {
        width: 100%;
        font-size: 25px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .clear-search-button {
        height: 36px;
    }

    .search-page-logout {
        padding: 10px 13px;
        font-size: 16px;
        white-space: nowrap;
    }

    .search-page-actions {
        gap: 6px;
    }

    .search-page-actions .button-link {
        padding: 10px 13px;
        font-size: 16px;
        white-space: nowrap;
    }

    .search-page-shell {
        margin-top: 6px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .pin-entry-body {
        padding: 24px 18px;
    }

    .pin-entry-shell {
        min-height: calc(100vh - 48px);
    }

    .pin-pad-form {
        min-height: calc(100vh - 48px);
        align-content: center;
    }

    .pin-hidden-input {
        position: fixed;
        left: 50%;
        top: 50%;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: auto;
    }

    .pin-keypad {
        display: none;
    }

    .pitch-view-header-actions,
    .stack-topbar.pitch-view-header-actions {
        display: none !important;
    }
}

@media (max-width: 820px) {
    .pin-entry-shell {
        min-height: calc(100vh - 48px);
    }

    .pin-pad-form {
        min-height: calc(100vh - 48px);
        align-content: center;
    }

    .pin-keypad {
        display: none !important;
    }
}
