:root {
    --bg: #080a10;
    --bg-surface: #111622;
    --bg-elevated: #161c2a;
    --bg-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.11);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f4f6fb;
    --text-muted: #9ca8c2;
    --accent: #8b7cff;
    --accent-2: #4ecdc4;
    --accent-soft: rgba(139, 124, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 14px;
    --radius-sm: 8px;
    --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(139, 124, 255, 0.09), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 50%, rgba(78, 205, 196, 0.05), transparent 50%),
        var(--bg);
    color: var(--text);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow--1 {
    width: 560px;
    height: 560px;
    top: -160px;
    left: -120px;
    background: rgba(139, 124, 255, 0.28);
}

.bg-glow--2 {
    width: 500px;
    height: 500px;
    right: -120px;
    bottom: -100px;
    background: rgba(78, 205, 196, 0.2);
}

.bg-glow--3 {
    width: 420px;
    height: 420px;
    left: 42%;
    top: 38%;
    background: rgba(255, 139, 106, 0.1);
}

.page {
    position: relative;
    z-index: 1;
    width: min(1440px, calc(100% - 24px));
    margin: 0 auto;
    padding: 16px 0 40px;
}

.hero {
    margin-bottom: 12px;
}

.hero__bar {
    display: grid;
    grid-template-columns: auto auto auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px 14px;
    min-height: 36px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero__col--menu {
    padding-right: 10px;
    border-right: 1px solid var(--border);
}

.menu-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.menu-btn__line {
    display: block;
    width: 16px;
    height: 2px;
    margin: 0 auto;
    border-radius: 1px;
    background: var(--text);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.app-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 210;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: #121722;
    border-right: 1px solid var(--border);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.45);
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    display: flex;
    flex-direction: column;
}

.app-menu.is-open {
    transform: translateX(0);
}

body.menu-open {
    overflow: hidden;
}

.app-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--border);
}

.app-menu__brand {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.app-menu__close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.app-menu__close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.app-menu__body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 10px 20px;
}

.app-menu__section {
    margin: 12px 8px 6px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.app-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.84rem;
    transition: background 0.15s;
}

.app-menu__link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.app-menu__link--external::after {
    content: "↗";
    font-size: 0.72rem;
    color: var(--text-muted);
}

.app-menu__link--off {
    opacity: 0.55;
}

.app-menu__link--off .app-menu__folder-meta::before {
    content: "oculta · ";
    font-weight: 400;
    text-transform: lowercase;
}

.app-menu__folder-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-menu__folder-meta {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.app-menu__empty {
    margin: 4px 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.subheader__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.subheader__top .back-link {
    margin-bottom: 0;
}

.hero__col--time {
    justify-self: start;
    padding-right: 12px;
    border-right: 1px solid var(--border);
}

.hero__col--date {
    justify-self: start;
    min-width: 5rem;
    padding-right: 12px;
    border-right: 1px solid var(--border);
}

.hero__col--search {
    min-width: 0;
    width: 100%;
    padding: 0 4px;
}

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.search--local {
    position: relative;
}

.search--local:focus-within {
    border-color: rgba(78, 205, 196, 0.55);
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.18);
}

.search--local .search__icon {
    color: var(--accent-2);
}

.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 200;
    max-height: min(60vh, 320px);
    overflow-y: auto;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: rgba(12, 15, 24, 0.98);
    box-shadow: var(--shadow);
    scrollbar-width: thin;
}

