/* ============================================================
   hyprland.css — imperative-dots replica (ilyamiro)
   Catppuccin Mocha palette, floating pill bar, top-mounted
   Every rule scoped under #hyprland-root — zero global bleed
   ============================================================ */

#hyprland-root {
    /* Catppuccin Mocha */
    --c-base:       #1e1e2e;
    --c-mantle:     #181825;
    --c-crust:      #11111b;
    --c-surface0:   #313244;
    --c-surface1:   #45475a;
    --c-surface2:   #585b70;
    --c-overlay0:   #6c7086;
    --c-overlay1:   #7f849c;
    --c-text:       #cdd6f4;
    --c-subtext0:   #a6adc8;
    --c-subtext1:   #bac2de;
    --c-blue:       #89b4fa;
    --c-sapphire:   #74c7ec;
    --c-mauve:      #cba6f7;
    --c-pink:       #f5c2e7;
    --c-peach:      #fab387;
    --c-green:      #a6e3a1;
    --c-red:        #f38ba8;
    --c-yellow:     #f9e2af;
    --c-teal:       #94e2d5;

    /* pill geometry */
    --pill-r:   14px;   /* outer pill radius */
    --inner-r:  10px;   /* inner sub-pill radius */
    --pill-bg:  rgba(30, 30, 46, 0.80);
    --pill-border: rgba(205, 214, 244, 0.06);

    /* structural backgrounds — overridden per-scheme by applyScheme() */
    --c-window-bg:   rgba(24, 24, 37, 0.94);
    --c-terminal-bg: rgba(17, 17, 27, 0.96);
    --bar-gap:  4px;    /* gap between pills */
    --bar-top:  8px;    /* top margin */

    --font: 'JetBrains Mono', 'Roboto Mono', 'Consolas', monospace;
}

/* ── full-screen container ── */
#hyprland-root {
    position: fixed;
    inset: 0;
    z-index: 19000;
    overflow: hidden;
    font-family: var(--font);
    color: var(--c-text);
    /* the content is the wallpaper + the bar — no flex column needed */
}

/* ── wallpaper ── */
#hyprland-root .hypr-wallpaper {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 110% 70% at 15% 90%, rgba(203,166,247,0.14) 0%, transparent 50%),
        radial-gradient(ellipse 80% 100% at 88% 10%, rgba(137,180,250,0.12) 0%, transparent 45%),
        radial-gradient(ellipse 60% 50% at 55% 45%, rgba(148,226,213,0.05) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 30% 20%, rgba(245,194,231,0.06) 0%, transparent 50%),
        linear-gradient(160deg, #08080f 0%, #0e0e1a 25%, #11111b 50%, #181826 75%, #12121e 100%);
    z-index: 0;
}
/* grain overlay */
#hyprland-root .hypr-wallpaper::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.038;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px;
    pointer-events: none;
}

/* ── bar row (fixed at top, floating pills) ── */
#hyprland-root .hypr-bar {
    position: absolute;
    top: var(--bar-top);
    left: var(--bar-gap);
    right: var(--bar-gap);
    z-index: 10;
    height: 48px;
    display: flex;
    align-items: center;
    gap: var(--bar-gap);
    pointer-events: none; /* pills re-enable it individually */
}

/* pill base */
#hyprland-root .hypr-pill {
    height: 48px;
    display: flex;
    align-items: center;
    background: var(--pill-bg);
    border-radius: var(--pill-r);
    border: 1px solid var(--pill-border);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    box-shadow: 0 2px 16px rgba(0,0,0,0.35), 0 1px 0 rgba(205,214,244,0.04) inset;
    pointer-events: all;
    flex-shrink: 0;
    overflow: hidden;
    user-select: none;
}

/* spacer pushes center pill to true center */
#hyprland-root .hypr-bar-spacer { flex: 1; pointer-events: none; }

/* ── LEFT pill ── */
#hyprland-root .hypr-left-pill {
    padding: 0 10px;
    gap: 4px;
}

#hyprland-root .hypr-icon-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--c-overlay1);
    font-size: 16px;
    cursor: pointer;
    outline: none;
    transition: color 0.15s, background 0.15s;
    font-family: var(--font);
    padding: 0;
    line-height: 1;
}
#hyprland-root .hypr-icon-btn:hover { background: rgba(205,214,244,0.07); }
#hyprland-root .hypr-icon-btn.help:hover     { color: var(--c-teal); }
#hyprland-root .hypr-icon-btn.search:hover   { color: var(--c-blue); }
#hyprland-root .hypr-icon-btn.term:hover     { color: var(--c-green); }
#hyprland-root .hypr-icon-btn.settings:hover { color: var(--c-blue); }
#hyprland-root .hypr-icon-btn.blog:hover     { color: var(--c-sapphire); }
#hyprland-root .hypr-icon-btn.achiev:hover   { color: var(--c-yellow); }

/* ── WORKSPACES pill ── */
#hyprland-root .hypr-ws-pill {
    padding: 0 8px;
    gap: 6px;
    position: relative;
}

#hyprland-root .hypr-ws-list {
    display: flex;
    gap: 6px;
    align-items: center;
    position: relative;
}

/* the animated sliding highlight behind active workspace */
#hyprland-root .hypr-ws-highlight {
    position: absolute;
    top: 0;
    height: 32px;
    width: 32px;
    border-radius: var(--inner-r);
    background: var(--c-mauve);
    z-index: 0;
    transition:
        left 0.2s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

#hyprland-root .hypr-ws-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--inner-r);
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--c-overlay0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    outline: none;
    transition: color 0.15s, background 0.15s;
    padding: 0;
}
#hyprland-root .hypr-ws-btn.occupied {
    background: rgba(205,214,244,0.1);
    color: var(--c-text);
    font-weight: 700;
}
#hyprland-root .hypr-ws-btn.active {
    color: var(--c-crust);
    font-weight: 900;
    background: transparent; /* highlight covers it */
}
#hyprland-root .hypr-ws-btn:not(.active):hover {
    background: rgba(205,214,244,0.08);
    color: var(--c-subtext1);
}

/* ── ACTIVE WINDOW TITLE pill ── */
#hyprland-root .hypr-active-title-pill {
    padding: 0 13px;
    gap: 7px;
    max-width: 260px;
    min-width: 0;
    overflow: hidden;
    transition:
        max-width 0.32s cubic-bezier(0.16,1,0.3,1),
        opacity 0.2s,
        padding 0.28s;
}
#hyprland-root .hypr-active-title-pill.hidden {
    max-width: 0;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    border: none;
    overflow: hidden;
}
#hyprland-root .hypr-title-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cba6f7, #89b4fa);
    flex-shrink: 0;
    animation: hypr-title-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes hypr-title-dot-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(203,166,247,0.35); }
    50%       { box-shadow: 0 0 10px rgba(203,166,247,0.85), 0 0 18px rgba(137,180,250,0.3); }
}
#hyprland-root .hypr-active-title-text {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--c-subtext1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
}

