:root {
    --bg: #0a0a0c;
    --bg-2: #101118;
    --surface: #14161e;
    --surface-2: #1b1e28;
    --elev: #232735;
    --line: #262a36;
    --line-2: #343948;
    --text: #efece2;
    --muted: #a8a49a;
    --faint: #6b675f;
    --accent: #e3f227;
    --accent-2: #ff5722;
    --warn: #ffb84d;
    --danger: #ff3b6b;
    --good: #83e2a0;
    --blue: #7da8ff;
    --purple: #c570ff;
    --cyan: #5dd6e2;
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
    --radius: 18px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --mobile-tabbar-h: 68px;
    --serif: Georgia, Cambria, "Times New Roman", serif;
    --sans:
        ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    --mono:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    --c-kernel: #e3f227;
    --c-security: #ff3b6b;
    --c-distros: #ff5722;
    --c-desktop: #7da8ff;
    --c-homelab: #83e2a0;
    --c-hardware: #ffb84d;
    --c-jobs: #c570ff;
    --c-top: #efece2;
}

* {
    box-sizing: border-box;
}
html {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at 18% -12%,
            rgba(227, 242, 39, 0.13),
            transparent 30rem
        ),
        radial-gradient(
            circle at 88% 0%,
            rgba(255, 87, 34, 0.1),
            transparent 28rem
        ),
        var(--bg);
}
body.has-mobile-tabs {
    padding-bottom: 0;
}
body.search-open {
    overflow: hidden;
}
::selection {
    background: var(--accent);
    color: var(--bg);
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
button,
input,
select,
textarea {
    font: inherit;
}
button {
    cursor: pointer;
    color: inherit;
}
img,
svg {
    max-width: 100%;
}
code {
    font-family: var(--mono);
    color: var(--accent);
}
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(38, 42, 54, 0.84);
    background: rgba(10, 10, 12, 0.88);
    backdrop-filter: blur(18px) saturate(140%);
}
.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}
.brand:hover {
    text-decoration: none;
}
.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    border-radius: 13px;
    background: linear-gradient(
        145deg,
        rgba(227, 242, 39, 0.18),
        rgba(255, 87, 34, 0.05)
    );
    font-family: var(--mono);
    color: var(--accent);
    font-weight: 700;
    letter-spacing: -0.05em;
}
.brand-title {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 700;
    letter-spacing: -0.045em;
    font-size: 24px;
    line-height: 0.9;
}
.brand-subtitle {
    display: block;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 5px;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
}
.nav a {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.nav a:hover,
.nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line);
    text-decoration: none;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.icon-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    transition:
        transform 0.14s ease,
        background 0.14s ease,
        border-color 0.14s ease;
    position: relative;
}
.icon-btn:hover {
    background: var(--surface-2);
    border-color: var(--line-2);
}
.icon-btn:active {
    transform: scale(0.94);
}
.icon-btn svg {
    width: 17px;
    height: 17px;
}
.icon-btn[data-count]:not([data-count="0"])::after {
    content: attr(data-count);
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    padding: 2px 5px;
    border-radius: 999px;
    border: 2px solid var(--bg);
    background: var(--accent-2);
    color: var(--text);
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1.1;
}

