.rnv-band {
    --rnv-bg: #102a2a;
    --rnv-deep: #0b2023;
    --rnv-ink: #f5f6f0;
    --rnv-muted: #b9cfca;
    --rnv-gold: #f3d28f;
    --rnv-border: #34514f;
    --rnv-paper: #f9faf5;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    color: var(--rnv-ink);
    background: linear-gradient(111deg, #113332 0%, var(--rnv-bg) 46%, var(--rnv-deep) 100%);
    border-block: 1px solid #3a5650;
    box-shadow: inset 0 2px 0 rgb(243 210 143 / 9%);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.35;
    text-align: start;
}

.rnv-band *, .rnv-band *::before, .rnv-band *::after { box-sizing: border-box; }
.rnv-band [hidden], .rnv-band[hidden] { display: none !important; }
.rnv-band.rnv-panel-open { z-index: 10; }

.rnv-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 22px);
    max-width: 1360px;
    min-height: 57px;
    margin-inline: auto;
    padding: 6px clamp(12px, 2.7vw, 36px);
}
.rnv-inner::before {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -1;
    width: min(36vw, 430px);
    background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgb(192 222 208 / 9%) 10px 11px, transparent 11px 22px),
        repeating-linear-gradient(-45deg, transparent 0 10px, rgb(192 222 208 / 9%) 10px 11px, transparent 11px 22px);
    mask-image: linear-gradient(90deg, transparent, #000);
    content: "";
    pointer-events: none;
}

.rnv-identity {
    flex: 0 0 158px;
    min-width: 0;
}
.rnv-band .rnv-identity h2 {
    margin: 0;
    color: var(--rnv-ink);
    font: 600 clamp(16px, 1.4vw, 19px)/1.12 Georgia, serif;
    letter-spacing: -.025em;
    white-space: nowrap;
}

.rnv-band button {
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}
.rnv-band button:disabled { cursor: default; opacity: .62; }
.rnv-band :is(button, select, input):focus-visible {
    outline: 2px solid #d98c3e;
    outline-offset: 3px;
}
.rnv-band .rnv-location-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    min-height: 24px;
    padding: 0 1px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--rnv-muted);
    font: 500 11px/1.15 system-ui, sans-serif;
    text-align: start;
}
.rnv-band .rnv-location-toggle:hover { color: var(--rnv-gold); }
.rnv-location-toggle [data-rnv-location-name] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rnv-pin {
    position: relative;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-block-start: -3px;
    border: 1px solid currentColor;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}
.rnv-pin::before {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}
.rnv-chevron {
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin: -3px 3px 0 1px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}
.rnv-location-toggle[aria-expanded="true"] .rnv-chevron { transform: translateY(2px) rotate(225deg); }

