:root {
    --bg: #000000;
    --panel: #050505;
    --panel-2: #0a0a0a;
    --ink: #16eeff;
    --ink-soft: #a0f8ff;
    --muted: #4ab8c7;
    --line: rgba(22, 238, 255, 0.22);
    --line-strong: rgba(22, 238, 255, 0.5);
    --accent: #16eeff;
    --accent-strong: #00bcd4;
    --shadow: inset 0 0 0 1px rgba(22, 238, 255, 0.08), 0 0 28px rgba(0, 180, 210, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Courier New", Courier, monospace;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(22, 238, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #000000 0%, #000000 100%);
    text-shadow: 0 0 8px rgba(22, 238, 255, 0.08);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.015) 0,
        rgba(255, 255, 255, 0.015) 1px,
        transparent 1px,
        transparent 4px
    );
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.72);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--ink);
    text-decoration: none;
}

a:hover {
    color: var(--ink-soft);
}

code {
    font-family: "Courier New", Courier, monospace;
}

.shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 48px;
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.96);
    box-shadow: var(--shadow);
}

.brand {
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

.topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero,
.card,
.detail-card,
.empty-state,
.error-box,
.success-box {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.98));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero {
    padding: 28px;
    margin-bottom: 22px;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 18px 18px auto;
    width: 180px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(22, 238, 255, 0.45), transparent);
    pointer-events: none;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--ink-soft);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero h1,
.detail-card h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 1.04;
    text-transform: uppercase;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

.hero-copy {
    width: min(700px, 100%);
    margin: 16px 0 22px;
    color: var(--ink-soft);
    line-height: 1.8;
    font-size: 1rem;
}

.search-shell {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(0, 12, 16, 0.98), rgba(0, 5, 8, 0.98));
    box-shadow: var(--shadow);
}

.search-shell-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}

.search-shell h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.1;
    text-transform: uppercase;
    color: #ffffff;
}

.search-copy {
    margin: 12px 0 0;
    max-width: 720px;
    color: var(--ink-soft);
    line-height: 1.7;
}

.search-meta {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.search-shortcut,
.search-total {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(22, 238, 255, 0.14);
    background: rgba(0, 0, 0, 0.34);
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

kbd {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(22, 238, 255, 0.2);
    background: rgba(22, 238, 255, 0.12);
    color: #ffffff;
    font: inherit;
}

.hero-grid,
.stats,
.toolbar,
.card-grid,
.admin-grid {
    display: grid;
    gap: 16px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    align-items: start;
}

.hero-grid-wide {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
}

.stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
    padding: 18px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.98));
}

.stat strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.9rem;
    color: var(--ink-soft);
}

.stat span {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.82rem;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.action-row > * {
    max-width: 100%;
}

.action-row .back-link {
    margin-bottom: 0;
}

.noscript-note {
    grid-column: 1 / -1;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px dashed var(--line);
    color: var(--muted);
    background: rgba(0, 0, 0, 0.45);
    line-height: 1.6;
}

.results-shell {
    display: grid;
    gap: 16px;
    position: relative;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.home-card {
    padding: 24px;
}

.home-card-wide {
    grid-column: 1 / -1;
}

.home-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.35;
    text-transform: uppercase;
}

.home-title a {
    color: var(--ink-soft);
}

.home-copy {
    margin: 12px 0 0;
    color: var(--ink-soft);
    line-height: 1.8;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.category-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
}

.category-card strong {
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.category-card span {
    color: var(--muted);
    font-size: 0.86rem;
}

.category-card:hover {
    background: rgba(0, 24, 32, 0.6);
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.latest-item {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
}

.latest-item strong {
    color: var(--ink-soft);
    line-height: 1.4;
    text-transform: uppercase;
}

.latest-item:hover {
    background: rgba(0, 24, 32, 0.6);
}

.results-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
}

.results-status {
    color: var(--ink-soft);
    line-height: 1.6;
}

.results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-nav {
    margin-top: 18px;
    align-items: center;
    justify-content: space-between;
}

.results-loading {
    position: absolute;
    inset: 0;
    display: none;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(2px);
}

.results-loading.is-active {
    display: block;
}

.results-loading.is-active::after {
    content: "";
    position: absolute;
    inset: 24px auto auto 24px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(22, 238, 255, 0.22);
    border-top-color: rgba(22, 238, 255, 0.95);
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#results-shell-inner.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.toolbar {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) 180px;
    margin-bottom: 24px;
}

.search-toolbar {
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr) 150px;
    align-items: end;
    margin-bottom: 0;
}

.search-field {
    display: grid;
    gap: 10px;
}

.search-field-wide {
    min-width: 0;
}

.field-label {
    color: var(--ink-soft);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap input {
    padding-right: 92px;
}

.clear-search-button {
    position: absolute;
    top: 50%;
    right: 8px;
    min-height: 34px;
    padding: 7px 12px;
    transform: translateY(-50%);
    font-size: 0.74rem;
}

.clear-search-button:hover {
    transform: translateY(-50%);
}

.filter-pills {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(22, 238, 255, 0.18);
    background: rgba(22, 238, 255, 0.08);
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.4;
}

.is-hidden {
    display: none !important;
}

.toolbar input,
.toolbar select,
.toolbar button,
.upload-form input[type="file"] {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.78);
    color: var(--ink);
    font: inherit;
}

.toolbar input::placeholder {
    color: var(--muted);
}

.toolbar button,
.pill,
.back-link,
.ghost-link,
.upload-form button,
.edit-post-form button,
.filter-actions button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 16px;
    border-radius: 4px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(0, 12, 16, 0.98), rgba(0, 5, 8, 0.98));
    color: var(--ink);
    font: inherit;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.toolbar button:hover,
