body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body.info-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f7f8fa;
    color: #222;
}

button,
input {
    font: inherit;
}

.search {
    --padding: 8px;

    box-sizing: border-box;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    display: flex;
    padding: var(--padding);
    border-radius: 28px;
    background: #f6f6f6;
    transition: box-shadow .25s;
    transition: background .25s
}

.app-layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    align-items: start;
    gap: 24px;
}

.search-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.map-container {
    position: relative;
    min-width: 0;
}

#map {
    width: 100%;
    height: 78vh;
    min-height: 560px;
}

.address-autocomplete {
    position: relative;
}

.address-suggestions {
    position: absolute;
    z-index: 5;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 280px;
    margin: 0;
    padding: 4px;
    overflow-y: auto;
    border: 1px solid #d5d5d5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    list-style: none;
}

.address-suggestion {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #222;
    text-align: left;
    cursor: pointer;
}

.address-suggestion:hover,
.address-suggestions [aria-selected="true"] .address-suggestion {
    background: #f0f4f8;
}

.address-suggestion-name {
    font-size: 14px;
    font-weight: 600;
}

.address-suggestion-context,
.address-suggestion-message {
    color: #666;
    font-size: 12px;
}

.address-suggestion-message {
    padding: 10px 12px;
}

.search:focus-within {
    box-shadow: 0 0 2px rgba(0, 0, 0, .75);
    background: #f1f1f1;
}

.search-input {
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    outline: none;
    border: none;
    background: transparent;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.search-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    fill: rgba(0, 0, 0, .7);
}

.search-input::placeholder {
    color: rgba(0, 0, 0, .7)
}

.search-submit {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #999;
    border-radius: 50%;
    background: transparent;
    color: #666;
    cursor: pointer;
}

.search-submit svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.search-submit:hover {
    background: #e8e8e8;
}

.search-submit:focus-visible {
    outline: 2px solid #666;
    outline-offset: 2px;
}

.school-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.school-select-wrap label {
    color: #333;
    font-size: 13px;
    font-weight: 600;
}

.school-select-wrap select {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #c8c8c8;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font: inherit;
}

.school-select-wrap select:focus-visible {
    outline: 2px solid #1a56b3;
    outline-offset: 2px;
}

.map-controls {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
}

.map-view-switch {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border: 0;
    border-radius: 24px;
    background: transparent;
    color: #333;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.switch-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 76px;
    height: 36px;
    padding: 3px;
    border-radius: 18px;
    background: #767676;
}

.switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 34px;
    height: 30px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: transform .2s;
}

.switch-option {
    z-index: 1;
    width: 34px;
    color: #fff;
    text-align: center;
    line-height: 30px;
    transition: color .2s;
}

.map-view-switch[aria-pressed="true"] .switch-option-3d,
.map-view-switch[aria-pressed="false"] .switch-option-2d {
    color: #666;
}

.map-view-switch[aria-pressed="true"] .switch-thumb {
    transform: translateX(36px);
}

.map-view-switch:focus-visible {
    outline: 3px solid #666;
    outline-offset: 2px;
}

.map-view-switch:disabled {
    cursor: wait;
    opacity: .6;
}

.map-status {
    margin: 0;
}

.map-status:empty {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 860px) {
    .app-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .search {
        padding: 8px;
    }
}

#app-view {
    padding: 24px;
}

/* One job per screen: welcome.html asks login-or-register, and the two pages
   behind it only do the one thing. Everything here is the shared card. */
#auth-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    width: min(420px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 24px 32px;
    background: #fff;
    text-align: left;
}

#auth-view h1,
#auth-view h2,
#auth-view p {
    margin: 0;
}

#auth-view h2 {
    font-size: 19px;
}

#auth-view form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#auth-view wa-button {
    width: 100%;
}

#auth-view section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* the chevron back to the previous step, top left like a native screen */
.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    align-self: flex-start;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    background: #fff;
    color: #1e232c;
    cursor: pointer;
}

.auth-back svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-back:hover {
    background: #f4f4f4;
}

.auth-back:focus-visible {
    outline: 2px solid #1a56b3;
    outline-offset: 2px;
}

/* the one big line that says what this screen is for */
.auth-title {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: #1e232c;
}

.auth-aside {
    text-align: right;
}