/* entrance animation delay for the title pill */
#hyprland-root .hypr-active-title-pill { animation-delay: 50ms; }

/* ── MEDIA pill (hidden when no song) ── */
#hyprland-root .hypr-media-pill {
    padding: 0 10px;
    gap: 8px;
    min-width: 0;
    max-width: 260px;
    transition: max-width 0.35s ease, opacity 0.25s ease, padding 0.3s ease;
}
#hyprland-root .hypr-media-pill.hidden {
    max-width: 0;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    border: none;
    overflow: hidden;
}

#hyprland-root .hypr-media-art {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1.5px solid var(--c-mauve);
    flex-shrink: 0;
    background: var(--c-surface0);
}

#hyprland-root .hypr-media-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

#hyprland-root .hypr-media-title {
    font-size: 12px;
    font-weight: 900;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    line-height: 1.2;
}

#hyprland-root .hypr-media-time {
    font-size: 10px;
    font-weight: 900;
    color: var(--c-subtext0);
    line-height: 1.2;
}

#hyprland-root .hypr-media-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

#hyprland-root .hypr-media-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--c-overlay2);
    cursor: pointer;
    border-radius: 6px;
    outline: none;
    transition: color 0.15s, background 0.15s;
    padding: 0;
    font-size: 14px;
    font-family: var(--font);
}
#hyprland-root .hypr-media-btn:hover { color: var(--c-mauve); background: rgba(203,166,247,0.1); }
#hyprland-root .hypr-media-btn.pp { color: var(--c-mauve); }

/* ── CENTER pill (clock + weather) ── */
#hyprland-root .hypr-center-pill {
    padding: 0 16px;
    gap: 24px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
#hyprland-root .hypr-center-pill:hover {
    background: rgba(49,50,68,0.95);
}

#hyprland-root .hypr-clock-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

#hyprland-root .hypr-clock-time {
    font-size: 16px;
    font-weight: 900;
    color: var(--c-blue);
    line-height: 1.1;
    letter-spacing: 0.02em;
}

#hyprland-root .hypr-clock-date {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-subtext0);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
}

#hyprland-root .hypr-weather-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

#hyprland-root .hypr-weather-icon {
    font-size: 22px;
    line-height: 1.1;
    color: var(--c-mauve);
}

#hyprland-root .hypr-weather-temp {
    font-size: 14px;
    font-weight: 900;
    color: var(--c-peach);
    line-height: 1.2;
}

/* ── RIGHT pills ── */
#hyprland-root .hypr-right-group {
    display: flex;
    align-items: center;
    gap: var(--bar-gap);
    pointer-events: all;
}

/* individual system info sub-pills inside right pill */
#hyprland-root .hypr-sys-pill {
    height: 34px;
    border-radius: var(--inner-r);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
    cursor: default;
    transition: opacity 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    outline: none;
    font-family: var(--font);
}

/* default inactive style */
#hyprland-root .hypr-sys-pill.inactive {
    background: rgba(49,50,68,0.5);
    color: var(--c-subtext0);
}
#hyprland-root .hypr-sys-pill.inactive:hover {
    background: rgba(69,71,90,0.65);
}

/* active/gradient styles per pill type */
#hyprland-root .hypr-sys-pill.net-active {
    background: linear-gradient(90deg, var(--c-blue), #b4d4ff);
    color: var(--c-crust);
}
#hyprland-root .hypr-sys-pill.vol-active {
    background: linear-gradient(90deg, var(--c-peach), #ffd1a8);
    color: var(--c-crust);
}
#hyprland-root .hypr-sys-pill.bat-active {
    background: linear-gradient(90deg, var(--c-green), #c6f5c2);
    color: var(--c-crust);
}
#hyprland-root .hypr-sys-pill.kb-pill {
    background: rgba(49,50,68,0.5);
    color: var(--c-text);
    cursor: pointer;
}
#hyprland-root .hypr-sys-pill.kb-pill:hover {
    background: rgba(69,71,90,0.7);
}

/* outer right wrapper pill (contains sub-pills) */
#hyprland-root .hypr-right-wrap {
    padding: 0 7px;
    gap: 6px;
    height: 48px;
}

/* tray pill */
#hyprland-root .hypr-tray-pill {
    padding: 0 10px;
    gap: 10px;
}
#hyprland-root .hypr-tray-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.2s;
    filter: brightness(0) invert(1);
}
#hyprland-root .hypr-tray-icon:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* ── exit button (floats bottom-right of bar) ── */
#hyprland-root .hypr-exit-btn {
    position: absolute;
    bottom: 0;
    right: var(--bar-gap);
    bottom: calc(var(--bar-top) + 48px + 6px);
    /* actually just in the bar — we put it in the right group */
}

/* ESC hint label inside bar */
#hyprland-root .hypr-esc-pill {
    height: 26px;
    border-radius: 8px;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--c-red);
    background: rgba(243,139,168,0.1);
    border: 1px solid rgba(243,139,168,0.22);
    cursor: pointer;
    display: flex;
    align-items: center;
    outline: none;
    font-family: var(--font);
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    pointer-events: all;
}
#hyprland-root .hypr-esc-pill:hover {
    background: rgba(243,139,168,0.22);
    color: #fff;
}

/* ── popup panels ── */
#hyprland-root .hypr-popup {
    position: absolute;
    top: calc(var(--bar-top) + 48px + 8px);
    background: rgba(24, 24, 37, 0.97);
    border: 1px solid rgba(205,214,244,0.08);
    border-radius: var(--pill-r);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    z-index: 20;
    overflow: hidden;
    pointer-events: all;
}

/* popup entrance */
#hyprland-root .hypr-popup {
    animation: hypr-popup-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes hypr-popup-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── calendar popup ── */
#hyprland-root .hypr-cal-popup {
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#hyprland-root .hypr-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 900;
    color: var(--c-text);
}
#hyprland-root .hypr-cal-nav {
    background: none;
    border: none;
    color: var(--c-overlay1);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: var(--font);
    outline: none;
    transition: color 0.15s, background 0.15s;
}
#hyprland-root .hypr-cal-nav:hover { color: var(--c-mauve); background: rgba(203,166,247,0.1); }