.search-results__empty {
    margin: 0;
    padding: 10px 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.search-results__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

.search-results__item:hover,
.search-results__item.is-active {
    background: var(--bg-hover);
}

.search-results__type {
    flex-shrink: 0;
    margin-top: 1px;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
}

.search-results__type--link { color: #b8adff; background: rgba(139, 124, 255, 0.12); }
.search-results__type--collection { color: #9ed4ff; background: rgba(78, 160, 255, 0.12); }
.search-results__type--uptime { color: #7ee0a8; background: rgba(94, 214, 140, 0.12); }
.search-results__type--wordpress { color: #8ec8f0; background: rgba(33, 117, 155, 0.18); }
.search-results__type--domain { color: #ffd54a; background: rgba(255, 200, 60, 0.12); }
.search-results__type--event { color: #d4c4ff; background: rgba(139, 124, 255, 0.1); }

.search-results__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.search-results__title {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-results__subtitle {
    font-size: 0.66rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero__col--weather {
    justify-self: end;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

.weather {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    line-height: 1;
    cursor: default;
}

.weather__icon {
    font-size: 0.9rem;
    line-height: 1;
}

.weather__temp {
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #ffe8a8;
}

.weather__city {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero__col--links {
    justify-self: end;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

.hero__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    white-space: nowrap;
}

.hero__link {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    line-height: 1;
    transition: color 0.15s;
}

.hero__link:hover {
    color: var(--accent);
}

.hero__link--muted {
    color: var(--text-muted);
    font-weight: 400;
    cursor: default;
}

.hero__link--muted:hover {
    color: var(--accent-2);
}

.clock__time {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: #fff;
}

.clock__date {
    display: block;
    color: var(--accent-2);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1;
    text-transform: capitalize;
    white-space: nowrap;
}

.search {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.search:focus-within {
    border-color: rgba(139, 124, 255, 0.55);
    background: rgba(0, 0, 0, 0.38);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.search__icon {
    width: 13px;
    height: 13px;
    color: var(--accent);
    flex-shrink: 0;
    opacity: 0.85;
}

.search__input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.8rem;
    outline: none;
}

.search__input::placeholder {
    color: var(--text-muted);
}

.status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
    align-items: stretch;
}

.status-panel {
    display: flex;
    align-items: stretch;
    min-width: 0;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.status-panel--uptime {
    border-color: rgba(94, 214, 140, 0.18);
}

.status-panel--domains {
    border-color: rgba(255, 176, 84, 0.18);
}

.status-panel--calendar {
    margin-bottom: 12px;
    border-color: rgba(139, 124, 255, 0.22);
}

.status-panel--calendar .status-panel__tag {
    color: rgba(167, 154, 255, 0.95);
    border-right-color: rgba(139, 124, 255, 0.18);
    background: rgba(139, 124, 255, 0.08);
}

.agenda-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 4px 8px 4px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.agenda-bar::-webkit-scrollbar {
    display: none;
}

.agenda-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    height: 28px;
    max-width: 18rem;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid rgba(139, 124, 255, 0.22);
    background: rgba(139, 124, 255, 0.08);
}

.agenda-pill--now {
    border-color: rgba(139, 124, 255, 0.55);
    background: rgba(139, 124, 255, 0.18);
    box-shadow: 0 0 14px rgba(139, 124, 255, 0.15);
}

.agenda-pill__time {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #b8adff;
}

.agenda-pill__title {
    font-size: 0.72rem;
    font-weight: 600;
    color: #ebe7ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agenda-pill--now .agenda-pill__time {
    color: #fff;
}

.status-panel__tag {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    user-select: none;
}

.status-panel--uptime .status-panel__tag {
    color: rgba(94, 214, 140, 0.85);
    border-right-color: rgba(94, 214, 140, 0.15);
    background: rgba(94, 214, 140, 0.06);
}

.status-panel--domains .status-panel__tag {
    color: rgba(255, 176, 84, 0.9);
    border-right-color: rgba(255, 176, 84, 0.15);
    background: rgba(255, 176, 84, 0.06);
}

.status-panel__scroll {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.uptime-bar,
.domains-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    min-height: 34px;
    padding: 4px 8px 4px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.uptime-bar::-webkit-scrollbar,
.domains-bar::-webkit-scrollbar {
    display: none;
}

@media (max-width: 720px) {
    .status-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.uptime-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    height: 26px;
    padding: 0 9px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    text-decoration: none;
    color: var(--text);
    font-size: 0.72rem;
    line-height: 1;
    transition: border-color 0.15s, background 0.15s;
}

.uptime-pill:hover {
    background: #1a2132;
    border-color: var(--border-strong);
}

.uptime-pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.uptime-pill__name {
    font-weight: 600;
    color: #eef1f8;
    max-width: 11rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uptime-pill__status {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.9;
}

.uptime-pill--up {
    border-color: rgba(94, 214, 140, 0.28);
    background: rgba(94, 214, 140, 0.07);
}

.uptime-pill--up .uptime-pill__dot {
    background: #5ed68c;
    box-shadow: 0 0 8px rgba(94, 214, 140, 0.65);
}

.uptime-pill--up .uptime-pill__status {
    color: #5ed68c;
}

.uptime-pill--down,
.uptime-pill.is-down {
    border-color: rgba(255, 95, 95, 0.7);
    background: rgba(255, 95, 95, 0.2);
    box-shadow: 0 0 0 1px rgba(255, 95, 95, 0.25), 0 0 18px rgba(255, 95, 95, 0.2);
}

.uptime-pill--down .uptime-pill__dot,
.uptime-pill.is-down .uptime-pill__dot {
    background: #ff5f5f;
    box-shadow: 0 0 10px rgba(255, 95, 95, 0.9);
    animation: status-dot-pulse 1.4s ease-in-out infinite;
}

.uptime-pill--down .uptime-pill__name,
.uptime-pill.is-down .uptime-pill__name {
    color: #fff;
    font-weight: 700;
}

.uptime-pill--down .uptime-pill__status,
.uptime-pill.is-down .uptime-pill__status {
    color: #ff9a9a;
    font-weight: 700;
}

.uptime-pill--warn,
.uptime-pill.is-warn {
    border-color: rgba(255, 176, 84, 0.5);
    background: rgba(255, 176, 84, 0.14);
}

.uptime-pill--warn .uptime-pill__dot {
    background: #ffb054;
    box-shadow: 0 0 8px rgba(255, 176, 84, 0.55);
}

.uptime-pill--warn .uptime-pill__status {
    color: #ffb054;
}

.uptime-pill--paused,
.uptime-pill--unknown {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.uptime-pill--paused .uptime-pill__dot,
.uptime-pill--unknown .uptime-pill__dot {
    background: #6b758c;
}

.uptime-pill--paused .uptime-pill__status,
.uptime-pill--unknown .uptime-pill__status {
    color: var(--text-muted);
}

.wp-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.wp-bar::-webkit-scrollbar {
    display: none;
}

.wp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    height: 28px;
    padding: 0 4px 0 8px;
    border-radius: 6px;
    border: 1px solid rgba(33, 117, 155, 0.35);
    background: rgba(33, 117, 155, 0.1);
}

.wp-chip__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wp-chip__dot--up {
    background: #5ed68c;
    box-shadow: 0 0 8px rgba(94, 214, 140, 0.65);
}

.wp-chip__dot--down {
    background: #ff5f5f;
    box-shadow: 0 0 8px rgba(255, 95, 95, 0.65);
}

.wp-chip__dot--warn {
    background: #ffb054;
    box-shadow: 0 0 8px rgba(255, 176, 84, 0.55);
}

.wp-chip__dot--paused,
.wp-chip__dot--unknown {
    background: #6b758c;
}

.wp-chip--up {
    border-color: rgba(94, 214, 140, 0.3);
}

.wp-chip--down,
.wp-chip.is-down {
    border-color: rgba(255, 95, 95, 0.7);
    background: rgba(255, 95, 95, 0.2);
    box-shadow: 0 0 0 1px rgba(255, 95, 95, 0.25), 0 0 16px rgba(255, 95, 95, 0.18);
}

.wp-chip--down .wp-chip__name,
.wp-chip.is-down .wp-chip__name {
    color: #fff;
}

.wp-chip--down .wp-chip__dot--down,
.wp-chip.is-down .wp-chip__dot--down {
    animation: status-dot-pulse 1.4s ease-in-out infinite;
}

.wp-chip--warn,
.wp-chip.is-warn {
    border-color: rgba(255, 176, 84, 0.5);
    background: rgba(255, 176, 84, 0.12);
}

@keyframes status-dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.25);
        opacity: 0.75;
    }
}

.wp-chip--paused,
.wp-chip--unknown {
    border-color: var(--border);
}

.wp-chip__name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #b8d9f0;
    white-space: nowrap;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wp-chip__actions {
    display: inline-flex;
    gap: 3px;
}

.wp-chip__link {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #8ec8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.15s, color 0.15s;
}

.wp-chip__link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.wp-chip__link--admin {
    color: #ffc98a;
    border-color: rgba(255, 176, 84, 0.25);
    background: rgba(255, 176, 84, 0.1);
}

.wp-chip__link--admin:hover {
    background: rgba(255, 176, 84, 0.18);
    color: #ffe2b8;
}

.wp-chip--add {
    justify-content: center;
    width: 28px;
    padding: 0;
    border-style: dashed;
    border-color: var(--border);
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
}

.domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 176, 84, 0.25);
    background: rgba(255, 176, 84, 0.06);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.domain-pill:hover {
    background: rgba(255, 176, 84, 0.12);
}

.domain-pill__name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #f0d4a8;
    white-space: nowrap;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.domain-pill__expiry {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.domain-pill--ok {
    border-color: rgba(94, 214, 140, 0.25);
    background: rgba(94, 214, 140, 0.06);
}

.domain-pill--ok .domain-pill__name {
    color: #b8f0d0;
}

.domain-pill--ok .domain-pill__expiry {
    color: #5ed68c;
}

.domain-pill--warn,
.domain-pill.is-warn {
    border-color: rgba(255, 200, 60, 0.55);
    background: rgba(255, 200, 60, 0.16);
}

.domain-pill--warn .domain-pill__name,
.domain-pill.is-warn .domain-pill__name {
    color: #ffe9a8;
}

.domain-pill--warn .domain-pill__expiry,
.domain-pill.is-warn .domain-pill__expiry {
    color: #ffd54a;
    font-weight: 700;
}

.domain-pill--critical,
.domain-pill--expired,
.domain-pill.is-alert {
    border-color: rgba(255, 95, 95, 0.7);
    background: rgba(255, 95, 95, 0.18);
    box-shadow: 0 0 0 1px rgba(255, 95, 95, 0.2), 0 0 14px rgba(255, 95, 95, 0.15);
}

.domain-pill--critical .domain-pill__name,
.domain-pill--expired .domain-pill__name,
.domain-pill.is-alert .domain-pill__name {
    color: #fff;
}

.domain-pill--critical .domain-pill__expiry,
.domain-pill--expired .domain-pill__expiry,
.domain-pill.is-alert .domain-pill__expiry {
    color: #ff9a9a;
    font-weight: 700;
}

.wp-chip--add:hover {
    color: var(--accent);
    border-color: rgba(139, 124, 255, 0.4);
    background: rgba(139, 124, 255, 0.08);
}

.wp-admin-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.wp-admin-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.wp-admin-item__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wp-admin-item__info strong {
    font-size: 0.9rem;
}

.wp-admin-item__info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.wp-admin-item__links {
    display: flex;
    gap: 6px;
}

.wp-admin-item__delete {
    margin: 0;
}

.btn--sm {
    padding: 5px 10px;
    font-size: 0.78rem;
    border-radius: 6px;
}

.btn--admin {
    border-color: rgba(255, 176, 84, 0.3);
    color: #ffc98a;
}

.btn--danger {
    border-color: rgba(255, 95, 95, 0.35);
    color: #ff8a8a;
    padding: 5px 9px;
    line-height: 1;
}

.widgets__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.widget {
    background: linear-gradient(165deg, var(--bg-elevated) 0%, #121722 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 12px 10px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.widget::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--widget-accent, var(--accent)), color-mix(in srgb, var(--widget-accent, var(--accent)) 40%, transparent));
    opacity: 1;
}

.widget::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 70% at 0% 0%, var(--widget-accent, var(--accent)), transparent 62%);
    opacity: 0.07;
    pointer-events: none;
}

.widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--widget-accent, var(--accent)) 28%, var(--border));
    position: relative;
    z-index: 1;
}

.widget__title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.widget__title-wrap > div {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    flex-wrap: wrap;
}

.widget__cover,
.widget__icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--widget-accent, var(--accent)) 30%, transparent);
}

.widget__icon {
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--widget-accent, var(--accent)) 28%, transparent);
    border: 1px solid color-mix(in srgb, var(--widget-accent, var(--accent)) 45%, transparent);
    color: var(--widget-accent, var(--accent));
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.widget__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: color-mix(in srgb, var(--widget-accent, var(--accent)) 18%, #ffffff);
    text-shadow: 0 0 20px color-mix(in srgb, var(--widget-accent, var(--accent)) 35%, transparent);
}

.widget__count {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.widget__count::before {
    content: "·";
    margin-right: 5px;
    opacity: 0.45;
}

.widget__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.widget__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.widget__btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.widget__btn--add {
    color: var(--widget-accent, var(--accent));
    border-color: color-mix(in srgb, var(--widget-accent, var(--accent)) 30%, var(--border));
}

.widget__btn--add:hover {
    background: color-mix(in srgb, var(--widget-accent, var(--accent)) 15%, transparent);
}

.widget__btn--close {
    font-size: 1.1rem;
    font-weight: 400;
}

.widget__btn--close:hover {
    color: #ff8a8a;
    border-color: rgba(255, 95, 95, 0.35);
    background: rgba(255, 95, 95, 0.1);
}

.widget__add-form {
    display: none;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.widget__add-form.is-open {
    display: flex;
}

.widget__add-input {
    width: 100%;
    height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid color-mix(in srgb, var(--widget-accent, var(--accent)) 35%, var(--border));
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font: inherit;
    font-size: 0.78rem;
    outline: none;
}

.widget__add-input:focus {
    border-color: var(--widget-accent, var(--accent));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--widget-accent, var(--accent)) 20%, transparent);
}

.widget--closing {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.widget__more {
    flex-shrink: 0;
    color: var(--widget-accent, var(--accent));
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--widget-accent, var(--accent)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--widget-accent, var(--accent)) 22%, transparent);
    transition: background 0.18s, filter 0.18s;
    position: relative;
    z-index: 1;
}

.widget__more:hover {
    background: color-mix(in srgb, var(--widget-accent, var(--accent)) 20%, transparent);
    filter: brightness(1.08);
}

.widget__empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 4px 0;
    position: relative;
    z-index: 1;
}