.rnv-band .rnv-times {
    display: grid;
    flex: 1 1 470px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    min-width: 0;
    margin: 0;
    padding: 1px;
    border: 1px solid var(--rnv-border);
    border-radius: 9px;
    background: rgb(11 32 35 / 75%);
}
.rnv-time {
    position: relative;
    display: grid;
    min-height: 38px;
    padding: 4px 3px;
    align-content: center;
    justify-items: center;
    gap: 2px;
    border-radius: 7px;
    color: var(--rnv-muted);
}
.rnv-time + .rnv-time::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: -1px;
    border-inline-start: 1px solid var(--rnv-border);
    content: "";
}
.rnv-time.rnv-next, .rnv-time.rnv-next + .rnv-time::before { border-color: transparent; }
.rnv-time.rnv-next {
    z-index: 1;
    background: #efd29a;
    color: #20332b;
}
.rnv-time.rnv-next::before { display: none; }
.rnv-band .rnv-time dt {
    margin: 0;
    color: inherit;
    font: 550 11px/1.15 system-ui, sans-serif;
}
.rnv-band .rnv-time dd {
    margin: 0;
    color: var(--rnv-ink);
    font: 650 clamp(15px, 1.35vw, 19px)/1.05 system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.045em;
    white-space: nowrap;
}
.rnv-band .rnv-time.rnv-next dd { color: #122821; }

.rnv-date {
    flex: 0 0 auto;
    min-width: 58px;
    padding-inline-start: 10px;
    border-inline-start: 1px solid #4a6560;
    color: var(--rnv-muted);
    font-size: 10px;
    line-height: 1.2;
    text-align: start;
    white-space: nowrap;
}
.rnv-date span, .rnv-date time { display: block; }
.rnv-date time { margin-block-start: 2px; color: var(--rnv-ink); font-size: 12px; font-weight: 650; }
.rnv-date .rnv-observance {
    display: inline-block;
    margin-block-start: 3px;
    padding: 2px 5px;
    border: 1px solid rgb(243 210 143 / 33%);
    border-radius: 5px;
    background: #263c34;
    color: var(--rnv-gold);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.15;
}

.rnv-ramadan { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.rnv-countdown { display: grid; gap: 1px; white-space: nowrap; color: var(--rnv-gold); font-size: 10px; }
.rnv-countdown strong {
    color: var(--rnv-gold);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}

.rnv-band .rnv-download {
    display: flex;
    min-height: 28px;
    padding: 4px 8px;
    align-items: center;
    gap: 6px;
    border: 1px solid #587369;
    border-radius: 6px;
    background: #193735;
    color: var(--rnv-ink);
    font: 650 11px/1.1 system-ui, sans-serif;
    white-space: nowrap;
}
.rnv-band .rnv-download:not(:disabled):hover { border-color: var(--rnv-gold); color: var(--rnv-gold); }
.rnv-download small { color: var(--rnv-gold); font-size: 9px; }
.rnv-download-icon {
    position: relative;
    display: block;
    width: 13px;
    height: 13px;
    border: solid currentColor;
    border-width: 0 1px 1px;
    border-radius: 0 0 2px 2px;
}
.rnv-download-icon::before {
    position: absolute;
    inset: 0 5px 4px;
    border-inline-start: 1px solid currentColor;
    content: "";
}
.rnv-download-icon::after {
    position: absolute;
    top: 4px;
    left: 3px;
    width: 5px;
    height: 5px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
    content: "";
}
.rnv-band .rnv-band-status { display: inline-block; margin: 0 0 9px clamp(16px, 3vw, 42px); color: var(--rnv-muted); font-size: 12px; }
.rnv-band .rnv-retry { margin: 0 0 9px 6px; padding: 2px 5px; border: 0; background: transparent; color: var(--rnv-gold); font: 600 12px/1.2 system-ui, sans-serif; text-decoration: underline; }

.rnv-location-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 7px);
    inset-inline-start: clamp(12px, calc((100% - 1360px) / 2 + 30px), 100%);
    width: min(360px, calc(100% - 24px));
    border: 1px solid #cfdbd1;
    border-radius: 15px;
    background: var(--rnv-paper);
    color: #16302b;
    box-shadow: 0 14px 36px rgb(9 38 29 / 26%);
}
.rnv-band .rnv-location-form { margin: 0; padding: 18px; color: inherit; }
.rnv-band .rnv-location-form h3 {
    margin: 0 0 14px;
    color: #15322b;
    font: 600 22px/1.2 Georgia, serif;
    letter-spacing: -.02em;
}
.rnv-band .rnv-fields label {
    display: block;
    margin: 0 0 3px;
    color: #25453d;
    font: 650 12px/1.25 system-ui, sans-serif;
}
.rnv-band .rnv-fields :is(input, select) {
    display: block;
    width: 100%;
    min-height: 34px;
    margin: 0 0 9px;
    padding: 6px 9px;
    border: 1px solid #c7d6cc;
    border-radius: 7px;
    background-color: #fff;
    color: #16302b;
    font: 400 14px/1.25 system-ui, sans-serif;
}
.rnv-band .rnv-fields select[size] { padding: 3px; }
.rnv-band .rnv-fields select[size] option { padding: 3px 7px; }
.rnv-band .rnv-fields [role="status"] { min-height: 16px; margin: 0 0 6px; color: #415b52; font-size: 11px; }
.rnv-location-actions { display: flex; justify-content: flex-end; gap: 8px; }
.rnv-band .rnv-location-actions button {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #bed0c3;
    border-radius: 7px;
    font: 650 12px/1.2 system-ui, sans-serif;
}
.rnv-band .rnv-cancel { background: #fdfdf9; color: #234037; }
.rnv-band .rnv-cancel:hover { background: #e9efea; }
.rnv-band .rnv-apply { border-color: #244237; background: #244237; color: #fff; }
.rnv-band .rnv-apply:not(:disabled):hover { background: #31574a; }

@media (max-width: 840px) {
    .rnv-inner { flex-wrap: wrap; gap: 5px 10px; min-height: 0; padding-block: 5px; }
    .rnv-identity { flex: 1 1 136px; }
    .rnv-band .rnv-times { order: 1; flex: 1 0 100%; }
    .rnv-date { padding-inline-start: 0; border: 0; text-align: end; }
    .rnv-ramadan { margin-inline-start: auto; }
}

@media (max-width: 480px) {
    .rnv-band .rnv-ramadan {
        order: 2;
        justify-content: space-between;
        width: 100%;
    }
    .rnv-countdown { display: flex; align-items: center; gap: 6px; }
    .rnv-band .rnv-download { margin-inline-start: auto; }
    .rnv-location-panel { top: 49px; }
}