#hyprland-root .hypr-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
#hyprland-root .hypr-cal-dow {
    font-size: 9px;
    font-weight: 700;
    color: var(--c-overlay0);
    text-align: center;
    padding: 2px 0;
    letter-spacing: 0.04em;
}
#hyprland-root .hypr-cal-day {
    font-size: 11px;
    font-weight: 500;
    color: var(--c-subtext0);
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    border: none;
    background: none;
    font-family: var(--font);
    outline: none;
}
#hyprland-root .hypr-cal-day:hover { background: rgba(203,166,247,0.1); color: var(--c-text); }
#hyprland-root .hypr-cal-day.today {
    background: var(--c-mauve);
    color: var(--c-crust);
    font-weight: 900;
}
#hyprland-root .hypr-cal-day.other-month { color: var(--c-overlay0); opacity: 0.5; }

/* ── music popup ── */
#hyprland-root .hypr-music-popup {
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#hyprland-root .hypr-mp-art {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--c-mauve);
    align-self: center;
    background: var(--c-surface0);
}

#hyprland-root .hypr-mp-title {
    font-size: 13px;
    font-weight: 900;
    color: var(--c-text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#hyprland-root .hypr-mp-seek {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--c-surface1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    border: none;
}
#hyprland-root .hypr-mp-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-mauve);
    cursor: pointer;
}
#hyprland-root .hypr-mp-seek::-moz-range-thumb {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-mauve);
    cursor: pointer;
    border: none;
}

#hyprland-root .hypr-mp-times {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    color: var(--c-overlay0);
    margin-top: -8px;
}

#hyprland-root .hypr-mp-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#hyprland-root .hypr-mp-btn {
    background: none;
    border: none;
    color: var(--c-subtext1);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: color 0.15s, background 0.15s;
    font-size: 18px;
    font-family: var(--font);
}
#hyprland-root .hypr-mp-btn:hover { color: var(--c-mauve); background: rgba(203,166,247,0.1); }
#hyprland-root .hypr-mp-btn.pp {
    width: 36px; height: 36px;
    background: rgba(203,166,247,0.15);
    color: var(--c-mauve);
    border-radius: 50%;
    font-size: 20px;
}
#hyprland-root .hypr-mp-btn.pp:hover { background: rgba(203,166,247,0.28); }

#hyprland-root .hypr-mp-vol {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--c-overlay0);
}
#hyprland-root .hypr-mp-vol input[type=range] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--c-surface1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    border: none;
}
#hyprland-root .hypr-mp-vol input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-sapphire);
    cursor: pointer;
}
#hyprland-root .hypr-mp-vol input[type=range]::-moz-range-thumb {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-sapphire);
    cursor: pointer;
    border: none;
}

/* ── volume popup ── */
#hyprland-root .hypr-vol-popup {
    right: 8px;
    width: 220px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#hyprland-root .hypr-vol-popup .hypr-popup-label {
    font-size: 11px;
    font-weight: 900;
    color: var(--c-subtext0);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#hyprland-root .hypr-vol-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
#hyprland-root .hypr-vol-row span {
    font-size: 14px;
    color: var(--c-peach);
    width: 18px;
    text-align: center;
}
#hyprland-root .hypr-vol-row input[type=range] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--c-surface1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    border: none;
}
#hyprland-root .hypr-vol-row input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--c-peach);
    cursor: pointer;
}
#hyprland-root .hypr-vol-row input[type=range]::-moz-range-thumb {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--c-peach);
    cursor: pointer;
    border: none;
}
#hyprland-root .hypr-vol-pct {
    font-size: 13px;
    font-weight: 900;
    color: var(--c-text);
    width: 36px;
    text-align: right;
}

/* ── network popup ── */
#hyprland-root .hypr-net-popup {
    right: 8px;
    width: 200px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#hyprland-root .hypr-net-popup .hypr-popup-label {
    font-size: 11px;
    font-weight: 900;
    color: var(--c-subtext0);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
#hyprland-root .hypr-net-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}
#hyprland-root .hypr-net-row .lbl { color: var(--c-overlay1); }
#hyprland-root .hypr-net-row .val { color: var(--c-text); font-weight: 700; }

/* ── bottom status bar ── */
#hyprland-root .hypr-statusline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 22px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: rgba(17,17,27,0.7);
    backdrop-filter: blur(8px);
    font-size: 10px;
    color: var(--c-overlay0);
    gap: 14px;
    letter-spacing: 0.04em;
    border-top: 1px solid rgba(205,214,244,0.04);
    user-select: none;
    z-index: 5;
}
#hyprland-root .hypr-statusline .hl  { color: var(--c-mauve); }
#hyprland-root .hypr-statusline .hlb { color: var(--c-blue); }
#hyprland-root .hypr-statusline .hlg { color: var(--c-green); }

/* ── popup close overlay ── */
#hyprland-root .hypr-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 15;
    pointer-events: all;
}

/* ── root entrance animation ── */
#hyprland-root {
    animation: hypr-root-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes hypr-root-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* bar pill entrance animation */
#hyprland-root .hypr-pill {
    animation: hypr-pill-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes hypr-pill-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
#hyprland-root .hypr-left-pill    { animation-delay: 0ms; }
#hyprland-root .hypr-ws-pill      { animation-delay: 40ms; }
#hyprland-root .hypr-media-pill   { animation-delay: 80ms; }
#hyprland-root .hypr-center-pill  { animation-delay: 60ms; }
#hyprland-root .hypr-tray-pill    { animation-delay: 80ms; }
#hyprland-root .hypr-right-wrap   { animation-delay: 100ms; }

/* sub-pill entrance (right group) */
#hyprland-root .hypr-sys-pill {
    animation: hypr-pill-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
#hyprland-root .hypr-sys-pill:nth-child(1) { animation-delay: 110ms; }
#hyprland-root .hypr-sys-pill:nth-child(2) { animation-delay: 160ms; }
#hyprland-root .hypr-sys-pill:nth-child(3) { animation-delay: 210ms; }
#hyprland-root .hypr-sys-pill:nth-child(4) { animation-delay: 260ms; }

/* scrollbar reset */
#hyprland-root *::-webkit-scrollbar { width: 4px; }
#hyprland-root *::-webkit-scrollbar-track { background: transparent; }
#hyprland-root *::-webkit-scrollbar-thumb { background: var(--c-surface1); border-radius: 2px; }

/* ── workspace area (tiling region) ── */
#hyprland-root .hypr-workspace-area {
    position: absolute;
    top: calc(var(--bar-top) + 48px + var(--bar-gap));
    left: 0;
    right: 0;
    bottom: 22px; /* above status line */
    z-index: 1;
    overflow: hidden;
}

