html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #050505 !important;
}

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

.fortec-dashboard {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 14px;
    background: #050505;
    color: #ffffff;
}

.fortec-dashboard * {
    box-sizing: border-box;
}

.fortec-header {
    display: grid;
    grid-template-columns: 1.25fr 1.25fr 1fr 1.25fr;
    align-items: center;
    gap: 22px;
    background: #090909;
    border: 1px solid #222;
    border-radius: 14px;
    padding: 15px 25px;
    margin-bottom: 14px;
}

.fortec-brand img {
    width: 245px;
    max-width: 100%;
    height: auto;
    display: block;
}

.fortec-label,
.card-title {
    color: #999;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.fortec-circuit-name {
    font-size: clamp(30px, 3vw, 54px);
    line-height: 1;
    font-weight: 900;
    margin-top: 5px;
}

.fortec-country {
    color: #888;
    font-size: 14px;
    margin-top: 6px;
}

.fortec-clock {
    border-left: 1px solid #282828;
    padding-left: 25px;
}

#fortec-time {
    font-size: clamp(36px, 4vw, 60px);
    line-height: 1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    margin-top: 5px;
}

#fortec-date {
    color: #999;
    margin-top: 6px;
    font-size: 14px;
}

.fortec-next-header {
    border-left: 1px solid #282828;
    padding-left: 25px;
}

#fortec-header-session {
    font-size: clamp(21px, 2vw, 32px);
    font-weight: 800;
    margin-top: 5px;
}

#fortec-header-countdown {
    color: #ff2027;
    font-size: clamp(28px, 3vw, 48px);
    line-height: 1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    margin-top: 6px;
}

.fortec-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.75fr;
    gap: 14px;
}

.fortec-middle-column {
    display: grid;
    grid-template-rows: minmax(0, 2fr) minmax(0, 1fr);
    gap: 14px;
}

.fortec-card {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 14px;
    padding: 20px;
    min-height: 0;
    overflow: hidden;
}

.card-title {
    padding-bottom: 9px;
    border-bottom: 1px solid #292929;
    position: relative;
}

.card-title::after {
    content: "";
    display: block;
    width: 45px;
    height: 2px;
    background: #ff2027;
    position: absolute;
    bottom: -1px;
    left: 0;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
}

.weather-icon {
    font-size: 68px;
    width: 75px;
    text-align: center;
}

.temperature {
    font-size: clamp(48px, 5vw, 76px);
    font-weight: 900;
    line-height: .95;
}

.weather-description {
    font-size: 17px;
    margin-top: 8px;
}

.feels-like {
    color: #999;
    margin-top: 4px;
    font-size: 14px;
}

.weather-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #2b2b2b;
    margin-top: 22px;
}

.weather-stats div {
    padding: 11px 13px;
    border-right: 1px solid #2b2b2b;
    border-bottom: 1px solid #2b2b2b;
}

.weather-stats div:nth-child(2n) {
    border-right: 0;
}

.weather-stats span {
    display: block;
    color: #777;
    font-size: 10px;
    letter-spacing: 1px;
}

.weather-stats strong {
    display: block;
    font-size: 17px;
    margin-top: 4px;
}

.hourly-title {
    margin-top: 18px;
    color: #aaa;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hourly-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: 1px solid #2b2b2b;
    margin-top: 7px;
}

.hour-cell {
    text-align: center;
    padding: 8px 3px;
    border-right: 1px solid #2b2b2b;
}

.hour-cell:last-child {
    border-right: 0;
}

.hour-time {
    font-size: 11px;
    color: #aaa;
}

.hour-icon {
    font-size: 23px;
    margin: 5px 0;
}

.hour-temp {
    font-size: 14px;
    font-weight: 800;
}

.hour-rain {
    font-size: 10px;
    color: #55b9ff;
    margin-top: 3px;
}

.weather-attribution {
    color: #666;
    font-size: 9px;
    margin-top: 9px;
}

.session-name {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 900;
    margin-top: 30px;
}

.session-category {
    color: #999;
    font-size: 16px;
    margin-top: 5px;
}

.countdown-label {
    color: #aaa;
    font-size: 12px;
    letter-spacing: 2px;
    margin-top: 28px;
}

.countdown {
    color: #ff2027;
    font-size: clamp(48px, 5vw, 78px);
    line-height: 1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    margin-top: 5px;
}

.session-times {
    color: #aaa;
    font-size: 15px;
    margin-top: 12px;
}

.session-status {
    display: inline-block;
    background: #ff2027;
    color: #fff;
    padding: 7px 13px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-top: 14px;
}

.status-large {
    font-size: 32px;
    font-weight: 900;
    color: #ff2027;
    margin: 24px 0;
}

.status-line {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-top: 1px solid #242424;
    color: #888;
    font-size: 13px;
}

.status-line strong {
    color: #63dc71;
}

.timetable-day {
    color: #999;
    font-size: 13px;
    margin: 13px 0 5px;
}

.timetable-scroll {
    height: calc(100vh - 190px);
    min-height: 360px;
    overflow: auto;
}

.timetable-card table {
    width: 100%;
    border-collapse: collapse;
}

.timetable-card th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #0a0a0a;
    text-align: left;
    color: #666;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 10px 9px;
    border-bottom: 1px solid #333;
}

.timetable-card td {
    padding: 11px 9px;
    border-bottom: 1px solid #242424;
    font-size: 13px;
}

.session-column {
    font-weight: 800;
}

.timetable-card tr.session-current {
    background: rgba(255, 32, 39, .18);
    box-shadow: inset 3px 0 #ff2027;
}

.timetable-card tr.session-next {
    background: rgba(255, 32, 39, .07);
}

.timetable-card tr.session-complete {
    opacity: .34;
}

.session-current .status-column {
    color: #ff2027;
    font-weight: 900;
}

.session-next .status-column {
    color: #ff2027;
    font-weight: 800;
}

.fortec-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #777;
    font-size: 11px;
    padding: 9px 5px 0;
}

.footer-dot {
    color: #ff2027;
}

.footer-refresh {
    margin-left: auto;
}

.loading, .weather-error {
    color: #999;
    padding: 25px 0;
}

.weather-error {
    color: #ff7075;
}

@media (min-width: 1800px) {
    .fortec-dashboard { padding: 20px; }
    .fortec-card { padding: 24px; }
    .timetable-card td { font-size: 15px; padding: 14px 10px; }
}

@media (max-width: 1100px) {
    .fortec-header {
        grid-template-columns: 1fr 1fr;
    }

    .fortec-clock,
    .fortec-next-header {
        border-left: 0;
        padding-left: 0;
    }

    .fortec-grid {
        grid-template-columns: 1fr;
    }

    .fortec-middle-column {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .timetable-scroll {
        height: auto;
        max-height: 500px;
    }
}
