.transport-pass {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 310px !important;
    height: 410px !important;
    min-height: 410px !important;
    margin: 0 auto !important;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--transport-fg) 18%, transparent);
    border-radius: 17px !important;
    background: var(--transport-bg) !important;
    color: var(--transport-fg) !important;
    box-shadow: 0 8px 24px rgba(12, 30, 54, .22) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.transport-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px 14px;
}
.transport-brand { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 17px; }
.transport-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transport-logo, .transport-logo-placeholder {
    display: block;
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px;
    object-fit: contain;
    border-radius: 0 !important;
    background: transparent;
}
.transport-top-fields { display: grid; grid-template-columns: repeat(2, auto); gap: 10px; text-align: right; }
.transport-data span {
    display: block;
    overflow: hidden;
    color: var(--transport-label) !important;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .055em;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.transport-data { min-width: 0; }
.transport-data b {
    display: block;
    overflow: hidden;
    color: var(--transport-fg) !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.transport-top-fields .transport-data b { font-size: 14px; }
.transport-route {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 94px;
    padding: 13px 14px 16px;
    background: color-mix(in srgb, var(--transport-fg) 5%, transparent);
}
.transport-apple .transport-route::before,
.transport-apple .transport-route::after {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #121212;
    content: '';
    transform: translateY(-50%);
}
.transport-apple .transport-route::before { left: -7px; }
.transport-apple .transport-route::after { right: -7px; }
.transport-route small {
    display: block;
    overflow: hidden;
    color: var(--transport-label) !important;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .04em;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.transport-route strong { display: block; font-size: 38px; font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.transport-destination { text-align: right; }
.transport-mode { display: grid; place-items: center; color: var(--transport-fg); }
.transport-mode svg { display: block; width: 38px; height: 38px; fill: currentColor; }
.transport-trip-grid {
    display: grid;
    grid-template-columns: 1.45fr 1.25fr .75fr .8fr 1fr;
    gap: 7px;
    padding: 12px 14px 8px;
}
.transport-passenger-grid {
    display: grid;
    grid-template-columns: 1.45fr 1.25fr 1fr;
    gap: 9px;
    padding: 9px 14px 6px;
}
.transport-passenger-grid .transport-data b { font-size: 13px; }
.transport-barcode {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin: auto auto 12px;
    color: #111;
    text-align: center;
}
.transport-pass .transport-barcode .powered-by {
    display: block;
    color: #6b7280 !important;
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}
.transport-pass .transport-barcode .barcode-container {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 4px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    gap: 8px;
}
.transport-barcode-wide { width: calc(100% - 92px); max-width: 190px; }
.transport-barcode-wide .barcode-container { width: 100% !important; }
.transport-barcode-wide .barcode-container img,
.transport-barcode-wide > img { width: 100% !important; max-width: 100% !important; height: 42px !important; object-fit: contain; }
.transport-barcode-square { width: 92px; }
.transport-barcode-square .barcode-container { width: auto !important; }
.transport-barcode-square .barcode-container img,
.transport-barcode-square > img { width: 76px !important; max-width: 76px !important; height: 76px !important; object-fit: contain; }
.transport-google { border-radius: 13px !important; }
.transport-google .transport-route { background: color-mix(in srgb, var(--transport-fg) 7%, transparent); }

@media (max-width: 420px) {
    .transport-pass { height: 390px !important; min-height: 390px !important; }
    .transport-route { min-height: 86px; }
    .transport-route strong { font-size: 34px; }
    .transport-trip-grid, .transport-passenger-grid { gap: 5px; padding-left: 11px; padding-right: 11px; }
}