/* ── tiling windows ── */
#hyprland-root .hypr-window {
    position: absolute;
    display: flex;
    flex-direction: column;
    background: var(--c-window-bg);
    border: 1.5px solid var(--pill-border);
    border-radius: 10px;
    backdrop-filter: blur(28px) saturate(1.3);
    -webkit-backdrop-filter: blur(28px) saturate(1.3);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.60), 0 1px 0 rgba(205,214,244,0.05) inset;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    transition: opacity 0.25s ease;
}
/* col.active_border = mauve→blue gradient border */
#hyprland-root .hypr-window.focused {
    border-color: transparent;
    background:
        linear-gradient(var(--c-window-bg), var(--c-window-bg)) padding-box,
        linear-gradient(135deg, var(--c-mauve) 0%, var(--c-blue) 100%) border-box;
    box-shadow:
        0 4px 40px rgba(0,0,0,0.65),
        0 0 22px color-mix(in srgb, var(--c-mauve) 14%, transparent),
        0 0 44px color-mix(in srgb, var(--c-blue) 7%, transparent);
}
#hyprland-root .hypr-terminal-win {
    background: var(--c-terminal-bg);
}
#hyprland-root .hypr-terminal-win.focused {
    background:
        linear-gradient(var(--c-terminal-bg), var(--c-terminal-bg)) padding-box,
        linear-gradient(135deg, var(--c-mauve) 0%, var(--c-blue) 100%) border-box;
}

/* ── titlebar ── */
#hyprland-root .hypr-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 10px;
    background: rgba(30, 30, 46, 0.7);
    border-bottom: 1px solid rgba(205, 214, 244, 0.06);
    flex-shrink: 0;
    user-select: none;
}
#hyprland-root .hypr-tb-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
#hyprland-root .hypr-tb-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: filter 0.15s;
}
#hyprland-root .hypr-tb-dot:hover { filter: brightness(1.3); }
#hyprland-root .hypr-tb-close { background: #f38ba8; }
#hyprland-root .hypr-tb-min   { background: #f9e2af; }
#hyprland-root .hypr-tb-max   { background: #a6e3a1; }
#hyprland-root .hypr-tb-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-subtext0);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* ── window content body ── */
#hyprland-root .hypr-win-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ── terminal ── */
#hyprland-root .hypr-term-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px 12px 8px;
    cursor: text;
    box-sizing: border-box;
    overflow: hidden;
}
#hyprland-root .hypr-term-output {
    flex: 1;
    overflow-y: auto;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--c-text);
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 0;
}
#hyprland-root .hypr-term-line {
    display: block;
    min-height: 1.55em;
}
#hyprland-root .hypr-term-prompt {
    color: var(--c-mauve);
    font-weight: 900;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 6px;
}
#hyprland-root .hypr-term-cmd {
    color: var(--c-text);
}
#hyprland-root .hypr-term-input-row {
    display: flex;
    align-items: center;
    margin-top: 6px;
    flex-shrink: 0;
}
/* wrapper that stacks ghost + input on top of each other */
#hyprland-root .hypr-term-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}
/* ghost shows full suggested text in the same position as the input */
#hyprland-root .hypr-term-ghost {
    position: absolute;
    inset: 0;
    font-family: var(--font);
    font-size: 12.5px;
    color: var(--c-overlay0);
    pointer-events: none;
    white-space: pre;
    overflow: hidden;
    display: flex;
    align-items: center;
}
#hyprland-root .hypr-term-input {
    position: relative;
    z-index: 1;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: 12.5px;
    color: var(--c-text);
    caret-color: var(--c-mauve);
    padding: 0;
    min-width: 0;
}

/* ── music content window ── */
#hyprland-root .hypr-music-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px 18px;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}
#hyprland-root .hypr-mc-art {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--c-mauve);
    background: var(--c-surface0);
    flex-shrink: 0;
}
#hyprland-root .hypr-mc-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#hyprland-root .hypr-mc-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--c-text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#hyprland-root .hypr-mc-seek {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--c-surface1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    border: none;
}
#hyprland-root .hypr-mc-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-mauve);
    cursor: pointer;
}
#hyprland-root .hypr-mc-seek::-moz-range-thumb {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-mauve);
    cursor: pointer;
    border: none;
}
#hyprland-root .hypr-mc-times {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    color: var(--c-overlay0);
    margin-top: -6px;
}
#hyprland-root .hypr-mc-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
#hyprland-root .hypr-mc-btn {
    background: none;
    border: none;
    color: var(--c-subtext1);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: color 0.15s, background 0.15s;
    font-family: var(--font);
}
#hyprland-root .hypr-mc-btn:hover { color: var(--c-mauve); background: rgba(203,166,247,0.1); }
#hyprland-root .hypr-mc-btn.pp {
    width: 40px; height: 40px;
    background: rgba(203,166,247,0.15);
    color: var(--c-mauve);
    border-radius: 50%;
}
#hyprland-root .hypr-mc-btn.pp:hover { background: rgba(203,166,247,0.28); }
#hyprland-root .hypr-mc-vol {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    width: 100%;
}
#hyprland-root .hypr-mc-vol input[type=range] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--c-surface1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    border: none;
}
#hyprland-root .hypr-mc-vol input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-sapphire);
    cursor: pointer;
}
#hyprland-root .hypr-mc-vol input[type=range]::-moz-range-thumb {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-sapphire);
    cursor: pointer;
    border: none;
}

/* ── socials window ── */
#hyprland-root .hypr-socials-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 8px;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}
#hyprland-root .hypr-social-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.15s;
}
#hyprland-root .hypr-social-row:hover {
    background: rgba(205, 214, 244, 0.07);
}
#hyprland-root .hypr-social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.85;
}

/* ── blog window ── */
#hyprland-root .hypr-blog-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 8px;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}
#hyprland-root .hypr-blog-entry {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
    border: 1px solid transparent;
}
#hyprland-root .hypr-blog-entry:hover {
    background: rgba(203, 166, 247, 0.06);
    border-color: rgba(203, 166, 247, 0.12);
}
#hyprland-root .hypr-blog-entry-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text);
}
#hyprland-root .hypr-blog-entry-meta {
    font-size: 10px;
    color: var(--c-overlay0);
}
#hyprland-root .hypr-blog-loading,
#hyprland-root .hypr-blog-empty {
    font-size: 12px;
    color: var(--c-overlay1);
    padding: 16px 12px;
    font-style: italic;
}

/* ── workspace social icons ── */
#hyprland-root .hypr-ws-social-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    pointer-events: none;
    filter: brightness(0) invert(1);
    opacity: 0.75;
    transition: opacity 0.15s;
}
#hyprland-root .hypr-ws-btn.active .hypr-ws-social-icon {
    opacity: 1;
    filter: brightness(0) invert(0); /* dark icon on mauve highlight */
}
#hyprland-root .hypr-ws-btn:not(.active):hover .hypr-ws-social-icon {
    opacity: 1;
}

