.shell-utility {
    margin-block: 1rem;
}

.shell-hours-search fieldset {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: .65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .65rem;
    margin-inline: 0;
}

.shell-hours-search legend {
    padding-inline: .3rem;
    font-weight: 650;
}

.shell-hours-search label {
    display: grid;
    gap: .2rem;
    font-size: .9rem;
    min-width: 0;
}

.shell-near-reference select {
    width: 100%;
}

.shell-utility :is(button, select, input[type="time"]),
select[name="correction_field"] {
    min-height: 44px;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    padding-inline: .65rem;
}

.shell-utility button:not(:disabled) {
    cursor: pointer;
}

.shell-utility button:disabled {
    opacity: .6;
}

.shell-utility [hidden] {
    display: none;
}

.shell-hours-search [role="status"]:empty {
    margin: 0;
}

.shell-compare-form,
.shell-compare-pick {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .9rem;
}

.shell-compare-pick {
    min-height: 44px;
    width: fit-content;
}

.shell-compare-pick input {
    accent-color: var(--accent);
}

.shell-matching-hours {
    font-weight: 650;
    margin-block: .25rem;
}

.shell-comparison {
    overflow-x: auto;
    max-width: 100%;
}

.shell-comparison table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
}

.shell-comparison :is(th, td) {
    border-bottom: 1px solid var(--line);
    text-align: start;
    vertical-align: top;
    padding: .7rem;
}

.shell-comparison th[scope="row"] {
    min-width: 8rem;
}

.shell-comparison th[scope="col"] {
    background: var(--paper-2);
}

select[name="correction_field"] {
    display: block;
}

.shell-compare-form [data-compare-selection] {
    display: flex;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shell-compare-form [data-compare-selection][hidden] {
    display: none;
}

.shell-compare-form [data-compare-selection] li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding-inline-start: .5rem;
}

.shell-compare-form [data-compare-selection] button {
    min-width: 44px;
    border: 0;
    background: transparent;
}

.shell-city-finder {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: .55rem;
}

.shell-city-finder label {
    display: grid;
    gap: .2rem;
    min-width: 0;
}

.shell-city-finder [role="status"] {
    flex-basis: 100%;
    margin: 0;
}

.at-cities .shell-city-links > li {
    padding: 0;
}

.at-cities .shell-city-links > li::before {
    content: none;
}

.at-cities .shell-city-links > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    width: 100%;
    padding: .8rem 0;
    min-height: 44px;
}

.at-cities .shell-city-links > li > a:hover span {
    text-decoration: underline;
}

.shell-hours-summary {
    margin: .4rem 0;
    font-weight: 650;
}

[data-result-path].is-map-result {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.shell-compare-differences:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
}

@media (max-width: 650px) {
    .shell-compare-form.has-selection {
        position: fixed;
        z-index: 12;
        inset: auto .75rem max(.5rem, env(safe-area-inset-bottom));
        padding: .55rem;
        margin: 0;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--paper);
        box-shadow: 0 4px 18px #0002;
        max-height: 35vh;
        overflow: auto;
    }

    .shell-compare-form.has-selection > span {
        display: none;
    }

    body:has(.shell-compare-form.has-selection) {
        padding-bottom: 9rem;
    }
}