.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1px;
    position: relative;
    z-index: 1;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.link-item:hover {
    background: color-mix(in srgb, var(--widget-accent, var(--accent)) 10%, rgba(255, 255, 255, 0.04));
}

.widget .link-item__domain {
    display: none;
}

.link-item__favicon {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    flex-shrink: 0;
}

.link-item__body {
    min-width: 0;
    flex: 1;
}

.link-item__title {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e8ecf4;
}

.link-item__domain {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-item__arrow {
    width: 13px;
    height: 13px;
    color: var(--widget-accent, var(--accent));
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.link-item:hover .link-item__arrow {
    opacity: 0.85;
    transform: none;
}

.subheader {
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 14px;
    transition: color 0.2s;
}

.back-link svg {
    width: 18px;
    height: 18px;
}

.back-link:hover {
    color: var(--accent);
}

.subheader__title-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.subheader__cover {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.subheader__title {
    margin: 0;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    letter-spacing: -0.03em;
}

.subheader__subtitle {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.collection-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.collection-card {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.collection-card:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
    background: #1a2132;
}

.collection-card__thumb {
    width: 88px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
}

.collection-card__thumb--placeholder {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
}

.collection-card__title {
    margin: 0 0 3px;
    font-size: 0.95rem;
}

.collection-card__excerpt {
    margin: 0 0 6px;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.collection-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.collection-card__arrow {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.empty-state {
    text-align: center;
    padding: 40px 18px;
    border-radius: var(--radius);
    border: 1px dashed var(--border-strong);
    background: var(--bg-surface);
}

.empty-state h2 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0 0 16px;
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--border-strong);
}

.btn--primary {
    background: linear-gradient(135deg, #8b7cff, #6b5ce7);
    border-color: transparent;
    color: white;
}

.btn--primary:hover {
    filter: brightness(1.08);
}

.admin-page {
    display: grid;
    gap: 14px;
    max-width: 720px;
}

.admin-card {
    padding: 16px;
    border-radius: var(--radius);
    background: var(--bg-surface);
    border: 1px solid var(--border);
}

.admin-card h2 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.admin-card__desc {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.admin-actions {
    margin-bottom: 10px;
}

.admin-form label {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.88rem;
}

.admin-form input[type="number"] {
    width: 120px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    font: inherit;
}

.admin-checklist {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    gap: 6px;
}

.admin-checklist label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
}

.admin-checklist small {
    margin-left: auto;
    color: var(--text-muted);
}

.admin-details summary {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.code-block {
    margin: 8px 0 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    overflow-x: auto;
    font-size: 0.78rem;
    color: #c8d0e0;
}

.alert {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.alert--ok {
    background: rgba(78, 205, 196, 0.14);
    border-color: rgba(78, 205, 196, 0.4);
}

.alert--error {
    background: rgba(255, 107, 107, 0.14);
    border-color: rgba(255, 107, 107, 0.4);
}

.install-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.install-card {
    max-width: 480px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    text-align: center;
}

.install-card--ok {
    border-color: rgba(78, 205, 196, 0.4);
}

.install-card--error {
    border-color: rgba(255, 107, 107, 0.4);
}

.install-hint {
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.login-card {
    text-align: left;
}

.login-card h1 {
    text-align: center;
}

.login-card .admin-card__desc {
    text-align: center;
}

.btn--block {
    width: 100%;
    margin-top: 4px;
}

.install-form {
    text-align: left;
    margin-top: 14px;
}

.install-form input[type="text"],
.install-form input[type="password"] {
    width: 100%;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    font: inherit;
}

@media (max-width: 1100px) {
    .widgets__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .widgets__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .page {
        width: min(100% - 16px, 1440px);
        padding-top: 12px;
    }

    .hero__bar {
        gap: 8px;
    }

    .hero__link--muted {
        display: none;
    }

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

    .collection-card {
        grid-template-columns: 72px 1fr;
    }

    .collection-card__arrow {
        display: none;
    }

    .collection-card__thumb {
        width: 72px;
        height: 48px;
    }
}

@media (max-width: 560px) {
    .hero__bar {
        gap: 6px 8px;
    }

    .hero__col--date {
        display: none;
    }

    .weather__city {
        display: none;
    }

    .hero__bar {
        grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    }
}
