:root.stt-modal-open { overflow: hidden; }

.stt {
    --stt-blue: #008dcc;
    --stt-blue-dark: #006fa8;
    --stt-navy: #12324b;
    --stt-ink: #243442;
    --stt-muted: #647480;
    --stt-border: #dbe4ea;
    --stt-soft: #f4f8fa;
    --stt-alert: #c83d45;
    --stt-shadow: 0 18px 55px rgba(10, 38, 58, .22);
    --stt-left: 24px;
    --stt-bottom: 24px;
    --stt-mobile-bottom: 78px;
    --stt-panel-width: 440px;
    font-family: inherit;
    color: var(--stt-ink);
}

.stt *, .stt *::before, .stt *::after { box-sizing: border-box; }
.stt button, .stt select { font: inherit; }
.stt svg { display: block; width: 1.25em; height: 1.25em; fill: currentColor; }

.stt-launcher {
    position: fixed;
    z-index: 2147483000;
    left: var(--stt-left);
    bottom: var(--stt-bottom);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 18px 10px 13px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(to right, rgb(0, 121, 194), rgb(64, 151, 146), rgb(128, 181, 97), rgb(191, 210, 49), rgb(255, 240, 0)) !important;
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 97, 145, .32);
    cursor: pointer;
    font-weight: 700;
    letter-spacing: .01em;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.stt-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 97, 145, .38); filter: brightness(1.03); }
.stt-launcher:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(0, 141, 204, .42); }
.stt-launcher__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.16); }
.stt-launcher__icon svg { width: 24px; height: 24px; }
.stt-launcher__badge {
    display: grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    margin-left: 2px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--stt-alert);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.stt-dialog[hidden] { display: none !important; }
.stt--floating .stt-dialog { position: fixed; inset: 0; z-index: 2147482990; }
.stt-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(4, 24, 38, .32); backdrop-filter: blur(2px); cursor: default; }

.stt-panel {
    background: #fff;
    color: var(--stt-ink);
    overflow: hidden;
}
.stt--floating .stt-panel {
    position: absolute;
    left: var(--stt-left);
    bottom: calc(var(--stt-bottom) + 72px);
    width: min(var(--stt-panel-width), calc(100vw - 32px));
    max-height: min(720px, calc(100dvh - 130px));
    border: 1px solid rgba(10, 56, 82, .12);
    border-radius: 20px;
    box-shadow: var(--stt-shadow);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(12px) scale(.98);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
}
.stt--floating .stt-dialog.is-open .stt-panel { transform: none; opacity: 1; }
.stt--inline .stt-panel { width: 100%; border: 1px solid var(--stt-border); border-radius: 18px; box-shadow: 0 10px 32px rgba(10,38,58,.10); }

.stt-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 22px 16px; }
.stt-eyebrow { display: block; margin-bottom: 3px; color: var(--stt-blue-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.stt-title { margin: 0; color: var(--stt-navy); font-size: 23px; line-height: 1.18; font-weight: 800; }
.stt-close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; margin: -4px -4px 0 0; padding: 0; border: 0; border-radius: 50%; background: var(--stt-soft); color: var(--stt-navy); cursor: pointer; }
.stt-close:hover { background: #e7f1f6; }
.stt-close:focus-visible, .stt-tab:focus-visible, .stt-primary-button:focus-visible, .stt-location-button:focus-visible, .stt-route-filter:focus-visible, .stt-secondary-link:focus-visible { outline: 3px solid rgba(0,141,204,.32); outline-offset: 2px; }

.stt-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 0 16px; border-bottom: 1px solid var(--stt-border); }
.stt-tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 8px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--stt-muted); cursor: pointer; font-weight: 700; }
.stt-tab[aria-selected="true"] { color: var(--stt-blue-dark); border-bottom-color: var(--stt-blue); }
.stt-tab__count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: #fbe9ea; color: var(--stt-alert); font-size: 11px; font-weight: 800; }
.stt-tab > span:not(.stt-tab__count) { white-space: nowrap; }

