                body {
                    font-family: 'Courier New', monospace;
                    background: #000;
                    color: #ff9729;
                    margin: 0;
                    font-size: 1.2em;
                }

                .hidden {
                    display: none;
                }

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

                #app-url {
                    position: fixed;
                    top: 5px;
                    left: 45%;
                    color: rgb(21, 255, 0);
                    font-weight: bold;
                    cursor: pointer;
                }

                #clock {
                    position: fixed;
                    top: 5px;
                    right: 10px;
                    color: red;
                    font-weight: bold;
                }

                .station-block {
                    border-bottom: 2px solid #222;
                    padding: 15px;
                }

                .station-name {
                    font-weight: bold;
                    font-size: 1.3em;
                    color: #fff;
                    margin-bottom: 10px;
                }

                .platforms {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
                    gap: 10px;
                }

                .platform-section {
                    background: #111;
                    padding: 10px;
                    border-radius: 8px;
                }

                h3 {
                    margin: 0;
                    color: #fff;
                }

                .arrival-time {
                    border-bottom: 1px solid #444;
                    margin: 5px 0;
                    font-size: 0.9em;
                }

                .departure {
                    display: flex;
                    justify-content: space-between;
                }

                .time-left {
                    color: red;
                }

                .live-location {
                    color: #0f0;
                    font-size: 0.85em;
                }

                #status {
                    margin: 10px;
                    font-size: 0.9em;
                }

                .status-card {
                    background: #080808;
                    border: 1px solid #333;
                    border-radius: 12px;
                    padding: 20px;
                    margin: 15px 0;
                    text-align: center;
                    animation: fadeIn 0.5s ease-out;
                }

                .status-card.error {
                    border-color: #ff4444;
                    background: rgba(255, 68, 68, 0.05);
                }

                .status-card.warning {
                    border-color: #ff9729;
                    background: rgba(255, 151, 41, 0.05);
                }

                .status-card.warning h2 {
                    color: #ff9729;
                }

                .status-card.warning .status-icon {
                    filter: grayscale(0);
                }

                .status-card h2 {
                    margin: 0 0 10px 0;
                    color: #ff9729;
                    font-size: 1.2em;
                }

                .status-card p {
                    margin: 5px 0;
                    color: #ccc;
                    line-height: 1.5;
                }

                .status-icon {
                    font-size: 2.5em;
                    margin-bottom: 15px;
                    display: block;
                }

                .status-tip {
                    margin-top: 15px;
                    padding-top: 15px;
                    border-top: 1px solid #222;
                    font-size: 0.9em;
                    color: #ff9729 !important;
                }

                @keyframes fadeIn {
                    from {
                        opacity: 0;
                        transform: translateY(10px);
                    }

                    to {
                        opacity: 1;
                        transform: translateY(0);
                    }
                }

                .status-actions {
                    display: flex;
                    gap: 10px;
                    justify-content: center;
                    flex-wrap: wrap;
                    margin-top: 15px;
                }

                .status-btn {
                    background: #ff9729;
                    color: #000;
                    border: none;
                    padding: 10px 18px;
                    border-radius: 8px;
                    font-family: inherit;
                    font-weight: bold;
                    font-size: 0.9em;
                    cursor: pointer;
                    transition: all 0.2s;
                    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
                }

                .status-btn:hover {
                    background: #fff;
                    transform: translateY(-2px);
                }

                .status-btn.secondary {
                    background: #222;
                    color: #ff9729;
                    border: 1px solid #ff9729;
                }

                #fontControls {
                    position: fixed;
                    bottom: 20px;
                    right: 20px;
                    z-index: 9999;
                }

                #cogBtn {
                    background: rgba(20, 20, 20, 0.8);
                    border: 2px solid #ff9729;
                    border-radius: 50%;
                    width: 56px;
                    height: 56px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    color: white;
                    font-size: 1.8em;
                    cursor: pointer;
                    backdrop-filter: blur(5px);
                    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 151, 41, 0.2);
                    padding: 0;
                }

                #cogBtn:hover {
                    background: #ff9729;
                    color: #000;
                    transform: rotate(90deg) scale(1.1);
                    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 151, 41, 0.5);
                }

                #sliderContainer {
                    display: none;
                    background: rgba(15, 15, 15, 0.95);
                    backdrop-filter: blur(12px);
                    padding: 12px 14px;
                    border-radius: 16px;
                    position: absolute;
                    bottom: 66px;
                    right: 0px;
                    color: white;
                    font-size: 0.9em;
                    width: calc(100vw - 40px);
                    max-width: 450px;
                    box-sizing: border-box;
                    border: 1px solid rgba(255, 151, 41, 0.15);
                    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 151, 41, 0.05);
                    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                    max-height: calc(100vh - 80px);
                    overflow-y: auto;
                }

                @keyframes slideUp {
                    from {
                        opacity: 0;
                        transform: translateY(20px) scale(0.95);
                    }

                    to {
                        opacity: 1;
                        transform: translateY(0) scale(1);
                    }
                }

                .settings-group {
                    background: rgba(255, 255, 255, 0.03);
                    border-radius: 10px;
                    padding: 10px 14px;
                    margin-bottom: 8px;
                    border: 1px solid rgba(255, 255, 255, 0.05);
                }

                details.settings-group {
                    cursor: pointer;
                }

                details.settings-group[open] {
                    cursor: default;
                }

                .settings-group-title {
                    color: #ff9729;
                    font-size: 0.95em;
                    text-transform: uppercase;
                    letter-spacing: 1.2px;
                    margin-bottom: 6px;
                    font-weight: bold;
                    border-bottom: 1px solid rgba(255, 151, 41, 0.2);
                    padding-bottom: 6px;
                    display: flex;
                    align-items: center;
                    cursor: pointer;
                }

                details>summary {
                    outline: none;
                    list-style: none;
                }

                details>summary::-webkit-details-marker {
                    display: none;
                }

                details>summary::before {
                    content: '▶';
                    font-size: 0.8em;
                    margin-right: 8px;
                    color: #ff9729;
                    transition: transform 0.2s;
                    display: inline-block;
                }

                details[open]>summary::before {
                    transform: rotate(90deg);
                }

                #sliderContainer label {
                    display: block;
                    margin-bottom: 4px;
                    color: #bbb;
                    font-weight: 500;
                    font-size: 1em;
                }

                #sliderContainer input[type="range"] {
                    -webkit-appearance: none;
                    width: 100%;
                    margin-bottom: 10px;
                    background: transparent;
                }

                #sliderContainer input[type="range"]::-webkit-slider-thumb {
                    -webkit-appearance: none;
                    height: 14px;
                    width: 14px;
                    border-radius: 50%;
                    background: #ff9729;
                    cursor: pointer;
                    margin-top: -4px;
                    box-shadow: 0 0 10px rgba(255, 151, 41, 0.5);
                }

                #sliderContainer input[type="range"]::-webkit-slider-runnable-track {
                    width: 100%;
                    height: 6px;
                    cursor: pointer;
                    background: rgba(255, 255, 255, 0.1);
                    border-radius: 3px;
                    border: 1px solid rgba(0, 0, 0, 0.3);
                }

                #sliderContainer input[type="range"]:focus {
                    outline: none;
                }

                #sliderContainer input[type="number"] {
                    width: 100%;
                    margin-bottom: 8px;
                    background: rgba(0, 0, 0, 0.3);
                    border: 1px solid rgba(255, 255, 255, 0.1);
                    color: #fff;
                    padding: 8px 10px;
                    border-radius: 6px;
                    font-family: inherit;
                    font-size: 0.95em;
                    box-sizing: border-box;
                    transition: all 0.2s;
                }

                #sliderContainer input[type="number"]:focus {
                    outline: none;
                    border-color: #ff9729;
                    background: rgba(0, 0, 0, 0.5);
                    box-shadow: 0 0 0 2px rgba(255, 151, 41, 0.2);
                }

                .cache-btn {
                    background: rgba(255, 255, 255, 0.05);
                    color: #fff;
                    border: 1px solid rgba(255, 255, 255, 0.1);
                    padding: 10px 12px;
                    border-radius: 6px;
                    cursor: pointer;
                    width: 100%;
                    margin: 4px 0;
                    font-family: inherit;
                    font-size: 0.9em;
                    font-weight: 600;
                    transition: all 0.2s ease;
                    text-align: center;
                    position: relative;
                    overflow: hidden;
                }

                .cache-btn:hover {
                    background: rgba(255, 151, 41, 0.1);
                    border-color: #ff9729;
                    transform: translateY(-1px);
                }

                .cache-btn:active {
                    transform: translateY(1px);
                }

                .cache-btn.active {
                    background: rgba(255, 151, 41, 0.15);
                    border-color: #ff9729;
                    color: #ff9729;
                    box-shadow: inset 0 0 20px rgba(255, 151, 41, 0.1);
                }

                .row-buttons {
                    display: flex;
                    gap: 8px;
                    margin-bottom: 6px;
                }

                .row-buttons .cache-btn {
                    margin: 0;
                    flex: 1;
                }

                .inline-input {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    margin-bottom: 8px;
                }

                .inline-input label {
                    margin-bottom: 0 !important;
                }

                .inline-input input[type="number"] {
                    margin-bottom: 0 !important;
                    width: 100px !important;
                }

                .advanced-grid {
                    display: grid;
                    grid-template-columns: 1fr 1fr;
                    gap: 8px;
                }

                .inline-input-col input[type="number"] {
                    margin-bottom: 0 !important;
                }

                .no-border {
                    border: none !important;
                    background: transparent !important;
                    padding: 0 !important;
                    margin-top: 10px;
                }

                .cache-btn.primary-btn {
                    background: rgba(40, 167, 69, 0.1);
                    border-color: rgba(40, 167, 69, 0.4);
                    color: #4ade80;
                }

                .cache-btn.primary-btn:hover {
                    background: rgba(40, 167, 69, 0.2);
                    border-color: #4ade80;
                }

                .cache-btn.danger-btn {
                    background: rgba(220, 53, 69, 0.1);
                    border-color: rgba(220, 53, 69, 0.4);
                    color: #ef4444;
                }

                .cache-btn.danger-btn:hover {
                    background: rgba(220, 53, 69, 0.2);
                    border-color: #ef4444;
                }

                #sliderContainer::-webkit-scrollbar {
                    width: 6px;
                }

                #sliderContainer::-webkit-scrollbar-track {
                    background: transparent;
                }

                #sliderContainer::-webkit-scrollbar-thumb {
                    background: rgba(255, 151, 41, 0.3);
                    border-radius: 3px;
                }

                #sliderContainer::-webkit-scrollbar-thumb:hover {
                    background: rgba(255, 151, 41, 0.6);
                }

                .remove-pill {
                    color: red;
                    font-weight: bold;
                    font-size: 1.2em;
                }

                #privacy-info {
                    margin-top: 10px;
                    line-height: 1.4 !important;
                    font-size: 0.8em !important;
                    color: #888;
                }

                #privacy-info strong {
                    color: #ff9729;
                }

                .android-warning strong {
                    color: #ff9729;
                }

                /* Multi-Station Styles */
                .grid-layout {
                    display: grid;
                    grid-template-columns: 100px 1fr;
                    gap: 10px;
                    align-items: center;
                    margin: 10px 0;
                }

                .settings-input {
                    background: #222;
                    border: 1px solid #444;
                    color: #fff;
                    padding: 8px;
                    border-radius: 4px;
                    font-family: inherit;
                }

                .summary-stations-wrapper {
                    position: relative;
                }

                #summaryStationsBtn {
                    width: 100%;
                    padding: 8px;
                    background: #222;
                    border: 1px solid #444;
                    color: #fff;
                    border-radius: 4px;
                    cursor: pointer;
                    text-align: left;
                }

                #summaryStationsMenu {
                    position: absolute;
                    bottom: 100%;
                    left: 0;
                    right: 0;
                    background: #1a1a1a;
                    border: 1px solid #444;
                    max-height: 300px;
                    min-width: 100%;
                    overflow-y: auto;
                    z-index: 10001;
                    padding: 10px;
                    border-radius: 8px;
                    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
                }

                .menu-header {
                    padding: 8px 5px 4px 5px;
                    font-weight: bold;
                    color: #ff9729;
                    border-bottom: 1px solid #333;
                    margin-bottom: 5px;
                    text-transform: uppercase;
                    font-size: 0.8em;
                }

                .station-option {
                    display: flex;
                    align-items: center;
                    padding: 5px 0;
                    gap: 10px;
                    cursor: pointer;
                }

                .station-option:hover {
                    background: #222;
                }

                .station-option input {
                    width: 18px;
                    height: 18px;
                }

                #summary-arrivals .station-block {
                    border-left: 4px solid #ff9729;
                    background: rgba(255, 151, 41, 0.05);
                    margin-bottom: 5px;
                }

                #summary-arrivals .station-name {
                    color: #ff9729;
                }

                .selected-stations-display {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 8px;
                    margin-top: 10px;
                    padding: 0 5px;
                }


                .station-pill {
                    background: #222;
                    color: #fff;
                    border: 1px solid #444;
                    padding: 4px 10px;
                    border-radius: 20px;
                    font-size: 0.9em;
                    display: flex;
                    align-items: center;
                    gap: 6px;
                }

                .station-pill .remove-icon {
                    color: #ff4444;
                    cursor: pointer;
                    font-weight: bold;
                    font-size: 1.2em;
                    line-height: 1;
                }

                .install-btn {
                    background: #ff9729;
                    color: #000;
                    border: none;
                    padding: 8px 12px;
                    border-radius: 4px;
                    font-family: inherit;
                    font-weight: bold;
                    cursor: pointer;
                    width: 100%;
                    margin: 5px 0;
                }

                .ios-guide {
                    background: #222;
                    padding: 8px;
                    border-radius: 4px;
                    font-size: 1em !important;
                    color: #ccc;
                    line-height: 1.4 !important;
                }

                .share-icon {
                    display: inline-block;
                    border: 1px solid #ccc;
                    border-radius: 4px;
                    padding: 2px 5px;
                    margin: 0 2px;
                    font-size: 0.9em;
                }

                /* Welcome Screen Styles */
                #welcome-screen {
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background: radial-gradient(circle at center, #111 0%, #000 100%);
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    z-index: 10000;
                    padding: 20px;
                    box-sizing: border-box;
                    text-align: center;
                    overflow: scroll;
                }

                #welcome-screen.hidden {
                    display: none;
                }

                .welcome-content {
                    max-width: 450px;
                    animation: fadeIn 0.8s ease-out;
                }

                .welcome-icon {
                    font-size: 5em;
                    margin-bottom: 10px;
                    filter: drop-shadow(0 0 10px rgba(255, 151, 41, 0.3));
                }

                #welcome-screen h2 {
                    color: #fff;
                    margin-bottom: 15px;
                    font-size: 1.6rem;
                    font-family: inherit;
                }

                #welcome-screen p {
                    color: #ccc;
                    margin-bottom: 25px;
                }

                .guidance {
                    background: #080808;
                    padding: 20px;
                    border-radius: 12px;
                    margin-bottom: 30px;
                    text-align: left;
                    border: 1px solid #222;
                    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
                }

                .guidance p {
                    margin: 12px 0;
                    font-size: 1em;
                    line-height: 1.6;
                    color: #aaa !important;
                }

                .guidance strong {
                    color: #ff9729;
                }

                #startBtn {
                    background: #ff9729;
                    color: #000;
                    border: none;
                    padding: 16px 32px;
                    font-size: 1.1em;
                    font-weight: bold;
                    border-radius: 50px;
                    cursor: pointer;
                    font-family: inherit;
                    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                    box-shadow: 0 4px 15px rgba(255, 151, 41, 0.2);
                }

                #startBtn:hover {
                    background: #ffa749;
                    transform: translateY(-2px);
                    box-shadow: 0 6px 20px rgba(255, 151, 41, 0.3);
                }

                #startBtn:active {
                    transform: translateY(0);
                }

                @keyframes fadeIn {
                    from {
                        opacity: 0;
                        transform: translateY(20px);
                    }

                    to {
                        opacity: 1;
                        transform: translateY(0);
                    }
                }

                /* Guidance UI */
                .platform-guidance {
                    background: #1a1a1a;
                    padding: 15px;
                    border-radius: 8px;
                    margin-top: 15px;
                    border: 1px solid #333;
                }

                .platform-guidance h3 {
                    font-size: 1.1em;
                    margin-bottom: 10px;
                    color: #ff9729;
                }

                .platform-guidance ul {
                    text-align: left;
                    margin: 0;
                    padding-left: 20px;
                }

                .platform-guidance li {
                    font-size: 0.85em;
                    margin-bottom: 8px;
                    color: #ccc;
                    line-height: 1.4;
                }

                .error-msg {
                    color: #ff4444;
                    font-weight: bold;
                    margin-bottom: 15px;
                    font-size: 1.1em;
                }

                .accuracy-note {
                    font-size: 0.8em !important;
                    color: #888 !important;
                    margin-top: 15px !important;
                }

                #startBtn.loading {
                    opacity: 0.7;
                    cursor: wait;
                    pointer-events: none;
                }

                .android-warning {
                    background: #000;
                    color: white;
                    padding: 10px;
                    border: 1px dashed #444;
                    border-radius: 8px;
                    margin-top: 10px;
                    font-size: 1em;
                    line-height: 1.4;
                    text-align: left;
                }

                .android-warning strong {
                    color: #ff9729;
                }

                button.danger {
                    background: transparent;
                    color: red;
                    border: 2px solid red;
                    padding: 14px 28px;
                    font-size: 1em;
                    font-weight: bold;
                    border-radius: 50px;
                    cursor: pointer;
                    font-family: inherit;
                    transition: all 0.3s;
                    margin-top: 10px;
                    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
                }

                button.secondary:hover {
                    background: rgba(255, 151, 41, 0.1);
                    border-color: #fff;
                    color: #fff;
                    transform: translateY(-2px);
                }

                button.secondary:active {
                    transform: translateY(0);
                }

                /* Line Status Styling */
                .line-status {
                    font-size: 0.75em;
                    padding: 3px 8px;
                    border-radius: 6px;
                    background: #333;
                    color: #fff;
                    cursor: pointer;
                    display: inline-block;
                    margin-left: 10px;
                    font-weight: bold;
                    white-space: nowrap;
                }

                .line-status.badge-10 {
                    background: #1B8F3B;
                }

                /* Good Service */
                .line-status.badge-9 {
                    background: #ff9729;
                    color: #000;
                }

                /* Minor Delays */
                .line-status.badge-6 {
                    background: #DD2222;
                }

                /* Severe Delays */
                .line-status.badge-5 {
                    background: #DD2222;
                }

                /* Part Closure */
                .line-status.badge-4 {
                    background: #DD2222;
                }

                /* Planned Closure */
                .line-status.badge-3 {
                    background: #DD2222;
                }

                /* Part Suspended */
                .line-status.badge-2 {
                    background: #AA1111;
                }

                /* Suspended */
                .line-status.badge-1 {
                    background: #AA1111;
                }

                /* Closed */

                .status-tooltip {
                    font-size: 0.85em;
                    color: #ddd;
                    background: #111;
                    padding: 8px 12px;
                    margin-top: 8px;
                    border-radius: 6px;
                    font-weight: normal;
                    border-left: 3px solid #ff9729;
                    line-height: 1.4;
                    width: 100%;
                    box-sizing: border-box;
                    animation: fadeIn 0.3s ease-out;
                }

                .zone-badge {
                    display: inline-block;
                    width: 25px;
                    height: 25px;
                    border-radius: 50%;
                    border: 1px solid #ff9729;
                    background-color: #ff9729;
                    color: white;
                    text-align: center;
                    margin-right: 5px;
                }