/* ── power popup button ── */
#hyprland-root .hypr-power-btn {
    background: rgba(49, 50, 68, 0.6);
    border: 1px solid rgba(205, 214, 244, 0.08);
    color: var(--c-text);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    outline: none;
    transition: background 0.15s, color 0.15s;
}
#hyprland-root .hypr-power-btn:hover {
    background: rgba(243, 139, 168, 0.15);
    color: var(--c-red);
    border-color: rgba(243, 139, 168, 0.25);
}

/* ── popup label (shared) ── */
#hyprland-root .hypr-popup-label {
    font-size: 10px;
    font-weight: 900;
    color: var(--c-overlay0);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── cava visualizer window ── */
#hyprland-root .hypr-cava-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    background: rgba(17, 17, 27, 0.0); /* transparent — window bg shows */
}
#hyprland-root .hypr-cava-canvas {
    flex: 1;
    width: 100%;
    height: 100%;
    display: block;
}

/* ── window spawn / despawn animations ── */
@keyframes hypr-win-in {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}
#hyprland-root .hypr-window {
    animation: hypr-win-in 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── larpboy bar pill ── */
#hyprland-root .hypr-larpboy-pill {
    display: flex;
    align-items: center;
    padding: 0 10px;
    opacity: 0.75;
    transition: opacity 0.2s;
    cursor: default;
}
#hyprland-root .hypr-larpboy-pill:hover { opacity: 1; }
/* make larpboy clickable (complete state) feel like a button */
#hyprland-root .hypr-larpboy-pill #larpboy-display[style*="pointer-events: auto"] {
    cursor: pointer;
}

/* ════════════════════════════════════════════════════════════
   IRC blog window
   ════════════════════════════════════════════════════════════ */
#hyprland-root .hypr-irc-wrap {
    display: flex;
    height: 100%;
    overflow: hidden;
}

#hyprland-root .hypr-irc-sidebar {
    width: 112px;
    flex-shrink: 0;
    background: rgba(10, 10, 18, 0.55);
    border-right: 1px solid var(--c-surface0);
    display: flex;
    flex-direction: column;
    padding: 8px 0 6px;
    overflow-y: auto;
    scrollbar-width: none;
}
#hyprland-root .hypr-irc-sidebar::-webkit-scrollbar { display: none; }

#hyprland-root .hypr-irc-server {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--c-mauve);
    padding: 0 10px 5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
#hyprland-root .hypr-irc-sideline {
    height: 1px;
    background: var(--c-surface0);
    margin: 0 8px 5px;
}
#hyprland-root .hypr-irc-chan {
    background: none;
    border: none;
    border-left: 2px solid transparent;
    color: var(--c-overlay0);
    font-family: var(--font);
    font-size: 11px;
    padding: 4px 10px;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: color 0.12s, background 0.12s, border-color 0.12s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#hyprland-root .hypr-irc-chan:hover { color: var(--c-subtext0); background: rgba(203,166,247,0.04); }
#hyprland-root .hypr-irc-chan.active { color: var(--c-mauve); border-left-color: var(--c-mauve); background: rgba(203,166,247,0.07); }

#hyprland-root .hypr-irc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}
#hyprland-root .hypr-irc-header {
    padding: 5px 12px;
    border-bottom: 1px solid var(--c-surface0);
    background: rgba(17,17,27,0.5);
    flex-shrink: 0;
}
#hyprland-root .hypr-irc-chantitle {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: 0.04em;
}
#hyprland-root .hypr-irc-searchrow {
    display: flex;
    padding: 4px 10px;
    border-bottom: 1px solid var(--c-surface0);
    background: rgba(17,17,27,0.3);
    flex-shrink: 0;
}
#hyprland-root .hypr-irc-searchinput {
    flex: 1;
    background: none;
    border: none;
    color: var(--c-text);
    font-family: var(--font);
    font-size: 11px;
    padding: 2px 0;
    outline: none;
}
#hyprland-root .hypr-irc-searchinput::placeholder { color: var(--c-overlay0); }

#hyprland-root .hypr-irc-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 5px 0 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--c-surface1) transparent;
}
#hyprland-root .hypr-irc-msgs::-webkit-scrollbar { width: 4px; }
#hyprland-root .hypr-irc-msgs::-webkit-scrollbar-thumb { background: var(--c-surface1); border-radius: 2px; }

#hyprland-root .hypr-irc-row {
    padding: 1px 12px;
    font-size: 11.5px;
    line-height: 1.65;
    display: flex;
    align-items: baseline;
    gap: 5px;
    word-break: break-word;
}
#hyprland-root .hypr-irc-clickable { cursor: pointer; border-radius: 3px; }
#hyprland-root .hypr-irc-clickable:hover { background: rgba(203,166,247,0.06); }

#hyprland-root .hypr-irc-ts { color: var(--c-overlay0); font-size: 10px; flex-shrink: 0; }
#hyprland-root .hypr-irc-nick { color: var(--c-mauve); font-weight: 700; flex-shrink: 0; }
#hyprland-root .hypr-irc-msg { color: var(--c-text); flex: 1; min-width: 0; }

#hyprland-root .hypr-irc-sys { color: var(--c-overlay1); font-style: italic; font-size: 11px; }
#hyprland-root .hypr-irc-sysrow { padding: 1px 12px; align-items: center; }
#hyprland-root .hypr-irc-seprow { padding: 4px 12px; }
#hyprland-root .hypr-irc-sep-line { color: var(--c-surface2); font-size: 10px; letter-spacing: 0.06em; }

#hyprland-root .hypr-irc-back {
    background: none; border: none;
    color: var(--c-sapphire);
    font-family: var(--font); font-size: 11px;
    cursor: pointer; padding: 0; outline: none;
}
#hyprland-root .hypr-irc-back:hover { color: var(--c-blue); text-decoration: underline; }

#hyprland-root .hypr-irc-extlink { color: var(--c-blue); text-decoration: none; }
#hyprland-root .hypr-irc-extlink:hover { text-decoration: underline; }