/* Shared typography and controls */
.eyebrow {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.035em;
}
h1 {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(42px, 7vw, 80px);
    line-height: 0.94;
}
h2 {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(27px, 4vw, 44px);
    line-height: 1;
}
h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.17;
}
p {
    color: var(--muted);
    line-height: 1.62;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    padding: 11px 15px;
    border-radius: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.14s ease,
        background 0.14s ease,
        border-color 0.14s ease;
}
.button:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line-2);
}
.button:active {
    transform: scale(0.97);
}
.button.primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}
.button.small {
    padding: 8px 11px;
    font-size: 13px;
}
.button.ghost {
    background: transparent;
}
.button:disabled,
.button.loading {
    opacity: 0.6;
    pointer-events: none;
}
.button.loading {
    position: relative;
    color: transparent !important;
}
.button.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.button.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid var(--muted);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: auto;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.panel,
.card,
.story-card,
.topic-card,
.source-card,
.job-card,
.package-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(20, 22, 30, 0.84);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}
.panel.pad,
.card,
.story-card,
.topic-card,
.source-card,
.job-card,
.package-card {
    padding: 18px;
}
.notice {
    padding: 12px 14px;
    border: 1px solid rgba(255, 184, 77, 0.35);
    border-radius: 13px;
    color: #ffd99a;
    background: rgba(255, 184, 77, 0.08);
    font-size: 13px;
    line-height: 1.45;
}
hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 20px 0;
}
.input,
input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    padding: 12px 13px;
    outline: none;
}
input::placeholder,
textarea::placeholder {
    color: var(--faint);
}
textarea {
    min-height: 120px;
    resize: vertical;
}
.form-grid {
    display: grid;
    gap: 12px;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.field-label {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.check-grid {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 9px;
    color: var(--muted);
}
.check-grid legend {
    color: var(--text);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 6px;
}
.check-grid label,
.check-line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.4;
    color: var(--muted);
    font-size: 13px;
}
.check-grid input,
.check-line input {
    width: auto;
    margin-top: 2px;
    accent-color: var(--accent);
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);
    font-family: var(--mono);
    font-size: 11px;
}
.badge.green {
    border-color: rgba(227, 242, 39, 0.36);
    color: var(--accent);
}
.badge.blue {
    border-color: rgba(125, 168, 255, 0.36);
    color: var(--blue);
}
.badge.warn {
    border-color: rgba(255, 184, 77, 0.4);
    color: var(--warn);
}
.badge.danger {
    border-color: rgba(255, 59, 107, 0.4);
    color: var(--danger);
}
.tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.tag {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
}
.tag:hover {
    color: var(--text);
    border-color: rgba(227, 242, 39, 0.4);
    text-decoration: none;
}
.story-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 11px;
}
.story-summary {
    margin: 0;
    color: var(--muted);
}
.why-box {
    border-left: 3px solid var(--accent);
    padding: 11px 13px;
    background: rgba(227, 242, 39, 0.055);
    color: var(--text);
    border-radius: 0 12px 12px 0;
}
.section {
    padding: 34px 0;
}
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.section-head p {
    margin: 8px 0 0;
    max-width: 690px;
}
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
}
.sidebar {
    display: grid;
    gap: 14px;
    align-content: start;
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.kpi {
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
}
.kpi strong {
    display: block;
    font-size: 25px;
    letter-spacing: -0.04em;
}
.kpi span {
    display: block;
    color: var(--faint);
    font-size: 12px;
    margin-top: 4px;
}

/* Home / app shell */
.home-app {
    padding: 28px 0 16px;
}
.daily-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}
.date-line {
    color: var(--faint);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.daily-title {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(40px, 8vw, 68px);
    letter-spacing: -0.04em;
    line-height: 0.95;
    max-width: 880px;
    margin-top: 8px;
}
.daily-title em {
    color: var(--accent);
}
.daily-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 11px;
    margin-top: 12px;
}
.daily-summary b {
    color: var(--muted);
    font-weight: 600;
}
.daily-actions {
    display: flex;
    gap: 8px;
}
.home-pane {
    display: none;
}
.home-pane.active {
    display: block;
    animation: fade-in 0.24s ease both;
}
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.home-section {
    padding: 24px 0 0;
}
.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 14px;
}
.home-section-title {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.025em;
}
.home-section-title em {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
}
.section-tag {
    color: var(--faint);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.hero-rail,
.trending-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 4px 2px 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.hero-rail::-webkit-scrollbar,
.trending-rail::-webkit-scrollbar,
.chip-rail::-webkit-scrollbar {
    display: none;
}
.hero-card {
    flex: 0 0 min(440px, calc(100vw - 48px));
    min-height: 520px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    scroll-snap-align: start;
    box-shadow: var(--shadow);
}
.hero-cover {
    position: absolute;
    inset: 0;
}
.hero-cover svg {
    width: 100%;
    height: 100%;
    display: block;
}
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(10, 10, 12, 0.98) 0%,
        rgba(10, 10, 12, 0.72) 40%,
        rgba(10, 10, 12, 0.12) 68%,
        transparent 100%
    );
}
.hero-body {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 24px;
}
.hero-title {
    font-size: 31px;
    line-height: 1.04;
    margin: 14px 0 12px;
}
.hero-dek {
    margin: 0 0 15px;
    color: var(--muted);
    line-height: 1.5;
}
.hero-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.trend-card {
    flex: 0 0 190px;
    scroll-snap-align: start;
}
.trend-cover {
    border: 1px solid var(--line);
    border-radius: 18px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface);
    position: relative;
    margin-bottom: 10px;
}
.trend-cover svg {
    display: block;
    width: 100%;
    height: 100%;
}
.trend-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    background: rgba(10, 10, 12, 0.72);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 4px 7px;
}
.trend-rank span {
    color: var(--accent);
}
.trend-head {
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.18;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trend-meta {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--faint);
}
.chip-rail {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 1px 18px;
}
.chip {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    border-radius: 999px;
    padding: 9px 13px;
    font-family: var(--mono);
    font-size: 11px;
    transition:
        background 0.14s ease,
        color 0.14s ease,
        transform 0.14s ease;
}
.chip.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    font-weight: 700;
}
.chip:active {
    transform: scale(0.95);
}
.chip .count {
    opacity: 0.55;
    margin-left: 4px;
    font-size: 10px;
}
.feed-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}
.feed {
    display: grid;
    gap: 16px;
}
.app-card {
    padding: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 185px;
}
.app-card-cover {
    position: relative;
    background: var(--surface-2);
    min-height: 100%;
}
.app-card-cover svg {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 185px;
    object-fit: cover;
}
.card-save {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: rgba(10, 10, 12, 0.76);
    display: grid;
    place-items: center;
    color: var(--text);
    backdrop-filter: blur(8px);
}
.card-save.saved {
    color: var(--accent);
    border-color: rgba(227, 242, 39, 0.55);
}
.card-save svg {
    width: 16px;
    height: 16px;
}
.app-card-body {
    padding: 18px;
    display: grid;
    gap: 10px;
    align-content: start;
}
.app-card h3 {
    font-size: 23px;
}
.app-card h3 a {
    color: var(--text);
}
.card-dek {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}
.inline-link {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
}
.inline-link.secondary {
    color: var(--muted);
}
.status-stack {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 96px;
}
.status-card {
    overflow: hidden;
    position: relative;
}
.status-card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 180px;
    height: 180px;
    background: var(--accent);
    filter: blur(70px);
    opacity: 0.12;
}
.status-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(0.86);
    }
}
.status-big {
    font-family: var(--serif);
    font-style: italic;
    font-size: 45px;
    line-height: 1;
    letter-spacing: -0.045em;
}
.status-big span {
    color: var(--accent);
}
.status-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 12px;
}
.status-row:last-child {
    border-bottom: 0;
}
.status-row .k {
    color: var(--faint);
}
.status-row .v {
    color: var(--text);
}
.news-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
}
.news-card::before {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    width: 160px;
    height: 160px;
    background: var(--accent);
    filter: blur(55px);
    opacity: 0.14;
}
.news-card > * {
    position: relative;
}
.news-card h3 {
    font-size: 28px;
    font-style: italic;
    margin-bottom: 8px;
}
.jobs-strip {
    display: grid;
    gap: 12px;
}
.job-mini {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.sponsor-slot {
    border-color: rgba(255, 184, 77, 0.35);
    background: linear-gradient(
        180deg,
        rgba(255, 184, 77, 0.07),
        rgba(20, 22, 30, 0.84)
    );
}

/* Discuss */
.discuss-sort {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin: 4px 0 16px;
}
.sort-tab {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
}
.sort-tab.active {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 700;
}
.discuss-list {
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(20, 22, 30, 0.72);
}
.discuss-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}
.discuss-row:last-child {
    border-bottom: 0;
}
.discuss-rank {
    font-family: var(--serif);
    font-style: italic;
    font-size: 34px;
    color: var(--faint);
    line-height: 0.9;
}
.discuss-row:nth-child(-n + 3) .discuss-rank {
    color: var(--accent);
}
.discuss-head {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.12;
    margin-bottom: 8px;
}
.discuss-head a {
    color: var(--text);
}
.discuss-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.pill-btn {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    padding: 7px 11px;
    font-family: var(--mono);
    font-size: 11px;
}
.pill-btn.voted {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 700;
}
.mod-note {
    color: var(--faint);
    font-family: var(--mono);
    font-size: 11px;
    margin-top: 10px;
}