/* a text button that reads as a link - "Forgot password?" sends a sign-in
   link rather than navigating, so it cannot be an anchor */
.auth-link {
    display: inline;
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    color: #1a56b3;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.auth-link:hover {
    text-decoration: underline;
}

/* pinned to the bottom of the card, so the form above it can breathe */
#auth-view .auth-switch {
    margin-top: auto;
    padding-top: 24px;
    color: #555;
    font-size: 14px;
    text-align: center;
}

.auth-switch a {
    color: #1a56b3;
    font-weight: 600;
}

/* --- welcome screen ----------------------------------------------------- */

#auth-view.is-welcome {
    justify-content: center;
}

.is-welcome #welcome-view {
    flex: 1 1 auto;
    gap: 16px;
    justify-content: flex-end;
}

.welcome-hero {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.welcome-logo {
    width: min(260px, 72%);
    height: auto;
}

.welcome-tagline {
    color: #555;
    font-size: 15px;
}

.welcome-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 12px;
}

/* --- the student / parent question -------------------------------------- */

.role-card {
    display: block;
    box-sizing: border-box;
    width: 100%;
    /* Web Awesome's native.css gives every bare <button> a fixed
       height: var(--wa-form-control-height), which clipped these to one line */
    height: auto;
    padding: 16px 18px;
    border: 1px solid #d8dde4;
    border-radius: 14px;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.role-card:hover {
    border-color: #1a56b3;
    background: #f7faff;
}

.role-card:focus-visible {
    outline: 2px solid #1a56b3;
    outline-offset: 2px;
}

.role-card-title {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #1e232c;
}

.role-card-note {
    display: block;
    color: #5a6472;
    font-size: 13px;
    line-height: 1.45;
    white-space: normal;
}

/* carried into the form step so the answer stays visible */
.role-note {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f4f6f9;
    color: #44505f;
    font-size: 13px;
    line-height: 1.5;
}

.role-note:empty {
    display: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e2e2e2;
}

.auth-divider span {
    padding: 0 10px;
}

#auth-status {
    color: #44505f;
    font-size: 14px;
    line-height: 1.5;
}

#auth-status:empty {
    display: none;
}

[hidden] {
    display: none !important;
}
.stop-legend {
    padding: 16px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    background: #fafafa;
}

.stop-legend h2 {
    margin: 0 0 12px;
    font-size: 15px;
}