#hyprland-root .hypr-irc-content {
    display: block;
    padding: 6px 12px 6px 28px;
    color: var(--c-subtext0);
    font-size: 11px;
    line-height: 1.7;
    border-left: 2px solid var(--c-surface1);
    margin: 2px 12px 2px 12px;
    overflow: auto;
    max-height: 240px;
    scrollbar-width: thin;
    scrollbar-color: var(--c-surface1) transparent;
}
#hyprland-root .hypr-irc-content * { max-width: 100%; }
#hyprland-root .hypr-irc-content p { margin: 0 0 5px; }
#hyprland-root .hypr-irc-content h1,
#hyprland-root .hypr-irc-content h2,
#hyprland-root .hypr-irc-content h3 { font-size: 12px; color: var(--c-text); margin: 6px 0 3px; }
#hyprland-root .hypr-irc-content code { background: var(--c-surface1); border-radius: 3px; padding: 1px 4px; font-size: 10.5px; }
#hyprland-root .hypr-irc-content a { color: var(--c-blue); }
#hyprland-root .hypr-irc-content img { max-width: 100%; border-radius: 4px; }

#hyprland-root .hypr-irc-inputbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-top: 1px solid var(--c-surface0);
    background: rgba(17,17,27,0.55);
    flex-shrink: 0;
}
#hyprland-root .hypr-irc-prompt { color: var(--c-mauve); font-weight: 700; flex-shrink: 0; }
#hyprland-root .hypr-irc-sugginput {
    flex: 1; background: none; border: none;
    color: var(--c-text); font-family: var(--font); font-size: 11px;
    outline: none; padding: 2px 0;
}
#hyprland-root .hypr-irc-sugginput::placeholder { color: var(--c-overlay0); }
#hyprland-root .hypr-irc-sendbtn {
    background: rgba(203,166,247,0.12);
    border: 1px solid rgba(203,166,247,0.25);
    color: var(--c-mauve); font-family: var(--font); font-size: 10px;
    padding: 3px 10px; border-radius: 4px; cursor: pointer; outline: none;
    transition: background 0.15s;
}
#hyprland-root .hypr-irc-sendbtn:hover { background: rgba(203,166,247,0.22); }
#hyprland-root .hypr-irc-sendbtn:disabled { opacity: 0.45; cursor: default; }

#hyprland-root .hypr-irc-filterrow { display: flex; gap: 4px; padding: 3px 12px; flex-wrap: nowrap; align-items: center; }
#hyprland-root .hypr-irc-filterbtn {
    background: none; border: 1px solid var(--c-surface1);
    color: var(--c-overlay0); font-family: var(--font); font-size: 10px;
    padding: 2px 7px; border-radius: 3px; cursor: pointer; outline: none;
    transition: color 0.12s, border-color 0.12s, background 0.12s;
}
#hyprland-root .hypr-irc-filterbtn:hover { color: var(--c-subtext0); }
#hyprland-root .hypr-irc-filterbtn.active { color: var(--c-mauve); border-color: var(--c-mauve); background: rgba(203,166,247,0.08); }

#hyprland-root .hypr-irc-suggrow { flex-wrap: nowrap; }
#hyprland-root .hypr-irc-vote {
    background: none; border: 1px solid var(--c-surface1);
    color: var(--c-overlay1); font-family: var(--font); font-size: 10px;
    padding: 1px 5px; border-radius: 3px; cursor: pointer; margin-left: auto;
    flex-shrink: 0; outline: none;
    transition: color 0.12s, border-color 0.12s;
}
#hyprland-root .hypr-irc-vote:hover { color: var(--c-green); border-color: var(--c-green); }
#hyprland-root .hypr-irc-vote:disabled { opacity: 0.4; cursor: default; }
#hyprland-root .hypr-irc-badge { font-size: 10px; font-style: italic; }
#hyprland-root .hypr-irc-sugg-body { color: var(--c-overlay1); font-size: 10.5px; }

/* ────────────────────────────────────────────────────────────
   old .hypr-blog-* kept for reference (unused after IRC rewrite)
   ────────────────────────────────────────────────────────────*/
#hyprland-root .hypr-blog-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

#hyprland-root .hypr-blog-tabbar {
    display: flex;
    gap: 2px;
    padding: 6px 8px 0;
    border-bottom: 1px solid var(--c-surface0);
    background: rgba(17, 17, 27, 0.4);
    flex-shrink: 0;
}

#hyprland-root .hypr-blog-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--c-overlay0);
    font-family: var(--font);
    font-size: 11px;
    padding: 5px 12px 6px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    outline: none;
    letter-spacing: 0.04em;
}
#hyprland-root .hypr-blog-tab:hover { color: var(--c-subtext1); }
#hyprland-root .hypr-blog-tab.active {
    color: var(--c-mauve);
    border-bottom-color: var(--c-mauve);
}

#hyprland-root .hypr-blog-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

#hyprland-root .hypr-blog-pane {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    display: flex;
    scrollbar-width: thin;
    scrollbar-color: var(--c-surface1) transparent;
}
#hyprland-root .hypr-blog-pane::-webkit-scrollbar { width: 4px; }
#hyprland-root .hypr-blog-pane::-webkit-scrollbar-thumb { background: var(--c-surface1); border-radius: 2px; }

/* ── Posts tab ── */
#hyprland-root .hypr-blog-search-row {
    padding: 8px 10px 4px;
    flex-shrink: 0;
}
#hyprland-root .hypr-blog-search {
    width: 100%;
    box-sizing: border-box;
    background: var(--c-surface0);
    border: 1px solid var(--c-surface1);
    border-radius: 6px;
    color: var(--c-text);
    font-family: var(--font);
    font-size: 11px;
    padding: 5px 10px;
    outline: none;
    transition: border-color 0.15s;
}
#hyprland-root .hypr-blog-search:focus { border-color: var(--c-mauve); }
#hyprland-root .hypr-blog-search::placeholder { color: var(--c-overlay0); }

#hyprland-root .hypr-blog-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 6px 10px;
    overflow-y: auto;
}
#hyprland-root .hypr-blog-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(49, 50, 68, 0.35);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}
#hyprland-root .hypr-blog-row:hover {
    background: rgba(49, 50, 68, 0.7);
    border-color: var(--c-surface1);
}
#hyprland-root .hypr-blog-row-title { font-size: 12px; color: var(--c-text); font-weight: 700; }
#hyprland-root .hypr-blog-row-meta  { font-size: 10px; color: var(--c-overlay0); }

#hyprland-root .hypr-blog-detail {
    flex: 1;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}