/* Legacy / route pages */
.story-list {
    display: grid;
    gap: 13px;
}
.story-card {
    display: grid;
    gap: 12px;
    transition:
        transform 0.14s ease,
        border-color 0.14s ease,
        background 0.14s ease;
}
.story-card:hover {
    transform: translateY(-1px);
    border-color: rgba(227, 242, 39, 0.36);
    background: rgba(27, 30, 40, 0.9);
}
.story-card h3 a {
    color: var(--text);
}
.topic-grid,
.source-grid,
.job-grid,
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.topic-card h3 a,
.job-card h3 a {
    color: var(--text);
}
.job-card.featured {
    border-color: rgba(227, 242, 39, 0.45);
    background: linear-gradient(
        180deg,
        rgba(227, 242, 39, 0.08),
        rgba(20, 22, 30, 0.84)
    );
}
.table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 14px;
}
.table th,
.table td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}
.table th {
    color: var(--muted);
    font-size: 12px;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.table td {
    color: var(--text);
}
.article {
    max-width: 860px;
}
.article h1 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 0.98;
    margin-top: 12px;
}
.article .dek {
    font-size: 20px;
    color: var(--muted);
}
.article-section {
    margin: 28px 0;
}
.article-section ol,
.article-section ul,
.card ul,
.package-card ul {
    color: var(--muted);
    line-height: 1.7;
    padding-left: 22px;
}
.article-section li + li,
.card li + li,
.package-card li + li {
    margin-top: 8px;
}
.source-list {
    display: grid;
    gap: 8px;
}
.source-link {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.035);
}
.source-link span {
    color: var(--faint);
    font-family: var(--mono);
    font-size: 12px;
}
.empty {
    color: var(--faint);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 18px;
}
.empty a {
    color: var(--accent);
    text-decoration: underline;
}
.input-error {
    border-color: var(--danger) !important;
    animation: error-flash 0.4s ease;
}
@keyframes error-flash {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 107, 0);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(255, 59, 107, 0.35);
    }
}
.api-banner {
    padding: 10px 14px;
    border: 1px solid rgba(255, 184, 77, 0.4);
    border-radius: 13px;
    background: rgba(255, 184, 77, 0.08);
    color: var(--warn);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.api-banner::before {
    content: "⚠";
    font-size: 16px;
}
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 200;
    background: var(--accent);
    color: var(--bg);
    padding: 10px 16px;
    border-radius: 13px;
    font-weight: 700;
    font-size: 14px;
    transition: top 0.2s ease;
}
.skip-to-content:focus {
    top: 12px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.status-pill {
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-family: var(--mono);
    border: 1px solid var(--line);
    color: var(--muted);
}
.status-pill.published {
    color: var(--accent);
    border-color: rgba(227, 242, 39, 0.4);
}
.status-pill.review {
    color: var(--warn);
    border-color: rgba(255, 184, 77, 0.4);
}
.footer {
    margin-top: 52px;
    padding: 36px 0;
    border-top: 1px solid var(--line);
    color: var(--faint);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: start;
}
.footer a {
    color: var(--muted);
}

/* Search overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--bg);
    transform: translateY(100%);
    transition: transform 0.26s cubic-bezier(0.2, 0.7, 0.2, 1);
    display: flex;
    justify-content: center;
}
.search-overlay.open {
    transform: translateY(0);
}
.search-shell {
    width: min(720px, 100%);
    height: 100dvh;
    display: flex;
    flex-direction: column;
}
.search-head {
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}
.search-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    padding: 0 14px;
    min-height: 46px;
}
.search-input input {
    border: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
}
.search-input svg {
    width: 17px;
    height: 17px;
    color: var(--faint);
}
.search-close {
    border: 0;
    background: transparent;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 12px;
    padding: 8px 4px;
}
.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 22px 18px 54px;
}
.search-hint {
    font-family: var(--mono);
    color: var(--faint);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.search-suggest {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.search-result {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.search-result:hover {
    text-decoration: none;
}
.search-result .sr-cat {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.search-result h3 {
    font-size: 18px;
    color: var(--text);
}
.search-result .sr-meta {
    margin-top: 6px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 11px;
}
.search-group + .search-group {
    margin-top: 20px;
}
.search-group h2 {
    font-size: 18px;
    margin-bottom: 4px;
}
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(18px);
    z-index: 120;
    background: var(--text);
    color: var(--bg);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.24s ease,
        transform 0.24s ease;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
}
.spinner::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Mobile bottom nav */
.mobile-tabbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    border-top: 1px solid var(--line);
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(20px) saturate(140%);
    padding-bottom: var(--safe-bottom);
}
.mobile-tabbar-inner {
    width: min(720px, 100%);
    margin: 0 auto;
    height: var(--mobile-tabbar-h);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}
