:root {
    color-scheme: light;
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #fff;
    background: #183b35;
    font-synthesis: none;
    --green: #183b35;
    --supporting: #dce6e2;
    --sand: #e8d5b5;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
}

button, input {
    font: inherit;
}

a {
    color: inherit;
}

.app-shell {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 8px 24px;
}

.list-header {
    padding: 24px 16px;
}

h1, h2, p {
    margin: 0;
}

h1 {
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
}

.subtitle {
    margin-top: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

.supporting {
    margin-top: 8px;
    color: var(--supporting);
    font-size: 14px;
    line-height: 20px;
}

.locker-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.locker-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    color: var(--green);
    text-decoration: none;
    transition: background-color 160ms, transform 160ms;
}

.locker-card h2 {
    font-size: 22px;
    line-height: 28px;
    font-weight: 400;
}

.locker-details, .locker-price {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
}

.locker-price {
    align-items: flex-end;
    flex-shrink: 0;
}

.status {
    padding: 6px 12px;
    border-radius: 50px;
    background: #e3f1e8;
    color: #1d6346;
    font-weight: 500;
}

.unavailable {
    background: #e0e0e0;
    color: #595959;
}

.unavailable .status {
    background: #cecece;
    color: #454545;
}

a.locker-card:hover {
    background: #f5f2ec;
    transform: translateY(-2px);
}

a.locker-card:active {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--sand);
    outline-offset: 4px;
}

.prototype-note {
    text-align: center;
    color: var(--supporting);
    font-size: 12px;
    line-height: 18px;
    padding: 24px 16px 0;
}

.rental-screen {
    padding: 24px 16px 0;
    animation: enter 180ms ease-out;
}

.brand-link {
    display: inline-block;
    margin-bottom: 24px;
    text-decoration: none;
    color: var(--supporting);
}

.account-link {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 0;
    text-underline-offset: 4px;
}

.registration-field {
    margin-bottom: 16px;
}

.login-submit {
    margin-top: 24px;
}

.account-nav {
    display: flex;
    gap: 24px;
}

.signed-in {
    overflow-wrap: anywhere;
}

button.back-button {
    color: inherit;
}

.confirmation.error {
    color: #ffb4ab;
}

.rental-screen h1 {
    font-size: 28px;
    margin-bottom: 24px;
}

.field {
    border-radius: 12px;
    background: #f5f2ec;
    color: var(--green);
    padding: 12px 16px;
}

.field label {
    display: block;
    font-size: 12px;
    color: #52645f;
    margin-bottom: 4px;
}

.field input {
    width: 100%;
    min-height: 28px;
    border: none;
    background: transparent;
    color: var(--green);
    font-size: 18px;
}

.field:focus-within {
    outline: 3px solid var(--sand);
    outline-offset: 3px;
}

.field input:focus-visible {
    outline: none;
}

.field:has([aria-invalid="true"]) {
    background: #ffedea;
    outline: 2px solid #ffb4ab;
}

.field-help {
    margin: 8px 16px 20px;
    color: var(--supporting);
    font-size: 12px;
    min-height: 18px;
}

.field-help.error {
    color: #ffb4ab;
}

.total {
    margin: 16px 0 24px;
}

.confirm-button, .back-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.confirm-button {
    color: var(--green);
    background: var(--sand);
    transition: background-color 160ms;
}

.confirm-button:hover:not(:disabled) {
    background: #f3e4cb;
}

.confirm-button:disabled {
    color: #b8c7c2;
    background: #385650;
    cursor: not-allowed;
}

.back-button {
    margin-top: 12px;
    background: transparent;
}

.back-button:hover {
    background: #254840;
}

.confirmation {
    margin-top: 16px;
    color: var(--supporting);
    line-height: 1.5;
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 640px) {
    .app-shell {
        padding-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

.rental-terms {
    margin-bottom: 20px;
    color: var(--supporting);
    font-size: 14px;
    line-height: 1.5;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.consent input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--sand);
}

.operator-help {
    margin: 12px 0 24px;
    color: var(--supporting);
    font-size: 13px;
    line-height: 1.5;
}