.school-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.school-filter {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.school-filter input {
    margin: 0;
}

.school-swatch {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(0, 0, 0, .25);
    border-radius: 50%;
}

.school-filter-name {
    font-weight: 600;
}

.school-filter-count {
    grid-column: 3;
    color: #666;
    font-size: 12px;
}

.stop-legend-hint {
    margin: 12px 0 0;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.stop-popup h2 {
    margin: 2px 0 6px;
    font-size: 15px;
    line-height: 1.3;
}

.stop-popup-school {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.stop-popup-detail,
.stop-popup-program {
    margin: 0 0 6px;
    color: #555;
    font-size: 12px;
}

.stop-popup-program {
    font-weight: 600;
}

.stop-popup table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
}

.stop-popup th,
.stop-popup td {
    padding: 3px 6px 3px 0;
    text-align: left;
}

.stop-popup thead th {
    border-bottom: 1px solid #ddd;
    color: #666;
    font-weight: 600;
}

.stop-popup .stop-status-value {
    font-weight: 700;
    white-space: nowrap;
}

.stop-status-value.on-time {
    color: #236b35;
}

.stop-status-value.late {
    color: #b3261e;
}

.stop-popup tbody th {
    font-weight: 600;
    white-space: nowrap;
}

.stop-popup-warning {
    margin: 8px 0 0;
    color: #92400e;
    font-size: 11px;
}

.stop-popup-nearest {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: center;
    margin: 0 0 8px;
    color: #555;
    font-size: 12px;
}

.stop-popup-nearest span:first-child {
    padding: 2px 8px;
    border-radius: 999px;
    background: #1565c0;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.stop-popup-directions {
    display: block;
    margin: 10px 0 0;
    padding: 7px 10px;
    border-radius: 6px;
    background: #1565c0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s ease;
}

.stop-popup-directions:hover,
.stop-popup-directions:focus-visible {
    background: #0d4a94;
}

/* Fade only: Mapbox positions the popup with `transform`, so animating that
   property on the container would fight the map. */
.stop-popup-container {
    animation: stop-popup-in .18s ease-out;
    transition: opacity .15s ease-in;
}

.stop-popup-container.is-closing {
    opacity: 0;
}

@keyframes stop-popup-in {
    from {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stop-popup-container {
        animation: none;
        transition: none;
    }
}

.site-footer {
    padding: 18px 24px;
    border-top: 1px solid #e2e2e2;
    background: #f7f8fa;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.language-picker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #44505f;
    font-size: 13px;
}

.language-picker select {
    min-height: 32px;
    padding: 4px 26px 4px 8px;
    border: 1px solid #c7cdd5;
    border-radius: 6px;
    background: #fff;
    color: #263445;
    font: inherit;
}

.site-footer a {
    color: #44505f;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer a:hover {
    color: #1a56b3;
}

.site-footer a:focus-visible,
.info-page a:focus-visible {
    outline: 2px solid #1a56b3;
    outline-offset: 3px;
}

.info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px max(24px, calc((100vw - 900px) / 2));
    border-bottom: 1px solid #e2e2e2;
    background: #fff;
}

.info-header img {
    display: block;
    width: auto;
    height: 56px;
}

.info-header a,
.info-content a {
    color: #1a56b3;
}

.info-content {
    box-sizing: border-box;
    flex: 1 0 auto;
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 36px 24px 56px;
    background: #fff;
    line-height: 1.65;
}

.info-content h1 {
    margin: 0 0 4px;
    font-size: clamp(28px, 4vw, 38px);
}

.info-content h2 {
    margin: 38px 0 10px;
    padding-top: 4px;
    font-size: 24px;
}

.info-content h3 {
    margin: 22px 0 6px;
    font-size: 17px;
}

.info-content p {
    margin: 8px 0 14px;
}

.info-content li {
    margin: 7px 0;
}

.info-updated {
    color: #666;
    font-size: 14px;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.app-header h1 {
    margin: 0;
    font-size: 24px;
    line-height: 0;
}

.app-logo {
    display: block;
    width: auto;
    height: 72px;
    object-fit: contain;
}

/* sign out and the account controls sit in the top right corner */
.account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.account-email {
    color: #555;
    font-size: 13px;
    max-width: 24ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-role {
    padding: 2px 8px;
    border-radius: 999px;
    background: #e8f0fe;
    color: #1a56b3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.account button {
    padding: 7px 14px;
    border: 1px solid #c8c8c8;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}

.account button:hover {
    background: #f1f1f1;
}

.account button:focus-visible {
    outline: 2px solid #666;
    outline-offset: 2px;
}

#manage-parents,
#manage-drivers {
    border-color: #1a56b3;
    color: #1a56b3;
    font-weight: 600;
}

@media (max-width: 600px) {
    .app-header {
        flex-wrap: wrap;
    }

    .account-email {
        max-width: 100%;
    }
}

.parents-dialog {
    width: min(520px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 24px;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.parents-dialog::backdrop {
    background: rgba(0, 0, 0, .45);
}

.dialog-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dialog-header h2 {
    margin: 0;
    font-size: 19px;
}

.dialog-close {
    margin-left: auto;
    padding: 0;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #555;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.dialog-close:hover {
    background: #f1f1f1;
}

.dialog-hint {
    margin: 10px 0 18px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.parent-form {
    display: flex;
    gap: 10px;
}

.parent-form input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #c8c8c8;
    border-radius: 999px;
    font-size: 14px;
}

.parent-form input:focus {
    outline: none;
    border-color: #1a56b3;
    box-shadow: 0 0 0 2px rgba(26, 86, 179, .18);
}

.parent-form button {
    flex: 0 0 auto;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: #1a56b3;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.parent-form button:hover {
    background: #15458f;
}

.dialog-status {
    margin: 12px 0 0;
    color: #444;
    font-size: 13px;
    line-height: 1.4;
}

.dialog-status:empty {
    display: none;
}

.parent-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.parent-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
    padding: 12px 14px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #fafafa;
}

.parent-row.is-empty {
    display: block;
    color: #666;
    font-size: 13px;
    text-align: center;
}

.parent-row-email {
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.parent-row-student {
    grid-column: 1;
    color: #666;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.parent-row.is-admin-row .parent-row-email {
    grid-row: 2;
}

.parent-row-state {
    grid-column: 1;
    font-size: 12px;
}

.parent-row.is-admin-row .parent-row-state {
    grid-row: 3;
}

.parent-row-state.is-joined {
    color: #15803d;
}

.parent-row-state.is-pending {
    color: #92400e;
}

.parent-row-actions {
    grid-row: 1 / span 2;
    grid-column: 2;
    display: flex;
    gap: 8px;
}

.parent-row.is-admin-row .parent-row-actions {
    grid-row: 2 / span 2;
}

.parent-row-button {
    padding: 6px 12px;
    border: 1px solid #c8c8c8;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
}

.parent-row-button:hover {
    background: #f1f1f1;
}

.parent-row-button.is-danger {
    border-color: #d9a3a3;
    color: #b42318;
}

.parent-row-button.is-danger:hover {
    background: #fdf2f2;
}

.invite-note {
    padding: 12px 14px;
    border: 1px solid #cfe0ff;
    border-radius: 10px;
    background: #f3f7ff;
    color: #1a3a6b;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.file-warning {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: min(620px, calc(100% - 32px));
    margin: 10vh auto 0;
    padding: 18px 20px;
    border: 1px solid #f0c48a;
    border-radius: 12px;
    background: #fff8ee;
    color: #7a4a05;
    font-size: 14px;
    line-height: 1.55;
}

.file-warning code {
    padding: 1px 5px;
    border-radius: 4px;
    background: #f3e3cb;
    font-size: 13px;
}

/* Account menu: the email is the <summary>, the buttons drop down under it. */
.account-menu {
    position: relative;
}

.account-menu summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid #c8c8c8;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    list-style: none;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-panel {
    position: absolute;
    z-index: 5;
    top: calc(100% + 6px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.map-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-recenter {
    padding: 8px 14px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    color: #333;
    font-weight: 600;
    cursor: pointer;
}

.map-recenter:disabled {
    cursor: wait;
    opacity: .6;
}

.map-loading {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f6;
    color: #555;
}

.map-loading[hidden] {
    display: none;
}

.map-loading.is-error {
    color: #b3261e;
}

.map-status[data-tone="error"] {
    color: #b3261e;
}

.map-status[data-tone="success"] {
    color: #2c5a37;
}

/* The sheet toggle only matters on a phone, where the sidebar is a bottom
   sheet over the map (same breakpoint as phoneLayout in main.js). */
.sheet-toggle {
    display: none;
}

@media (max-width: 760px) {
    .sheet-toggle {
        display: block;
        align-self: center;
        width: 48px;
        height: 6px;
        padding: 0;
        border: 0;
        border-radius: 3px;
        background: #c8c8c8;
        cursor: pointer;
    }

    .search-panel.is-collapsed > :not(.sheet-toggle):not(#address-form) {
        display: none;
    }
}

/* Bus driver panel and live bus markers (live-buses.js). */
.driver-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    background: #fafafa;
}

.driver-panel h2 {
    margin: 0;
    font-size: 15px;
}

.driver-panel .stop-legend-hint {
    margin: 0;
}

.driver-toggle {
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: #2c5a37;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.driver-toggle.is-sharing {
    background: #b3261e;
}

.driver-toggle:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.driver-toggle:focus-visible {
    outline: 2px solid #666;
    outline-offset: 2px;
}

.stop-status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stop-status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.stop-status-row select {
    min-height: 36px;
    padding: 5px 28px 5px 8px;
    border: 1px solid #c7cdd5;
    border-radius: 6px;
    background: #fff;
    color: #263445;
    font: inherit;
}

.bus-marker {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--bus-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.bus-marker-icon {
    font-size: 15px;
    line-height: 1;
}

.bus-popup-updated {
    margin: 0;
    color: #666;
    font-size: 12px;
}

/* Demo mode role picker in the account menu (main.js). */
.demo-role {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #666;
    font-size: 12px;
    font-weight: 600;
}

.demo-role select {
    padding: 6px 10px;
    border: 1px solid #c8c8c8;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 13px;
    font-weight: 400;
}