.pill:hover,
.back-link:hover,
.ghost-link:hover,
.upload-form button:hover,
.edit-post-form button:hover,
.filter-actions button:hover,
.danger-button:hover {
    transform: translateY(-1px);
    background: rgba(0, 20, 28, 0.98);
    color: var(--ink-soft);
}

.ghost-link {
    background: transparent;
}

.pill {
    min-height: 0;
    padding: 8px 12px;
    font-size: 0.78rem;
    width: fit-content;
    letter-spacing: 0.12em;
}

.back-link {
    margin-bottom: 18px;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    margin: 0 0 14px;
}

.section-head h2 {
    margin: 0;
    font-size: 1.25rem;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 16px;
    margin-bottom: 24px;
}

.feature-main h2 {
    margin: 14px 0 10px;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    line-height: 1.2;
    text-transform: uppercase;
}

.feature-copy {
    margin: 0 0 12px;
    color: var(--ink-soft);
    line-height: 1.8;
}

.feature-side {
    display: grid;
    gap: 16px;
}

.compact-card h3 {
    font-size: 1rem;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    content-visibility: auto;
    contain-intrinsic-size: 220px;
}

.card h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.card p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.75;
}

.detail-card {
    padding: 24px;
}

.search-page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-search-hero {
    margin-bottom: 16px;
    padding: 24px;
}

.site-search-hero .hero-copy {
    margin-bottom: 18px;
}

.google-search-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.google-cse-shell {
    flex: 1;
    min-height: 52vh;
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(0, 14, 18, 0.92), rgba(0, 4, 7, 0.96)),
        repeating-linear-gradient(180deg, rgba(22, 238, 255, 0.035) 0, rgba(22, 238, 255, 0.035) 1px, transparent 1px, transparent 5px);
    box-shadow: inset 0 0 0 1px rgba(22, 238, 255, 0.08);
}

.google-cse-shell table,
.google-cse-shell tbody,
.google-cse-shell tr,
.google-cse-shell td {
    border-color: transparent !important;
}

.google-cse-shell table {
    max-width: 100%;
}

.google-cse-shell input.gsc-input,
.google-cse-shell .gsc-input-box,
.google-cse-shell .gsc-control-cse,
.google-cse-shell .gsc-webResult.gsc-result,
.google-cse-shell .gsc-results .gsc-imageResult {
    background: #000000 !important;
    color: var(--ink) !important;
    border-color: var(--line-strong) !important;
    font-family: "Courier New", Courier, monospace !important;
}

.google-cse-shell .gsc-control-cse,
.google-cse-shell .gsc-control-cse * {
    font-family: "Courier New", Courier, monospace !important;
}