#hyprland-root .hypr-blog-back {
    background: none;
    border: none;
    color: var(--c-sapphire);
    font-family: var(--font);
    font-size: 11px;
    padding: 8px 10px;
    cursor: pointer;
    text-align: left;
    flex-shrink: 0;
    outline: none;
}
#hyprland-root .hypr-blog-back:hover { color: var(--c-blue); }
#hyprland-root .hypr-blog-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--c-surface1) transparent;
}
#hyprland-root .hypr-blog-detail-title { font-size: 14px; font-weight: 900; color: var(--c-text); }
#hyprland-root .hypr-blog-detail-meta  { font-size: 10px; color: var(--c-overlay0); margin-top: -4px; }
#hyprland-root .hypr-blog-detail-content {
    font-size: 11px;
    color: var(--c-subtext1);
    line-height: 1.7;
}
#hyprland-root .hypr-blog-detail-link {
    color: var(--c-mauve);
    font-size: 11px;
    text-decoration: none;
    margin-top: 8px;
}
#hyprland-root .hypr-blog-detail-link:hover { text-decoration: underline; }

#hyprland-root .hypr-blog-loading { padding: 14px; font-size: 11px; color: var(--c-overlay0); }
#hyprland-root .hypr-blog-empty   { padding: 14px; font-size: 11px; color: var(--c-overlay0); }

/* ── About tab ── */
#hyprland-root .hypr-about-avatar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
#hyprland-root .hypr-about-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--c-mauve);
    object-fit: cover;
    flex-shrink: 0;
}
#hyprland-root .hypr-about-name { font-size: 13px; }
#hyprland-root .hypr-about-bio {
    font-size: 11px;
    color: var(--c-subtext1);
    line-height: 1.75;
}
#hyprland-root .hypr-about-links { display: flex; flex-direction: column; gap: 4px; }
#hyprland-root .hypr-about-link {
    color: var(--c-sapphire);
    font-size: 11px;
    text-decoration: none;
}
#hyprland-root .hypr-about-link:hover { color: var(--c-blue); text-decoration: underline; }

/* ── Status tab ── */
#hyprland-root .hypr-status-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
#hyprland-root .hypr-status-avatar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
#hyprland-root .hypr-status-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--c-surface1);
}
#hyprland-root .hypr-status-info { display: flex; flex-direction: column; gap: 3px; }
#hyprland-root .hypr-status-username { font-size: 13px; font-weight: 700; color: var(--c-text); }
#hyprland-root .hypr-status-row { display: flex; align-items: center; gap: 6px; }
#hyprland-root .hypr-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
#hyprland-root .hypr-status-text { font-size: 10px; color: var(--c-overlay0); text-transform: capitalize; }
#hyprland-root .hypr-status-activity {
    background: rgba(49, 50, 68, 0.5);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1px solid var(--c-surface0);
}
#hyprland-root .hypr-status-act-type   { font-size: 9px; color: var(--c-overlay0); text-transform: uppercase; letter-spacing: 0.07em; }
#hyprland-root .hypr-status-act-name   { font-size: 12px; color: var(--c-text); font-weight: 700; }
#hyprland-root .hypr-status-act-detail { font-size: 10px; color: var(--c-subtext0); }
#hyprland-root .hypr-status-custom     { font-size: 11px; color: var(--c-overlay1); font-style: italic; }

/* ── Suggestions tab ── */
#hyprland-root .hypr-sugg-filters {
    display: flex;
    gap: 4px;
    padding: 8px 8px 4px;
    flex-shrink: 0;
}
#hyprland-root .hypr-sugg-filter {
    background: none;
    border: 1px solid var(--c-surface0);
    border-radius: 4px;
    color: var(--c-overlay0);
    font-family: var(--font);
    font-size: 10px;
    padding: 3px 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    outline: none;
}
#hyprland-root .hypr-sugg-filter:hover { background: rgba(255,255,255,0.04); color: var(--c-subtext1); }
#hyprland-root .hypr-sugg-filter.active { background: rgba(203,166,247,0.15); color: var(--c-mauve); border-color: rgba(203,166,247,0.3); }

#hyprland-root .hypr-sugg-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 8px;
    overflow-y: auto;
    min-height: 60px;
}
#hyprland-root .hypr-sugg-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(49, 50, 68, 0.35);
    border-radius: 6px;
    border: 1px solid transparent;
    transition: background 0.15s;
}
#hyprland-root .hypr-sugg-row:hover { background: rgba(49, 50, 68, 0.6); }
#hyprland-root .hypr-sugg-left { flex: 1; display: flex; flex-direction: column; gap: 3px; }
#hyprland-root .hypr-sugg-title { font-size: 11px; font-weight: 700; color: var(--c-text); }
#hyprland-root .hypr-sugg-body  { font-size: 10px; color: var(--c-subtext0); }
#hyprland-root .hypr-sugg-badge { font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }
#hyprland-root .hypr-sugg-vote {
    background: rgba(203,166,247,0.1);
    border: 1px solid rgba(203,166,247,0.2);
    border-radius: 4px;
    color: var(--c-mauve);
    font-family: var(--font);
    font-size: 10px;
    padding: 4px 8px;
    cursor: pointer;
    white-space: nowrap;
    align-self: flex-start;
    transition: background 0.15s;
    outline: none;
}
#hyprland-root .hypr-sugg-vote:hover   { background: rgba(203,166,247,0.2); }
#hyprland-root .hypr-sugg-vote:disabled { opacity: 0.4; cursor: default; }

#hyprland-root .hypr-sugg-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: rgba(17, 17, 27, 0.4);
    border-top: 1px solid var(--c-surface0);
    flex-shrink: 0;
}
#hyprland-root .hypr-sugg-form-label { font-size: 10px; color: var(--c-overlay0); text-transform: uppercase; letter-spacing: 0.07em; }
#hyprland-root .hypr-sugg-input,
#hyprland-root .hypr-sugg-textarea {
    background: var(--c-surface0);
    border: 1px solid var(--c-surface1);
    border-radius: 5px;
    color: var(--c-text);
    font-family: var(--font);
    font-size: 11px;
    padding: 5px 8px;
    outline: none;
    transition: border-color 0.15s;
    resize: none;
}
#hyprland-root .hypr-sugg-input:focus,
#hyprland-root .hypr-sugg-textarea:focus { border-color: var(--c-mauve); }
#hyprland-root .hypr-sugg-textarea { min-height: 50px; }
#hyprland-root .hypr-sugg-submit {
    background: rgba(203,166,247,0.15);
    border: 1px solid rgba(203,166,247,0.3);
    border-radius: 5px;
    color: var(--c-mauve);
    font-family: var(--font);
    font-size: 11px;
    padding: 5px 0;
    cursor: pointer;
    transition: background 0.15s;
    outline: none;
}
#hyprland-root .hypr-sugg-submit:hover { background: rgba(203,166,247,0.28); }
#hyprland-root .hypr-sugg-msg { font-size: 10px; color: var(--c-overlay0); min-height: 14px; }