.mobile-tab {
    border: 0;
    background: transparent;
    color: var(--faint);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.04em;
    position: relative;
}
.mobile-tab svg {
    width: 20px;
    height: 20px;
}
.mobile-tab.active {
    color: var(--accent);
}
.mobile-tab.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 2px;
    border-radius: 0 0 999px 999px;
    background: var(--accent);
}

@media (max-width: 1060px) {
    .feed-grid,
    .layout,
    .two-col {
        grid-template-columns: 1fr;
    }
    .status-stack {
        position: static;
    }
    .topic-grid,
    .source-grid,
    .job-grid,
    .package-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    body.has-mobile-tabs {
        padding-bottom: calc(var(--mobile-tabbar-h) + var(--safe-bottom));
    }
    .container {
        width: min(100% - 24px, 1180px);
    }
    .header-inner {
        min-height: 64px;
    }
    .brand-subtitle,
    .nav {
        display: none;
    }
    .brand-title {
        font-size: 25px;
    }
    .site-header .header-actions {
        display: flex;
    }
    .home-app {
        padding: 18px 0 0;
    }
    .daily-header {
        grid-template-columns: 1fr;
    }
    .daily-actions {
        display: none;
    }
    .daily-title {
        font-size: 34px;
    }
    .daily-summary {
        font-size: 10.5px;
    }
    .home-section {
        padding-top: 24px;
    }
    .hero-card {
        min-height: 470px;
        flex-basis: calc(100vw - 40px);
    }
    .hero-title {
        font-size: 27px;
    }
    .trending-rail {
        gap: 12px;
    }
    .trend-card {
        flex-basis: 164px;
    }
    .app-card {
        grid-template-columns: 1fr;
    }
    .app-card-cover {
        aspect-ratio: 16 / 10;
    }
    .app-card-cover svg {
        min-height: auto;
    }
    .mobile-tabbar {
        display: block;
    }
    .footer {
        padding-bottom: calc(36px + var(--mobile-tabbar-h));
    }
    .topic-grid,
    .source-grid,
    .job-grid,
    .package-grid,
    .pricing-grid,
    .kpi-grid,
    .form-row {
        grid-template-columns: 1fr;
    }
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .discuss-row {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 18px 14px;
    }
    .discuss-rank {
        font-size: 28px;
    }
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 12, 0.72);
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 1000;
}
.modal-card {
    width: min(520px, 100%);
    background: var(--surface, #111);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.field-input {
    width: 100%;
    margin-bottom: 16px;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
