* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f5f7;
    color: #1f2933;
}

.hidden {
    display: none !important;
}

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

.login-card {
    width: 100%;
    max-width: 380px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.muted {
    color: #6b7280;
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    background: white;
}

textarea {
    min-height: 80px;
    resize: vertical;
    margin-top: 12px;
}

.login-card input {
    margin-bottom: 16px;
}

.primary-btn,
.secondary-btn,
.small-btn,
.danger-btn {
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.primary-btn {
    background: #2563eb;
    color: white;
}

.secondary-btn {
    background: #e5e7eb;
    color: #111827;
}

.small-btn {
    background: #111827;
    color: white;
}

.danger-btn {
    background: #dc2626;
    color: white;
}

.error-box {
    margin-top: 14px;
    padding: 10px;
    border-radius: 10px;
    background: #fee2e2;
    color: #991b1b;
}

.footer-sign {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    height: 24px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 14px;

    background: rgba(17, 24, 39, 0.96);
    color: white;

    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;

    backdrop-filter: blur(4px);

    pointer-events: none;
    white-space: nowrap;
}

.top-panel {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;

    z-index: 20;

    background: white;

    padding: 10px 12px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.app-title {
    font-size: 18px;
    font-weight: 800;
}

.user-info {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.controls-panel {
    position: fixed;

    top: 86px;
    left: 0;
    right: 0;

    z-index: 19;

    background: rgba(255, 255, 255, 0.96);

    padding: 10px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.search-row input {
    flex: 1;
}

.button-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

#map {
    position: fixed;

    top: 174px;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
}

.store-card {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 12px;

    z-index: 30;

    background: white;

    border-radius: 18px;
    padding: 16px;

    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.store-card h2 {
    margin: 0 32px 8px 0;
    font-size: 22px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 12px;

    border: none;

    background: #e5e7eb;

    border-radius: 50%;

    width: 32px;
    height: 32px;

    font-size: 24px;
    line-height: 28px;

    cursor: pointer;
}

.address {
    color: #374151;
    margin: 0 0 12px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 8px;

    margin-bottom: 10px;
}

.status-badge {
    display: inline-block;

    border-radius: 999px;

    padding: 6px 10px;

    font-weight: 800;
    font-size: 13px;
}

.status-badge.done {
    background: #dcfce7;
    color: #166534;
}

.status-badge.not-done {
    background: #fee2e2;
    color: #991b1b;
}

.distance-text {
    color: #6b7280;
    font-size: 13px;
}

.done-info {
    background: #f3f4f6;

    border-radius: 12px;

    padding: 10px;

    font-size: 14px;

    margin-bottom: 12px;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-top: 12px;
}

.card-actions .danger-btn {
    grid-column: span 2;
}

@media (max-width: 420px) {
    .button-row {
        grid-template-columns: 1fr;
    }

    #map {
        top: 246px;
    }

    .card-actions {
        grid-template-columns: 1fr;
    }

    .card-actions .danger-btn {
        grid-column: span 1;
    }
}