:root {
    --wtwp-navy: #122b4e;
    --wtwp-green: #00a856;
    --wtwp-green-dark: #177e45;
    --wtwp-blue-light: #a5d9ea;
    --wtwp-gold: #f6c65c;
    --wtwp-surface: #f3f8fb;
    --wtwp-border: #d7e5eb;
}

body.wtwp-app {
    background:
        linear-gradient(180deg, rgba(165, 217, 234, 0.28), rgba(243, 248, 251, 0) 260px),
        var(--wtwp-surface);
    color: var(--wtwp-navy);
}

.wtwp-header {
    background: var(--wtwp-navy);
    border-bottom: 4px solid var(--wtwp-green);
    box-shadow: 0 2px 10px rgba(18, 43, 78, 0.16);
}

.wtwp-brand {
    min-width: 0;
}

.wtwp-logo {
    width: 56px;
    height: 50px;
    object-fit: contain;
}

.wtwp-brand-title {
    color: #fff;
    font-weight: 800;
    line-height: 1.1;
}

.wtwp-brand-subtitle {
    color: var(--wtwp-blue-light);
    font-size: 0.85rem;
}

.wtwp-account {
    color: #fff;
    min-width: 0;
}

.wtwp-account-identity {
    min-width: 0;
    overflow-wrap: anywhere;
}

.wtwp-account-label {
    color: var(--wtwp-blue-light);
    font-size: 0.75rem;
}

.wtwp-account-name {
    color: #fff;
    font-weight: 700;
}

.wtwp-nav {
    gap: 0.5rem;
}

.wtwp-nav .nav-link {
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.5rem;
    padding: 0.55rem 0.85rem;
    font-weight: 700;
}

.wtwp-nav .nav-link:hover,
.wtwp-nav .nav-link:focus {
    color: #fff;
    border-color: var(--wtwp-blue-light);
    background: rgba(165, 217, 234, 0.14);
}

.wtwp-nav .nav-link.active {
    color: var(--wtwp-navy);
    background: var(--wtwp-gold);
    border-color: var(--wtwp-gold);
}

.card,
.list-group {
    border-color: var(--wtwp-border);
}

.card {
    box-shadow: 0 1px 2px rgba(18, 43, 78, 0.04);
}

.btn-primary,
.btn-danger {
    background-color: var(--wtwp-green-dark);
    border-color: var(--wtwp-green-dark);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-danger:hover,
.btn-danger:focus {
    background-color: var(--wtwp-green);
    border-color: var(--wtwp-green);
}

.btn-outline-dark {
    color: var(--wtwp-navy);
    border-color: var(--wtwp-navy);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background-color: var(--wtwp-navy);
    border-color: var(--wtwp-navy);
}

.table thead th {
    color: var(--wtwp-navy);
    background: rgba(165, 217, 234, 0.25);
}

.alert-info {
    color: var(--wtwp-navy);
    background-color: rgba(165, 217, 234, 0.42);
    border-color: var(--wtwp-blue-light);
}

.alert-warning {
    color: var(--wtwp-navy);
    background-color: rgba(246, 198, 92, 0.32);
    border-color: var(--wtwp-gold);
}

@media (max-width: 767.98px) {
    .wtwp-logo {
        width: 48px;
        height: 44px;
    }

    .wtwp-nav {
        width: 100%;
    }

    .wtwp-nav .nav-item {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .wtwp-nav .nav-link {
        text-align: center;
        width: 100%;
    }
}

.wtwp-app-shortcut {
    color: var(--wtwp-navy);
    border-radius: 0.75rem;
}

.wtwp-app-shortcut-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.6rem;
    background: var(--wtwp-navy);
    color: #fff;
    font-weight: 800;
}

.wtwp-app-shortcut:hover,
.wtwp-app-shortcut:focus-visible {
    color: var(--wtwp-navy);
    border-color: var(--wtwp-green-dark);
    background: #f5fcf8;
}

.wtwp-app-shortcut:focus-visible {
    outline: 3px solid var(--wtwp-green-dark);
    outline-offset: 3px;
}

.wtwp-social-bar {
    background: var(--wtwp-navy);
    border-top: 8px solid var(--wtwp-blue-light);
}

.wtwp-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    border-radius: 4px;
}

.wtwp-social-link:hover {
    color: var(--wtwp-blue-light);
    background: rgba(255, 255, 255, 0.08);
}

.wtwp-social-link:focus-visible {
    color: #fff;
    outline: 2px solid var(--wtwp-gold);
    outline-offset: -3px;
}

@media print {
    .wtwp-social-bar { display: none; }
}

body.wtwp-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wtwp-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

@media print {
    .wtwp-footer { display: none; }
}

.wtwp-weather-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.6rem; }
.wtwp-weather-day { padding: 1rem 0.4rem; text-align: center; background: var(--wtwp-surface); border: 1px solid var(--wtwp-border); border-radius: 0.6rem; }
.wtwp-weather-description { min-height: 2.8rem; margin-bottom: 0.5rem; }
.wtwp-weather-attribution { color: #5e5e5e; font: normal 400 14px sans-serif; white-space: nowrap; }
@media (max-width: 767.98px) {
    .wtwp-weather-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.wtwp-weather-icon {
    display: block;
    margin: 0.5rem auto;
    filter: drop-shadow(0 3px 3px rgba(18, 43, 78, 0.08));
}

.wtwp-weather-grid { align-items: start; }
.wtwp-weather-expandable > summary { cursor: pointer; list-style: none; border-radius: 0.35rem; }
.wtwp-weather-expandable > summary::-webkit-details-marker { display: none; }
.wtwp-weather-expandable > summary:focus-visible { outline: 3px solid var(--wtwp-green-dark); outline-offset: 4px; }
.wtwp-weather-expandable:hover, .wtwp-weather-expandable[open] { border-color: var(--wtwp-green-dark); }
.wtwp-weather-detail-hint { color: var(--wtwp-green-dark); font-weight: 600; }
.wtwp-weather-detail-hint::after { content: ' +'; }
.wtwp-weather-expandable[open] .wtwp-weather-detail-hint::after { content: ' −'; }
.wtwp-weather-details { text-align: left; border-top: 1px solid var(--wtwp-border); margin-top: 0.75rem; padding-top: 0.75rem; overflow-wrap: anywhere; }