.google-cse-shell .gsc-control-cse {
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.google-cse-shell form.gsc-search-box,
.google-cse-shell table.gsc-search-box {
    margin: 0 0 18px !important;
}

.google-cse-shell .gsc-input-box {
    min-height: 48px;
    border-radius: 4px !important;
    box-shadow: inset 0 0 18px rgba(22, 238, 255, 0.08) !important;
}

.google-cse-shell input.gsc-input {
    min-height: 44px !important;
    padding: 10px 12px !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
}

.google-cse-shell .gsib_a {
    padding: 0 10px !important;
}

.google-cse-shell .gsib_b {
    padding-right: 8px !important;
}

.google-cse-shell .gsc-search-button-v2 {
    min-width: 56px !important;
    min-height: 48px !important;
    margin: 0 0 0 10px !important;
    border-radius: 4px !important;
    border-color: var(--line-strong) !important;
    background: linear-gradient(180deg, rgba(0, 12, 16, 0.98), rgba(0, 5, 8, 0.98)) !important;
    transition: transform 0.15s ease, background 0.15s ease !important;
}

.google-cse-shell .gsc-search-button-v2:hover {
    transform: translateY(-1px);
    background: rgba(0, 20, 28, 0.98) !important;
}

.google-cse-shell .gsc-above-wrapper-area {
    margin: 0 0 12px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid var(--line) !important;
}

.google-cse-shell .gsc-result-info {
    padding: 0 !important;
}

.google-cse-shell .gsc-results-wrapper-visible,
.google-cse-shell .gsc-resultsbox-visible {
    width: 100% !important;
}

.google-cse-shell .gsc-webResult.gsc-result,
.google-cse-shell .gsc-results .gsc-imageResult {
    margin: 0 0 12px !important;
    padding: 16px !important;
    border: 1px solid var(--line) !important;
    border-radius: 6px !important;
    box-shadow: inset 0 0 0 1px rgba(22, 238, 255, 0.04) !important;
}

.google-cse-shell .gsc-webResult.gsc-result:hover {
    border-color: var(--line-strong) !important;
    background: rgba(0, 18, 24, 0.94) !important;
}

.google-cse-shell .gsc-thumbnail-inside,
.google-cse-shell .gsc-url-top {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.google-cse-shell .gs-title,
.google-cse-shell .gs-title * {
    color: var(--ink-soft) !important;
    font-size: 1.05rem !important;
    line-height: 1.45 !important;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

.google-cse-shell .gs-title:hover,
.google-cse-shell .gs-title:hover * {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 4px !important;
}

.google-cse-shell .gs-snippet,
.google-cse-shell .gsc-result-info,
.google-cse-shell .gsc-orderby-label,
.google-cse-shell .gsc-cursor-page,
.google-cse-shell .gs-visibleUrl,
.google-cse-shell .gs-visibleUrl-short {
    color: var(--muted) !important;
    line-height: 1.65 !important;
}

.google-cse-shell .gs-visibleUrl,
.google-cse-shell .gs-visibleUrl-short {
    color: var(--ink) !important;
    overflow-wrap: anywhere;
}

.google-cse-shell .gsc-cursor-box {
    margin: 18px 0 0 !important;
}

.google-cse-shell .gsc-cursor-page {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    margin: 0 6px 8px 0 !important;
    border: 1px solid var(--line) !important;
    border-radius: 4px !important;
    background: rgba(0, 0, 0, 0.62) !important;
    text-decoration: none !important;
}

.google-cse-shell .gsc-cursor-current-page {
    color: #ffffff !important;
    border-color: var(--line-strong) !important;
    background: rgba(22, 238, 255, 0.12) !important;
}

.google-cse-shell .gsc-orderby {
    min-width: 190px;
}

.google-cse-shell .gsc-selected-option-container {
    min-width: 140px !important;
    border-color: var(--line) !important;
    border-radius: 4px !important;
    background: rgba(0, 0, 0, 0.82) !important;
    color: var(--ink) !important;
    box-shadow: none !important;
}

.google-cse-shell .gsc-option-menu {
    border-color: var(--line-strong) !important;
    background: #000000 !important;
}

.google-cse-shell .gsc-option-menu-item {
    color: var(--ink) !important;
}

.google-cse-shell .gsc-option-menu-item-highlighted {
    background: rgba(22, 238, 255, 0.12) !important;
}

.google-cse-shell .gcsc-find-more-on-google,
.google-cse-shell .gcsc-find-more-on-google * {
    color: var(--ink-soft) !important;
}

.detail-article {
    overflow: hidden;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.detail-intro {
    margin: 14px 0 0;
    color: var(--ink-soft);
    line-height: 1.8;
}

.detail-body {
    margin-top: 24px;
    color: var(--ink-soft);
    line-height: 1.9;
    font-size: 0.97rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.detail-body h2,
.detail-body h3 {
    margin: 0 0 10px;
    color: var(--ink-soft);
    line-height: 1.3;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.detail-body p {
    margin: 0 0 14px;
}

.detail-body ul,
.detail-body ol {
    margin: 0 0 18px 20px;
    padding: 0;
}

.detail-body li {
    margin-bottom: 10px;
}

.detail-body a,
.home-title a,
.latest-item strong,
.category-card strong,
.footer-brand,
.results-status,
.table-summary,
.sitemap-link,
.code-block code,
.inline-note {
    overflow-wrap: anywhere;
}

.recipe-inline-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    margin: 22px 0;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.legal-meta {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-stack {
    display: grid;
    gap: 18px;
}

.legal-section {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.legal-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.empty-state,
.error-box,
.success-box {
    padding: 20px 22px;
    margin-bottom: 18px;
    line-height: 1.7;
}

.site-footer {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.footer-brand {
    display: block;
    color: var(--ink-soft);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-copy {
    margin: 10px 0 0;
    color: var(--ink-soft);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: flex-end;
    align-items: center;
}

.footer-links a {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
}

.footer-links a:hover {
    color: var(--ink-soft);
}

.footer-meta {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.affiliate-banner {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 24px;
    overflow: hidden;
}

.affiliate-banner a {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
}

.affiliate-banner img {
    display: block;
    width: 100%;
    max-width: 728px;
    height: auto;
    margin: 0 auto;
}

@media print {
    body {
        background: #ffffff;
        color: #000000;
    }

    .topbar,
    .hero,
    .toolbar,
    .results-shell,
    .back-link,
    .site-footer {
        display: none !important;
    }

    .detail-card {
        border: 0;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }

    .detail-body {
        color: #000000;
    }
}

.error-box {
    color: #ff8f8f;
    border-color: rgba(255, 103, 103, 0.35);
}

.success-box {
    color: #9cffb3;
    border-color: rgba(117, 255, 149, 0.3);
}

.admin-shell {
    padding-bottom: 60px;
}

.admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.admin-grid-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.upload-form {
    display: grid;
    gap: 16px;
}

.edit-post-form {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
    gap: 16px;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.filter-form .field:first-child {
    grid-column: span 2;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    color: var(--ink-soft);
    font-size: 0.86rem;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.filter-actions button {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.96);
    color: var(--ink);
    font: inherit;
}

.field textarea {
    min-height: 360px;
    line-height: 1.55;
    resize: vertical;
}

.edit-body-field {
    grid-column: 1 / -1;
}

.table-link {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.78rem;
    width: fit-content;
}

.filter-actions {
    display: grid;
    align-content: end;
    gap: 12px;
}

.filter-actions .ghost-link {
    width: 100%;
}

.table-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.table-summary {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.pagination-tools {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.inline-note {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.danger-button {
    border-color: rgba(255, 148, 95, 0.45);
    color: #ffb48b;
    background: linear-gradient(180deg, rgba(38, 18, 10, 0.98), rgba(14, 6, 3, 0.98));
}

.danger-button:hover {
    background: rgba(0, 30, 40, 0.98);
    color: #ffd8c0;
}

.admin-table input[type="checkbox"],
.check-all {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.admin-grid-bottom {
    margin-top: 18px;
}

.admin-stats-grid {
    margin-bottom: 18px;
}

.code-block {
    margin-top: 18px;
    padding: 16px;
    border-radius: 6px;
    border: 1px dashed var(--line);
    background: rgba(0, 0, 0, 0.4);
}

.code-block strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-soft);
}

.code-block code {
    display: block;
    color: var(--ink-soft);
    line-height: 1.75;
    white-space: normal;
    word-break: break-word;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.data-table th {
    color: var(--ink-soft);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.data-table td {
    color: var(--ink-soft);
    line-height: 1.6;
}

.sitemap-panel {
    margin-bottom: 18px;
}

.sitemap-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.sitemap-link {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.32);
    line-height: 1.55;
    text-transform: uppercase;
}

.sitemap-link:hover {
    background: rgba(0, 24, 32, 0.65);
    color: var(--ink-soft);
}

button:disabled,
.danger-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

button:disabled:hover,
.danger-button:disabled:hover {
    transform: none;
    background: linear-gradient(180deg, rgba(0, 12, 16, 0.98), rgba(0, 5, 8, 0.98));
    color: var(--ink);
}

@media (max-width: 980px) {
    .hero-grid,
    .admin-grid,
    .admin-grid-top,
    .admin-grid-bottom,
    .feature-layout,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .search-shell-head {
        flex-direction: column;
        align-items: start;
    }

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

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

    .search-toolbar {
        grid-template-columns: 1fr;
    }

    .search-meta {
        justify-items: start;
    }

    .filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .filter-form .field:first-child {
        grid-column: span 2;
    }

    .edit-post-form {
        grid-template-columns: 1fr;
    }

    .table-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .results-status-row,
    .section-head {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 16px, 1180px);
        padding-top: 14px;
        padding-bottom: 36px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
    }

    .topbar-links {
        width: 100%;
    }

    .brand {
        font-size: 0.92rem;
        letter-spacing: 0.14em;
        text-align: center;
    }

    .hero,
    .card,
    .detail-card,
    .empty-state,
    .error-box,
    .success-box {
        border-radius: 8px;
    }

    .hero,
    .detail-card,
    .card {
        padding: 16px;
    }

    .site-search-hero {
        padding: 16px;
    }

    .google-cse-shell {
        min-height: 58vh;
        padding: 12px;
    }

    .google-cse-shell .gsc-search-box-tools .gsc-search-box .gsc-input {
        padding-right: 4px !important;
    }

    .google-cse-shell .gsc-search-button-v2 {
        min-width: 48px !important;
        margin-left: 6px !important;
        padding: 12px !important;
    }

    .google-cse-shell .gsc-above-wrapper-area {
        display: block !important;
    }

    .google-cse-shell .gsc-orderby {
        width: 100%;
        min-width: 0;
        margin-top: 10px;
        text-align: left;
    }

    .google-cse-shell .gsc-selected-option-container {
        width: 100% !important;
    }

    .google-cse-shell .gsc-webResult.gsc-result,
    .google-cse-shell .gsc-results .gsc-imageResult {
        padding: 12px !important;
    }

    .hero::after {
        inset: auto 14px 14px auto;
        width: 110px;
    }

    .hero h1,
    .detail-card h1 {
        font-size: clamp(1.65rem, 9vw, 2.6rem);
    }

    .hero-copy,
    .detail-intro,
    .home-copy,
    .card p,
    .detail-body {
        line-height: 1.7;
    }

    .section-head {
        margin-bottom: 12px;
    }

    .results-status-row {
        padding: 14px;
    }

    .topbar-links,
    .results-actions,
    .action-row,
    .filter-actions {
        width: 100%;
    }

    .topbar-links > *,
    .results-actions > *,
    .action-row > *,
    .filter-actions > * {
        flex: 1 1 100%;
        width: 100%;
    }

    .toolbar button,
    .pill,
    .back-link,
    .ghost-link,
    .upload-form button,
    .filter-actions button,
    .danger-button {
        white-space: normal;
    }

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

    .filter-form {
        grid-template-columns: 1fr;
    }

    .filter-form .field:first-child {
        grid-column: auto;
    }

    .data-table {
        min-width: 0;
    }

    .mobile-card-table,
    .mobile-card-table tbody,
    .mobile-card-table tr,
    .mobile-card-table td {
        display: block;
        width: 100%;
    }

    .mobile-card-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .mobile-card-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    .mobile-card-table tbody {
        display: grid;
        gap: 12px;
    }

    .mobile-card-table tr {
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: rgba(0, 0, 0, 0.4);
    }

    .mobile-card-table td {
        display: grid;
        grid-template-columns: minmax(88px, 108px) minmax(0, 1fr);
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid var(--line);
    }

    .mobile-card-table td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .mobile-card-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.74rem;
        letter-spacing: 0.12em;
        line-height: 1.4;
        text-transform: uppercase;
    }

    .mobile-card-table td[colspan] {
        display: block;
        padding: 0;
        border-bottom: 0;
    }

    .mobile-card-table td[colspan]::before {
        content: none;
    }

    .admin-table td[data-label="Select"] {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .admin-table td[data-label="Select"]::before {
        content: attr(data-label);
        flex: 0 0 auto;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}