.stt-tabpanel { padding: 22px; }
.stt-tabpanel[hidden] { display: none !important; }
.stt-field-group + .stt-field-group { margin-top: 16px; }
.stt-field-label { display: block; margin-bottom: 7px; color: #405361; font-size: 14px; font-weight: 750; }
.stt-place-row { display: grid; grid-template-columns: minmax(0,1fr) 46px; gap: 8px; align-items: stretch; }
.stt-place-host { min-width: 0; }
.stt-place-host gmp-place-autocomplete {
    display: block;
    width: 100%;
    min-height: 48px;
    border: 1px solid #cfdce4;
    border-radius: 10px;
    background: #fff;
    color-scheme: light;
    box-shadow: 0 1px 2px rgba(10,38,58,.04);
}
.stt-place-host gmp-place-autocomplete:focus-within { border-color: var(--stt-blue); box-shadow: 0 0 0 3px rgba(0,141,204,.14); }
.stt-location-button { display: grid; place-items: center; width: 46px; min-height: 48px; padding: 0; border: 1px solid #cfdce4; border-radius: 10px; background: var(--stt-soft); color: var(--stt-blue-dark); cursor: pointer; }
.stt-location-button:hover { background: #e7f4fa; }
.stt-location-button.is-loading svg { animation: stt-spin .8s linear infinite; }
@keyframes stt-spin { to { transform: rotate(360deg); } }

.stt-form-message { margin: 12px 0 0; color: #a32d35; font-size: 13px; line-height: 1.4; }
.stt-form-message:empty { display: none; }
.stt-primary-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; margin-top: 18px; padding: 12px 18px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--stt-blue), #069edc); color: #fff; cursor: pointer; font-weight: 800; box-shadow: 0 7px 18px rgba(0,141,204,.20); }
.stt-primary-button:hover { background: linear-gradient(135deg, var(--stt-blue-dark), var(--stt-blue)); }
.stt-powered { margin: 10px 0 0; color: #7a8993; font-size: 11px; text-align: center; }

.stt-alerts-panel { padding-top: 18px; }
.stt-alerts-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.stt-alerts-heading > div { display: flex; flex-direction: column; gap: 2px; }
.stt-alerts-heading strong { color: var(--stt-navy); font-size: 15px; }
.stt-alerts-heading span { color: var(--stt-muted); font-size: 12px; }
.stt-route-filter { max-width: 155px; height: 38px; padding: 0 30px 0 11px; border: 1px solid var(--stt-border); border-radius: 8px; background: #fff; color: var(--stt-ink); font-size: 13px; }
.stt-notice { margin-bottom: 12px; padding: 10px 12px; border-radius: 8px; background: #fff6dc; color: #6c5615; font-size: 12px; line-height: 1.45; }
.stt-alert-list { display: grid; gap: 11px; max-height: 420px; overflow-y: auto; padding-right: 3px; }
.stt-alert-card { padding: 14px; border: 1px solid var(--stt-border); border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(10,38,58,.035); }
.stt-alert-card.is-active { border-left: 4px solid var(--stt-alert); padding-left: 11px; }
.stt-alert-card__topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.stt-route-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.stt-route-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border-radius: 999px; background: #e9f6fc; color: var(--stt-blue-dark); font-size: 11px; font-weight: 800; }
.stt-route-badge--system { background: #eef0f2; color: #566570; }
.stt-active-label { color: var(--stt-alert); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.stt-alert-card__title { margin: 9px 0 5px; color: var(--stt-navy); font-size: 15px; line-height: 1.3; font-weight: 800; }
.stt-alert-card__description { display: -webkit-box; margin: 0; overflow: hidden; color: #4c5d68; font-size: 13px; line-height: 1.48; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.stt-alert-card__meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 9px; color: #84919a; font-size: 10.5px; }
.stt-empty-state { display: grid; justify-items: center; gap: 5px; padding: 28px 16px; border-radius: 12px; background: var(--stt-soft); text-align: center; }
.stt-empty-state svg { width: 34px; height: 34px; color: #3b9e6a; }
.stt-empty-state strong { color: var(--stt-navy); }
.stt-empty-state span { color: var(--stt-muted); font-size: 13px; }
.stt-filter-empty { margin: 16px 0; color: var(--stt-muted); text-align: center; font-size: 13px; }
.stt-secondary-link { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--stt-border); color: var(--stt-blue-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.stt-secondary-link:hover { color: var(--stt-navy); text-decoration: none; }

@media (max-width: 600px) {
    .stt-launcher { left: max(14px, env(safe-area-inset-left)); right: auto; bottom: max(var(--stt-mobile-bottom), env(safe-area-inset-bottom)); min-height: 54px; }
    .stt--floating.stt-is-open .stt-launcher { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); }
    .stt-launcher__label { font-size: 14px; }
    .stt--floating .stt-panel {
        position: absolute;
        inset: auto 0 0 0;
        width: 100%;
        max-height: min(88dvh, 760px);
        border: 0;
        border-radius: 20px 20px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
        transform: translateY(28px);
    }
    .stt-header { padding: 18px 18px 13px; }
    .stt-title { font-size: 21px; }
    .stt-tabs { padding: 0 10px; }
    .stt-tab { min-height: 52px; gap: 6px; padding-inline: 4px; font-size: 13.5px; }
    .stt-tab svg { flex: 0 0 auto; width: 18px; height: 18px; }
    .stt-tab__count { flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 5px; }
    .stt-tabpanel { padding: 18px; }
    .stt-alerts-heading { align-items: flex-start; }
    .stt-route-filter { max-width: 135px; }
    .stt-alert-list { max-height: 46dvh; }
}

@media (max-width: 390px) {
    .stt-launcher__label { display: none; }
    .stt-launcher { width: 58px; height: 58px; padding: 0; justify-content: center; }
    .stt-launcher__badge { position: absolute; top: -4px; right: -3px; }
    .stt-alerts-heading { flex-direction: column; }
    .stt-route-filter { max-width: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .stt *, .stt *::before, .stt *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
