.nightastro-realtime-summary {
    margin: 14px 0 0;
    padding: 9px 11px;
    border: 1px solid rgba(125, 159, 196, .2);
    border-radius: 10px;
    background: rgba(10, 24, 40, .46);
    color: #d8e6f5;
    font-size: 12px;
    line-height: 1.35;
}
.nightastro-realtime-summary strong { color: #f1f7ff; }
.nightastro-realtime-summary.is-daylight span,
.nightastro-realtime-summary.is-below span,
.nightastro-realtime-summary.is-too-low span { color: #e5a072; }
.nightastro-realtime-summary.is-very-high span { color: #8edaff; }

.nightastro-target-altitude-chart {
    min-width: 0;
    margin: 16px 0 18px;
    padding: 16px;
    border: 1px solid rgba(125, 159, 196, .22);
    border-radius: 15px;
    background: rgba(7, 17, 30, .72);
    overflow: hidden;
}
.nightastro-target-altitude-chart-head h4 {
    margin: 0;
    color: #f1f7ff;
    font-size: 16px;
}
.nightastro-target-altitude-chart-head p {
    margin: 4px 0 0;
    color: #8ba1ba;
    font-size: 11px;
}
.nightastro-target-altitude-chart-empty {
    margin-top: 12px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(20, 36, 55, .58);
    color: #aabbd0;
    font-size: 12px;
}
.nightastro-target-altitude-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 13px;
    margin: 12px 0 6px;
    color: #a9bad0;
    font-size: 10px;
}
.nightastro-target-altitude-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.nightastro-target-altitude-chart-legend i {
    width: 17px;
    height: 3px;
    display: inline-block;
    border-radius: 3px;
    background: #64c8ff;
}
.nightastro-target-altitude-chart-legend i.is-moon {
    height: 0;
    border-top: 2px dashed #f2c45d;
    background: transparent;
}
.nightastro-target-altitude-chart-legend i.is-twilight { height: 9px; background: rgba(119, 91, 160, .56); }
.nightastro-target-altitude-chart-legend i.is-dark { height: 9px; background: rgba(5, 15, 30, .96); border: 1px solid rgba(93, 126, 162, .22); }
.nightastro-target-altitude-chart-legend i.is-blocked { height: 9px; background: rgba(145, 153, 164, .48); }
.nightastro-target-altitude-chart-stage {
    position: relative;
    width: 100%;
    min-width: 0;
}
.nightastro-target-altitude-svg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-width: 0;
    overflow: visible;
    touch-action: pan-y;
}
.nightastro-alt-chart-bg { fill: rgba(11, 24, 42, .46); }
.nightastro-alt-chart-twilight { fill: rgba(113, 80, 151, .27); }
.nightastro-alt-chart-dark { fill: rgba(3, 11, 23, .72); }
.nightastro-alt-chart-blocked { fill: rgba(148, 156, 166, .28); }
.nightastro-alt-chart-grid { stroke: rgba(135, 165, 197, .17); stroke-width: 1; vector-effect: non-scaling-stroke; }
.nightastro-alt-chart-grid.is-vertical { stroke-dasharray: 2 5; }
.nightastro-alt-chart-axis-label { fill: #849bb5; font-size: 10px; }
.nightastro-alt-chart-axis-label.is-edge { fill: #a2b6cc; }
.nightastro-alt-chart-target {
    fill: none;
    stroke: #65c9ff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.nightastro-alt-chart-moon {
    fill: none;
    stroke: #f2c45d;
    stroke-width: 2;
    stroke-dasharray: 7 5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}
.nightastro-alt-chart-min {
    stroke: #e8965a;
    stroke-width: 1.5;
    stroke-dasharray: 5 5;
    vector-effect: non-scaling-stroke;
}
.nightastro-alt-chart-min-label { fill: #e9aa7c; font-size: 10px; }
.nightastro-alt-chart-now {
    stroke: #ff6676;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}
.nightastro-alt-chart-now-label { fill: #ff8995; font-size: 10px; font-weight: 700; }
.nightastro-alt-chart-now-label-bg { fill: rgba(3, 12, 23, .82); stroke: rgba(255, 102, 118, .28); stroke-width: 1; vector-effect: non-scaling-stroke; }
.nightastro-alt-chart-culmination { fill: #f2f7ff; stroke: #65c9ff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.nightastro-alt-chart-culmination-label { fill: #dfeeff; font-size: 10px; font-weight: 700; }
.nightastro-alt-chart-hover-line {
    stroke: rgba(235, 245, 255, .78);
    stroke-width: 1;
    stroke-dasharray: 3 4;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}
.nightastro-alt-chart-hover-line.is-hidden { display: none; }
.nightastro-alt-chart-hit { fill: transparent; cursor: crosshair; }
.nightastro-target-altitude-tooltip {
    position: absolute;
    top: 10px;
    transform: translateX(-50%);
    z-index: 4;
    min-width: 104px;
    padding: 7px 9px;
    border: 1px solid rgba(135, 176, 219, .35);
    border-radius: 8px;
    background: rgba(3, 12, 23, .94);
    box-shadow: 0 8px 24px rgba(0,0,0,.32);
    color: #dceaf8;
    font-size: 10px;
    line-height: 1.35;
    pointer-events: none;
    white-space: nowrap;
}
.nightastro-target-altitude-tooltip strong,
.nightastro-target-altitude-tooltip span { display: block; }
.nightastro-target-altitude-tooltip strong { margin-bottom: 2px; color: #fff; }

@media (max-width: 600px) {
    .nightastro-target-altitude-chart { margin: 13px 0 15px; padding: 10px 8px 9px; border-radius: 12px; }
    .nightastro-target-altitude-chart-head { padding: 0 3px; }
    .nightastro-target-altitude-chart-head h4 { font-size: 14px; }
    .nightastro-target-altitude-chart-head p { font-size: 10px; }
    .nightastro-target-altitude-chart-legend { padding: 0 3px; gap: 5px 9px; font-size: 9px; }
    .nightastro-target-altitude-chart-stage { overflow: hidden; }
    .nightastro-target-altitude-svg { width: 100%; max-width: 100%; height: auto; min-width: 0; }
    .nightastro-alt-chart-axis-label,
    .nightastro-alt-chart-min-label,
    .nightastro-alt-chart-now-label,
    .nightastro-alt-chart-culmination-label { font-size: 11px; }
    .nightastro-target-altitude-tooltip { min-width: 96px; padding: 6px 7px; font-size: 11px; }
    .nightastro-realtime-summary { margin-top: 11px; padding: 8px 9px; font-size: 11px; }
}

html.nightastro-night-mode .nightastro-realtime-summary {
    border-color: rgba(174, 22, 22, .48);
    background: #090000;
    color: #c94a4a;
}
html.nightastro-night-mode .nightastro-realtime-summary strong,
html.nightastro-night-mode .nightastro-realtime-summary span { color: #e95a5a; }

html.nightastro-night-mode .nightastro-target-altitude-chart {
    border-color: rgba(174, 22, 22, .55);
    background: #080000;
}
html.nightastro-night-mode .nightastro-target-altitude-chart-head h4,
html.nightastro-night-mode .nightastro-alt-chart-culmination-label,
html.nightastro-night-mode .nightastro-target-altitude-tooltip { color: #ff6a6a; }
html.nightastro-night-mode .nightastro-target-altitude-chart-head p,
html.nightastro-night-mode .nightastro-target-altitude-chart-legend,
html.nightastro-night-mode .nightastro-alt-chart-axis-label,
html.nightastro-night-mode .nightastro-alt-chart-axis-label.is-edge { color: #a93b3b; fill: #a93b3b; }
html.nightastro-night-mode .nightastro-alt-chart-bg { fill: #090000; }
html.nightastro-night-mode .nightastro-alt-chart-twilight { fill: rgba(102, 0, 0, .38); }
html.nightastro-night-mode .nightastro-alt-chart-dark { fill: rgba(0, 0, 0, .94); }
html.nightastro-night-mode .nightastro-alt-chart-blocked { fill: rgba(96, 36, 36, .48); }
html.nightastro-night-mode .nightastro-alt-chart-grid { stroke: rgba(135, 32, 32, .28); }
html.nightastro-night-mode .nightastro-alt-chart-target { stroke: #ff3a3a; }
html.nightastro-night-mode .nightastro-alt-chart-moon { stroke: #c64c4c; }
html.nightastro-night-mode .nightastro-alt-chart-min { stroke: #b82f2f; }
html.nightastro-night-mode .nightastro-alt-chart-min-label,
html.nightastro-night-mode .nightastro-alt-chart-now-label { fill: #cf4545; }
html.nightastro-night-mode .nightastro-alt-chart-now { stroke: #ff5959; }
html.nightastro-night-mode .nightastro-alt-chart-culmination { fill: #ff6a6a; stroke: #ff2323; }
html.nightastro-night-mode .nightastro-target-altitude-tooltip {
    border-color: rgba(177, 30, 30, .62);
    background: rgba(12, 0, 0, .97);
    box-shadow: none;
}
html.nightastro-night-mode .nightastro-target-altitude-tooltip strong { color: #ff9090; }

html.nightastro-night-mode .nightastro-target-altitude-chart-legend i.is-target { background: #ff3a3a; }
html.nightastro-night-mode .nightastro-target-altitude-chart-legend i.is-moon { border-top-color: #c64c4c; background: transparent; }
html.nightastro-night-mode .nightastro-target-altitude-chart-legend i.is-twilight { background: rgba(154, 24, 24, .62); }
html.nightastro-night-mode .nightastro-target-altitude-chart-legend i.is-dark { background: #120000; border-color: rgba(176, 48, 48, .42); }
html.nightastro-night-mode .nightastro-target-altitude-chart-legend i.is-blocked { background: rgba(126, 45, 45, .72); }
html.nightastro-night-mode .nightastro-alt-chart-culmination-label { fill: #ff6a6a; color: #ff6a6a; }
html.nightastro-night-mode .nightastro-alt-chart-now-label-bg { fill: rgba(15, 0, 0, .88); stroke: rgba(255, 74, 74, .45); }
