.duo-tracker {
    max-width: 760px;
    margin: 2rem auto;
}

.duo-log-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.duo-log-form input,
.duo-log-form textarea {
    box-sizing: border-box;
    width: 100%;
}

.duo-coordinate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.duo-message {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid currentColor;
}

.duo-success {
    background: #f0fff4;
}

.duo-history li {
    margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
    .duo-coordinate-grid {
        grid-template-columns: 1fr;
    }
}

.duo-public-item-page {
    padding: 1rem;
}

.duo-code-lookup label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.duo-code-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.duo-code-row input {
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    text-transform: uppercase;
}

.duo-code-row button,
.duo-button-link {
    display: inline-block;
    padding: 0.7rem 1rem;
    cursor: pointer;
}

.duo-error {
    background: #fff5f5;
}

@media (max-width: 600px) {
    .duo-code-row {
        flex-direction: column;
    }
}
.duo-location-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.duo-city-wrap { position:relative; }
.duo-city-suggestions { position:absolute; z-index:9999; left:0; right:0; background:#fff; border:1px solid #bbb; box-shadow:0 4px 12px rgba(0,0,0,.15); max-height:250px; overflow:auto; }
.duo-city-option { display:block; width:100%; border:0; border-bottom:1px solid #eee; background:#fff; color:#222; padding:.65rem .8rem; text-align:left; cursor:pointer; }
.duo-city-option:hover,.duo-city-option:focus { background:#f2f2f2; }
.duo-location-help { font-size:.9em; opacity:.8; }
@media (max-width:600px){.duo-location-grid{grid-template-columns:1fr;}}

.duo-item-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.duo-item-hero h1 {
    margin: 0.2rem 0 0;
    word-break: break-word;
}

.duo-item-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.65;
}

.duo-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.duo-summary-card {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.75);
}

.duo-summary-card span,
.duo-summary-card strong {
    display: block;
}

.duo-summary-card span {
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.duo-map-section,
.duo-history-section {
    margin-top: 2rem;
}

.duo-item-map {
    width: 100%;
    height: 420px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.14);
}

.duo-history {
    list-style: none;
    margin: 0;
    padding: 0;
}

.duo-history li {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.85rem;
    margin: 0;
    padding-bottom: 1.4rem;
    position: relative;
}

.duo-history li:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 1.08rem;
    top: 2.25rem;
    bottom: 0;
    width: 2px;
    background: rgba(0, 0, 0, 0.15);
}

.duo-history-marker {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid currentColor;
    background: #fff;
    position: relative;
    z-index: 1;
}

.duo-history-content {
    padding-top: 0.2rem;
}

.duo-history-date {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .duo-item-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .duo-summary-grid {
        grid-template-columns: 1fr;
    }

    .duo-item-map {
        height: 320px;
    }
}

.duo-map-marker-wrapper {
    background: transparent;
    border: 0;
}

.duo-map-marker {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.duo-map-popup-stop + .duo-map-popup-stop {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.duo-map-popup-stop span,
.duo-map-popup-note,
.duo-map-help,
.duo-map-warning {
    font-size: 0.9rem;
}

.duo-map-popup-note {
    margin-top: 0.35rem;
}

.duo-map-help {
    margin: 0.6rem 0 0;
    opacity: 0.75;
}

.duo-map-warning {
    margin: 0.35rem 0 0;
    font-weight: 600;
}

.duo-history li[data-duo-stop] {
    cursor: pointer;
    border-radius: 6px;
}

.duo-history li[data-duo-stop]:hover,
.duo-history li[data-duo-stop]:focus {
    background: rgba(0, 0, 0, 0.04);
    outline: 2px solid transparent;
}