/* ── toggled state for latte sys pill ── */
#hyprland-root .hypr-sys-pill.hypr-toggle-btn { cursor: pointer; }
#hyprland-root .hypr-sys-pill.hypr-toggle-btn.toggled {
    background: linear-gradient(90deg, var(--c-mauve), #d9b4ff);
    color: var(--c-crust);
}
#hyprland-root .hypr-sys-pill.hypr-toggle-btn:not(.toggled):hover {
    background: rgba(203,166,247,0.14);
    color: var(--c-mauve);
}

/* ── sys pill entrance delay update (now 5 pills) ── */
#hyprland-root .hypr-sys-pill:nth-child(5) { animation-delay: 310ms; }

/* ── context menu ── */
#hyprland-root .hypr-context-menu {
    position: fixed;
    min-width: 174px;
    background: rgba(24, 24, 37, 0.97);
    border: 1px solid rgba(205, 214, 244, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0,0,0,0.35);
    z-index: 22000;
    overflow: hidden;
    padding: 4px;
    animation: hypr-popup-in 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
    pointer-events: all;
}
#hyprland-root .hypr-ctx-item {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--c-text);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    text-align: left;
    cursor: pointer;
    border-radius: 7px;
    outline: none;
    transition: background 0.12s, color 0.12s;
    letter-spacing: 0.02em;
}
#hyprland-root .hypr-ctx-item:hover {
    background: rgba(203,166,247,0.14);
    color: var(--c-mauve);
}
#hyprland-root .hypr-ctx-sep {
    height: 1px;
    background: rgba(205, 214, 244, 0.07);
    margin: 3px 6px;
}

/* ── notification toast ── */
#hyprland-root .hypr-notif {
    position: fixed;
    bottom: 36px;
    right: 20px;
    background: rgba(24, 24, 37, 0.95);
    border: 1px solid rgba(203, 166, 247, 0.22);
    border-radius: 10px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 6px 32px rgba(0,0,0,0.55);
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--c-text);
    z-index: 21000;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.22,1,0.36,1);
    pointer-events: none;
    user-select: none;
}
#hyprland-root .hypr-notif.hypr-notif-show {
    opacity: 1;
    transform: translateY(0);
}

/* ── inactive window dimming ── */
#hyprland-root .hypr-window:not(.focused) {
    opacity: 0.84;
}
#hyprland-root .hypr-window.focused {
    border-image: linear-gradient(135deg, var(--c-mauve), var(--c-blue)) 1;
    border-color: transparent; /* fallback for browsers that don't support border-image on rounded corners */
    box-shadow:
        0 0 0 1.5px rgba(203,166,247,0.45),
        0 0 0 1px rgba(137,180,250,0.20),
        0 6px 48px rgba(0,0,0,0.70);
}

/* ── Catppuccin Latte override ── */
#hyprland-root.hypr-latte {
    --c-base:       #eff1f5;
    --c-mantle:     #e6e9ef;
    --c-crust:      #dce0e8;
    --c-surface0:   #ccd0da;
    --c-surface1:   #bcc0cc;
    --c-surface2:   #acb0be;
    --c-overlay0:   #9ca0b0;
    --c-overlay1:   #8c8fa1;
    --c-text:       #4c4f69;
    --c-subtext0:   #6c6f85;
    --c-subtext1:   #5c5f77;
    --c-blue:       #1e66f5;
    --c-sapphire:   #209fb5;
    --c-mauve:      #8839ef;
    --c-pink:       #ea76cb;
    --c-peach:      #fe640b;
    --c-green:      #40a02b;
    --c-red:        #d20f39;
    --c-yellow:     #df8e1d;
    --c-teal:       #179299;
    --pill-bg:      rgba(239, 241, 245, 0.92);
    --pill-border:  rgba(76, 79, 105, 0.14);
}
#hyprland-root.hypr-latte .hypr-wallpaper {
    background:
        radial-gradient(ellipse 90% 60% at 20% 80%, rgba(136,57,239,0.07) 0%, transparent 55%),
        radial-gradient(ellipse 70% 90% at 85% 15%, rgba(30,102,245,0.05) 0%, transparent 50%),
        linear-gradient(160deg, #dce0e8 0%, #eff1f5 50%, #e6e9ef 100%);
}
#hyprland-root.hypr-latte .hypr-wallpaper::after { opacity: 0.012; }
#hyprland-root.hypr-latte .hypr-window {
    background: rgba(239, 241, 245, 0.96);
    border-color: rgba(76, 79, 105, 0.14);
    box-shadow: 0 4px 32px rgba(0,0,0,0.12);
}
#hyprland-root.hypr-latte .hypr-window.focused {
    box-shadow:
        0 0 0 1.5px rgba(136,57,239,0.45),
        0 0 0 1px rgba(30,102,245,0.18),
        0 6px 36px rgba(0,0,0,0.15);
}
#hyprland-root.hypr-latte .hypr-titlebar {
    background: rgba(220, 224, 232, 0.85);
    border-bottom-color: rgba(76, 79, 105, 0.10);
}
#hyprland-root.hypr-latte .hypr-terminal-win { background: rgba(220, 224, 232, 0.98); }
#hyprland-root.hypr-latte .hypr-statusline {
    background: rgba(220, 224, 232, 0.88);
    border-top-color: rgba(76, 79, 105, 0.10);
}
#hyprland-root.hypr-latte .hypr-popup {
    background: rgba(239, 241, 245, 0.98);
    border-color: rgba(76, 79, 105, 0.12);
}
#hyprland-root.hypr-latte .hypr-context-menu {
    background: rgba(239, 241, 245, 0.98);
    border-color: rgba(76, 79, 105, 0.12);
}
#hyprland-root.hypr-latte .hypr-notif {
    background: rgba(239, 241, 245, 0.97);
    border-color: rgba(136, 57, 239, 0.25);
}

/* ── Terminal lyrics output ── */
#hyprland-root .hypr-lyric-line {
    color: var(--c-mauve);
    opacity: 0.85;
    font-style: italic;
    padding-left: 2px;
}
#hyprland-root .hypr-lyric-prefix {
    color: var(--c-pink);
    font-style: normal;
    margin-right: 2px;
}

/* ── Flavours dropdown ── */
#hyprland-root .hypr-flavours-dropdown {
    position: absolute;
    min-width: 180px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 20100;
}
#hyprland-root .hypr-flavours-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--c-text);
    font-family: var(--font);
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
    white-space: nowrap;
}
#hyprland-root .hypr-flavours-item:hover {
    background: var(--c-surface0);
}
#hyprland-root .hypr-flavours-item.active {
    background: var(--c-surface1);
    color: var(--c-mauve);
}
#hyprland-root .hypr-flavours-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
