@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --paper: #f5f5f7;
    --surface: rgba(255, 255, 255, 0.7);
    --surface-opaque: #ffffff;
    --surface-soft: #f2f2f7;
    --ink: #1d1d1f;
    --muted: #86868b;
    --line: rgba(0, 0, 0, 0.08);
    --line-strong: rgba(0, 0, 0, 0.15);
    
    /* System Accents */
    --blue: #0071e3;
    --green: #34c759;
    --orange: #ff9500;
    --yellow: #ffcc00;
    --danger: #ff3b30;
    
    /* Grid Accent Defaults for Cards */
    --card-accent: var(--blue);
    
    /* Layout Tokens */
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 10px;
    --radius-pill: 9999px;
    
    /* Typography */
    --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    
    /* Transitions & Motions */
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.dark {
    --paper: #000000;
    --surface: rgba(28, 28, 30, 0.7);
    --surface-opaque: #1c1c1e;
    --surface-soft: #2c2c2e;
    --ink: #f5f5f7;
    --muted: #8e8e93;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    
    --blue: #2997ff;
    --green: #30d158;
    --orange: #ff9f0a;
    --yellow: #ffd60a;
    --danger: #ff453a;
    
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 35px 70px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--paper);
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 113, 227, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(52, 199, 89, 0.02) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(255, 149, 0, 0.01) 0px, transparent 50%);
    background-attachment: fixed;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.dark {
    background-image: 
        radial-gradient(at 0% 0%, rgba(41, 151, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 159, 10, 0.03) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(48, 209, 88, 0.03) 0px, transparent 50%);
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    opacity: 0.8;
}

button,
input,
textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* App Shell Layout */
.app-shell {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 32px 0 80px;
}

/* Site Navigation Header */
.site-nav {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
    margin-bottom: 32px;
    padding: 12px 24px;
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 24px;
    z-index: 1000;
    transition: var(--transition);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.15);
    transition: var(--transition);
}

.brand-lockup:hover .brand-mark {
    transform: rotate(10deg) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.35);
}

.brand-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-caption {
    display: block;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Apple Pill and Action Buttons */
.nav-link,
.theme-btn,
.sort-btn,
.submit-btn,
.btn,
.pagination-btn {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface-opaque);
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-soft);
}

.nav-link:hover,
.theme-btn:hover,
.sort-btn:hover,
.btn:hover,
.pagination-btn:hover {
    background: var(--surface-soft);
    border-color: var(--line-strong);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.nav-link:active,
.theme-btn:active,
.sort-btn:active,
.btn:active,
.pagination-btn:active {
    transform: translateY(0) scale(0.98);
}

.theme-btn {
    width: 40px;
    padding: 0;
}

.theme-icon {
    font-size: 0.95rem;
    line-height: 1;
}

/* Premium Apple Banner Hero Panel */
.hero-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
    align-items: center;
    min-height: 340px;
    margin-bottom: 32px;
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: var(--shadow);
}

/* Fluid macOS-style gradient meshes */
.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(0, 113, 227, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(52, 199, 89, 0.09) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 149, 0, 0.06) 0%, transparent 60%);
    background-size: 200% 200%;
    pointer-events: none;
    animation: fluidDrift 20s infinite alternate ease-in-out;
}

@keyframes fluidDrift {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 100%;
    }
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: var(--blue);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 113, 227, 0.08);
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

body.dark .eyebrow {
    background: rgba(41, 151, 255, 0.15);
}

.hero-panel h1 {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-panel p {
    max-width: 600px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-stats span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

body.dark .hero-stats span {
    background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* macOS Terminal Window Visual Mockup */
.terminal-card {
    width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    background: rgba(15, 15, 17, 0.85);
    backdrop-filter: blur(20px);
    color: #e4e4e7;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-spring);
}

.hero-panel:hover .terminal-card {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.terminal-bar {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.terminal-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f56; /* Safari red */
}

.terminal-bar span:nth-child(2) {
    background: #ffbd2e; /* Safari yellow */
}

.terminal-bar span:nth-child(3) {
    background: #27c93f; /* Safari green */
}

.terminal-card pre {
    padding: 20px 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    color: #34d399;
}

.terminal-card pre::before {
    content: "$ ";
    color: #a1a1aa;
}

.widget-stack {
    position: absolute;
    left: -20px;
    bottom: -20px;
    display: grid;
    grid-template-columns: repeat(3, 56px);
    gap: 12px;
    z-index: 2;
    transform: rotate(5deg);
}

.widget-stack span {
    height: 56px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    color: white;
    background: linear-gradient(135deg, #4285f4, #2b61c6);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition-spring);
}

.widget-stack span:nth-child(2) {
    background: linear-gradient(135deg, #34a853, #1e7e34);
    transform: translateY(-8px);
}

.widget-stack span:nth-child(3) {
    background: linear-gradient(135deg, #ea4335, #b32415);
    transform: translateY(4px);
}

.hero-panel:hover .widget-stack span {
    transform: translateY(0) scale(1.05);
}

/* Toolbar (Search & Sort) Layout */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 36px 0 24px;
}

/* Apple-style search input with smooth focus widening */
.search-container {
    position: relative;
    flex: 1;
    max-width: 480px;
    transition: var(--transition);
}

.search-input,
.admin-search-input,
.form-input,
.form-textarea,
.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ink);
    outline: none;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.search-input,
.admin-search-input {
    height: 44px;
    border-radius: var(--radius-pill);
    padding: 0 48px 0 20px;
}

.search-input:focus,
.admin-search-input:focus,
.form-input:focus,
.form-textarea:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    background: var(--surface-opaque);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12), var(--shadow);
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.search-input:focus + .search-icon {
    color: var(--blue);
    transform: translateY(-50%) scale(1.05);
}

/* iOS Segmented Control styled tab switcher */
.buttons-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-container {
    display: flex;
    background: var(--surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    padding: 3px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
}

.sort-btn {
    min-height: 34px;
    border: 1px solid transparent;
    background: transparent;
    padding: 0 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    box-shadow: none;
}

.sort-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

body.dark .sort-btn:hover {
    background: rgba(255, 255, 255, 0.04);
}

.sort-btn.active {
    background: var(--surface-opaque);
    color: var(--blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

body.dark .sort-btn.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.submit-btn,
.btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.submit-btn:hover,
.btn-primary:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.25);
    transform: translateY(-1.5px);
}

/* Beautiful App Store-style Plugins Grid */
.plugins-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* Apple Card with high blur, soft shadow, spring transforms */
.plugin-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-spring);
    animation: cardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--card-index, 0) * 0.04s);
}

.plugin-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--card-accent, var(--blue));
    border-radius: 0 0 3px 3px;
    opacity: 0;
    transition: var(--transition);
}

.plugin-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.plugin-card:hover::before {
    opacity: 0.85;
}

/* Shimmer Skeleton Card styles */
.skeleton-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0) 100%);
    animation: shimmer 1.5s infinite;
}

body.dark .skeleton-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(255, 255, 255, 0) 100%);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.skeleton-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--line-strong);
    opacity: 0.15;
}

.skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-name {
    width: 60%;
    height: 16px;
    border-radius: 4px;
    background: var(--line-strong);
    opacity: 0.2;
}

.skeleton-author {
    width: 35%;
    height: 12px;
    border-radius: 4px;
    background: var(--line-strong);
    opacity: 0.15;
}

.skeleton-description {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: var(--line-strong);
    opacity: 0.12;
}

.skeleton-line.short {
    width: 80%;
}

.skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-meta {
    width: 40%;
    height: 12px;
    border-radius: 4px;
    background: var(--line-strong);
    opacity: 0.12;
}

.skeleton-button {
    width: 72px;
    height: 28px;
    border-radius: var(--radius-pill);
    background: var(--line-strong);
    opacity: 0.15;
}

.plugin-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Squircle Mask for Icon Container */
.plugin-icon,
.admin-plugin-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    background: linear-gradient(135deg, var(--surface-soft), var(--surface-opaque));
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.03);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--blue);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    /* Apple squircle math fallback */
    border-radius: 14px; 
    transition: var(--transition);
}

.plugin-card:hover .plugin-icon {
    transform: scale(1.05);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
}

.plugin-img,
.plugin-icon img,
.admin-plugin-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: var(--transition);
}

.plugin-info {
    flex: 1;
    min-width: 0;
}

.plugin-name-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.plugin-name,
.admin-plugin-name {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
}

.plugin-author,
.plugin-author-multiple {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.2;
}

.plugin-author a,
.plugin-author-multiple a {
    color: var(--muted);
}

.plugin-author a:hover,
.plugin-author-multiple a:hover {
    color: var(--blue);
}

/* Refined Multi-Author Badge */
.author-badge {
    position: relative;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    background: var(--surface-soft);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: default;
    border: 1px solid var(--line);
}

.author-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 50%;
    transform: translateX(50%) translateY(8px);
    z-index: 100;
    display: none;
    width: 160px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-opaque);
    color: var(--ink);
    box-shadow: var(--shadow);
    transition: var(--transition-fast);
    opacity: 0;
}

.author-badge:hover .author-tooltip {
    display: block;
    opacity: 1;
    transform: translateX(50%) translateY(0);
}

.author-tooltip-content {
    display: grid;
    gap: 4px;
}

.author-item {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.author-item:hover {
    background: var(--surface-soft);
}

/* Beautiful Description Styles with Proper Line Clamp */
.plugin-description,
.admin-plugin-description {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin-bottom: 8px;
}

.plugin-meta,
.admin-plugin-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.update-time {
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 500;
}

.install-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.install-count {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
}

/* Beautiful pill install button */
.install-btn {
    min-width: 68px;
    height: 28px;
    border-radius: var(--radius-pill);
    background: rgba(0, 113, 227, 0.08);
    color: var(--blue);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    transition: var(--transition);
}

.plugin-card:hover .install-btn {
    background: var(--blue);
    color: white;
}

.install-btn:hover {
    transform: scale(1.05);
}

.install-btn:active {
    transform: scale(0.95);
}

/* Loading & Empty States */
.loading,
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 40px;
    transition: var(--transition);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--muted);
    stroke-width: 1.5;
}

.empty-state h3 {
    margin-bottom: 6px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

/* Modals Refactoring: iPadOS style Sheets */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark .modal {
    background: rgba(0, 0, 0, 0.6);
}

.modal.show {
    display: flex;
}

.modal-content {
    width: min(500px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-opaque);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
    animation: modalSheetUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark .modal-content {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSheetUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header,
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
}

.modal-header {
    border-bottom: 1px solid var(--line);
}

.modal-footer {
    border-top: 1px solid var(--line);
    background: var(--surface-soft);
    justify-content: flex-end;
    gap: 12px;
}

.modal-header h2,
.modal-title {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.modal-body {
    padding: 24px;
}

/* Sleek close button */
.close-btn,
.toast-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--ink);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    transition: var(--transition-fast);
}

.close-btn:hover,
.toast-close:hover {
    background: var(--line-strong);
}

.form-group {
    margin-bottom: 20px;
}

.form-label,
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 600;
}

.form-input,
.form-group input {
    height: 40px;
    border-radius: var(--radius-sm);
    padding: 0 16px;
}

.form-textarea,
.form-group textarea {
    min-height: 100px;
    padding: 12px;
    resize: vertical;
    border-radius: var(--radius-sm);
}

/* Toast Notifications: iOS Banner style */
.toast {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(380px, calc(100% - 32px));
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    background: rgba(28, 28, 30, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    animation: toastSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideDown {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
}

.toast-message {
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
}

.toast-close {
    color: #a1a1aa;
    background: transparent;
}

.toast-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Login Shell Styles (Full Split Screen Design)
   ========================================================================== */
.login-page {
    background-color: #000000;
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(0, 113, 227, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(52, 199, 89, 0.1) 0%, transparent 50%);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 460px;
}

.auth-visual {
    min-height: 100vh;
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='1' fill='rgba(255,255,255,0.07)'/%3E%3C/svg%3E");
    mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 80%);
}

.auth-visual > * {
    position: relative;
    z-index: 1;
}

.auth-visual .brand-mark {
    box-shadow: 0 4px 12px rgba(41, 151, 255, 0.3);
}

.auth-visual .brand-name {
    color: white;
}

.auth-visual .brand-caption,
.auth-visual .eyebrow,
.auth-copy p {
    color: #a1a1aa;
}

.auth-copy h1 {
    max-width: 600px;
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 30%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-copy p {
    max-width: 480px;
    margin-top: 20px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Access Control Pane: macOS Sidebar Style Lines */
.access-panel {
    width: min(380px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.access-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: #a1a1aa;
}

.access-line:last-child {
    border-bottom: 0;
}

.access-line strong {
    color: var(--green);
    font-weight: 600;
}

/* Obsidian Glass Login Card */
.login-card {
    align-self: center;
    width: min(380px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(28, 28, 30, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.login-card .eyebrow {
    margin-bottom: 10px;
}

.login-header h2 {
    color: white;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.auth-form .form-label {
    color: #e4e4e7;
}

.auth-form .form-input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.auth-form .form-input:focus {
    border-color: var(--blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.15);
}

.login-btn {
    width: 100%;
    min-height: 42px;
    border-radius: var(--radius-pill);
    background: white;
    color: black;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    margin-top: 12px;
}

.login-btn:hover {
    background: var(--blue);
    color: white;
    box-shadow: 0 6px 20px rgba(41, 151, 255, 0.3);
    transform: translateY(-1.5px);
}

.login-btn:active {
    transform: translateY(0) scale(0.98);
}

.error-message,
.success-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(255, 69, 58, 0.15);
    background: rgba(255, 69, 58, 0.08);
    color: #ff453a;
}

.success-message {
    border-color: rgba(48, 209, 88, 0.15);
    background: rgba(48, 209, 88, 0.08);
    color: #30d158;
}

.back-link {
    margin-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

.back-link a {
    color: #a1a1aa;
    font-weight: 600;
}

.back-link a:hover {
    color: white;
}

/* ==========================================================================
   Admin Control Suite (macOS Dashboard aesthetics)
   ========================================================================== */
.admin-page {
    background-color: var(--paper);
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}

/* Glass Sidebar Navigation */
.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 32px 20px;
    background: var(--surface-opaque);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 36px;
    overflow: visible;
}

body.dark .admin-sidebar {
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px);
}

.admin-sidebar .brand-mark {
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.15);
}

.admin-nav {
    display: grid;
    gap: 6px;
}

.admin-nav-item {
    min-height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: transparent;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: var(--surface-soft);
    color: var(--ink);
}

.admin-nav-item.active {
    font-weight: 700;
    background: rgba(0, 113, 227, 0.08);
    color: var(--blue);
}

body.dark .admin-nav-item.active {
    background: rgba(41, 151, 255, 0.15);
}

/* Workspace Console Header */
.admin-workspace {
    min-width: 0;
    padding: 48px;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.admin-title {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-subtitle {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.95rem;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Metrics widgets panel: iOS widgets style */
.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.metric-tile {
    min-height: 100px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.metric-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-tile span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.metric-tile strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.metric-visual {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.metric-chart {
    width: 90px;
    height: 38px;
    opacity: 0.85;
}

.metric-ring {
    width: 48px;
    height: 48px;
    transform: rotate(-90deg);
}

.metric-ring .ring-bg {
    opacity: 0.15;
}

.metric-ring .ring-fill {
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 0 3px var(--green));
}

.metric-gauge {
    width: 48px;
    height: 48px;
    transform: rotate(45deg);
}

.metric-gauge .gauge-bg {
    opacity: 0.15;
}

.metric-gauge .gauge-fill {
    filter: drop-shadow(0 0 3px var(--orange));
}

/* Command Filter Bar */
.admin-commandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.table-title {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 750;
}

.table-subtitle {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.85rem;
}

.admin-search-wrap {
    width: min(340px, 100%);
}

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

/* Admin lists cards redesign */
.admin-plugin-card {
    min-height: 210px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
    animation: cardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--card-index, 0) * 0.04s);
}

.admin-plugin-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--card-accent, var(--green));
    border-radius: 0 0 3px 3px;
    opacity: 0;
    transition: var(--transition);
}

.admin-plugin-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.admin-plugin-card:hover::before {
    opacity: 0.85;
}

.admin-plugin-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.admin-plugin-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-compact {
    min-height: 30px;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.btn-secondary {
    background: var(--surface-soft);
    border-color: transparent;
    color: var(--ink);
}

.btn-danger {
    background: rgba(255, 59, 48, 0.08);
    color: var(--danger);
    border-color: transparent;
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.2);
}

.btn-quiet {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
    box-shadow: none;
}

.btn-quiet:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

.metric-alert-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 3px solid var(--orange);
    border-radius: 50%;
    color: var(--orange);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 900;
}

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

/* Administrator access management */
.user-management-panel {
    width: min(860px, 100%);
}

.user-management-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--blue);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-user-create {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(180px, 1fr) 170px auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
}

.admin-user-field {
    min-width: 0;
    margin: 0;
}

.admin-user-role {
    width: 100%;
    min-width: 150px;
    cursor: pointer;
}

.admin-user-add {
    white-space: nowrap;
}

.admin-users-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 26px 2px 12px;
}

.admin-users-heading strong,
.admin-users-heading span {
    display: block;
}

.admin-users-heading strong {
    color: var(--ink);
    font-size: 0.92rem;
}

.admin-users-heading span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.76rem;
}

.admin-users-list {
    display: grid;
    gap: 10px;
}

.admin-user-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto 170px auto;
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 13px 14px;
    transition: var(--transition-fast);
}

.admin-user-row.is-disabled {
    opacity: 0.7;
}

.admin-user-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-user-identity strong,
.admin-user-id {
    display: block;
}

.admin-user-identity strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-id {
    margin-top: 2px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.admin-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 800;
}

.admin-user-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-user-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
}

.admin-user-row.is-enabled .admin-user-status {
    color: var(--green);
}

.admin-user-row.is-enabled .admin-user-status i {
    background: var(--green);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent);
}

.admin-user-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

/* Apple theme: layered glass cards and restrained status color */
body.theme-apple .admin-user-create {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body.theme-apple .admin-user-row {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

body.theme-apple .admin-user-row:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

body.theme-apple .admin-user-avatar {
    border-radius: 12px;
    background: color-mix(in srgb, var(--blue) 12%, var(--surface));
    color: var(--blue);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 12%, transparent);
}

body.theme-apple .admin-user-role {
    border-color: transparent;
    background-color: var(--surface-soft);
}

body.theme-apple.dark .admin-user-create {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Geek theme: terminal-like blocks, hard borders and neon accents */
body.theme-geek .user-management-kicker {
    color: var(--green);
    letter-spacing: 0.08em;
}

body.theme-geek .user-management-kicker::before {
    content: "$ ";
    color: var(--orange);
}

body.theme-geek .admin-user-create {
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--surface);
    box-shadow: 4px 4px 0 var(--green);
}

body.theme-geek .admin-users-heading {
    margin-top: 30px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--line-strong);
}

body.theme-geek .admin-users-heading strong,
body.theme-geek .admin-user-identity strong,
body.theme-geek .admin-user-status {
    font-family: var(--font-mono);
}

body.theme-geek .admin-user-row {
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: var(--surface);
}

body.theme-geek .admin-user-row:hover {
    border-color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    transform: translate(-1px, -1px);
}

body.theme-geek .admin-user-row.is-disabled {
    opacity: 0.62;
    border-style: dashed;
}

body.theme-geek .admin-user-avatar {
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--green);
    color: #101615;
    box-shadow: 3px 3px 0 var(--ink);
}

body.theme-geek .admin-user-id {
    color: var(--orange);
}

body.theme-geek .admin-user-role {
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background-color: var(--surface-soft);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
}

body.theme-geek .admin-user-status i {
    border-radius: 0;
    box-shadow: none;
}

body.theme-geek .admin-user-actions .btn {
    border-radius: 0;
    font-family: var(--font-mono);
}

body.theme-geek.dark .admin-user-create,
body.theme-geek.dark .admin-user-row {
    background: var(--surface);
}

/* Batch resource health check */
.resource-check-panel {
    width: min(940px, 100%);
}

.resource-check-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.resource-check-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
}

.resource-check-intro strong {
    color: var(--ink);
    font-size: 0.95rem;
}

.resource-check-intro p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.resource-check-progress {
    margin-top: 18px;
}

.resource-check-progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 0.75rem;
}

.resource-check-progress-copy strong {
    color: var(--ink);
    font-family: var(--font-mono);
}

.resource-check-progress-track {
    height: 7px;
    margin-top: 8px;
    overflow: hidden;
    background: var(--surface-soft);
}

.resource-check-progress-track i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--green);
    transition: width 0.35s ease;
}

.resource-check-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.resource-summary-filter {
    width: 100%;
    padding: 13px 15px;
    border: 0;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: var(--transition);
}

.resource-check-summary span,
.resource-check-summary strong {
    display: block;
}

.resource-check-summary span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.resource-check-summary strong {
    margin-top: 4px;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 1.35rem;
}

.resource-check-summary .is-valid strong {
    color: var(--green);
}

.resource-check-summary .is-invalid strong {
    color: var(--danger);
}

.resource-check-summary .is-error strong {
    color: var(--orange);
}

.resource-summary-filter.is-active {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.resource-check-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
}

.resource-check-toolbar > span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.resource-check-toolbar .btn-danger {
    background: color-mix(in srgb, var(--danger) 10%, var(--surface));
    color: var(--danger);
}

.resource-check-toolbar .btn-danger:not(:disabled):hover {
    background: var(--danger);
    color: #fff;
}

.resource-check-toolbar .btn:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.resource-check-results {
    display: grid;
    gap: 9px;
}

.resource-check-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    min-width: 0;
}

.resource-check-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 8px;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.resource-check-info {
    min-width: 0;
}

.resource-check-info strong,
.resource-check-info a,
.resource-check-info p {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-check-info strong {
    color: var(--ink);
    font-size: 0.84rem;
}

.resource-check-info a {
    margin-top: 3px;
    color: var(--blue);
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.resource-check-info p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.72rem;
}

.resource-check-time {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.67rem;
    white-space: nowrap;
}

.resource-check-empty,
.resource-check-alert {
    padding: 24px;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

.resource-check-alert {
    margin-bottom: 10px;
    color: var(--danger);
}

/* Apple resource check: calm system-health cards */
body.theme-apple .resource-check-intro {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--green) 8%, var(--surface)),
            var(--surface));
    box-shadow: var(--shadow-soft);
}

body.theme-apple .resource-check-progress-track {
    border-radius: var(--radius-pill);
}

body.theme-apple .resource-check-progress-track i {
    border-radius: inherit;
    box-shadow: 0 0 12px color-mix(in srgb, var(--green) 35%, transparent);
}

body.theme-apple .resource-summary-filter,
body.theme-apple .resource-check-item,
body.theme-apple .resource-check-empty,
body.theme-apple .resource-check-alert {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

body.theme-apple .resource-summary-filter {
    box-shadow: var(--shadow-soft);
}

body.theme-apple .resource-summary-filter:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

body.theme-apple .resource-check-item:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-soft);
}

body.theme-apple .resource-check-state {
    border-radius: var(--radius-pill);
}

body.theme-apple .status-valid .resource-check-state {
    background: color-mix(in srgb, var(--green) 12%, transparent);
    color: var(--green);
}

body.theme-apple .status-invalid .resource-check-state {
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    color: var(--danger);
}

body.theme-apple .status-error .resource-check-state {
    background: color-mix(in srgb, var(--orange) 12%, transparent);
    color: var(--orange);
}

body.theme-apple .status-unchecked .resource-check-state {
    background: var(--surface-soft);
    color: var(--muted);
}

/* Geek resource check: diagnostic console */
body.theme-geek .resource-check-kicker {
    color: var(--green);
}

body.theme-geek .resource-check-kicker::before {
    content: "$ health --batch ";
    color: var(--orange);
}

body.theme-geek .resource-check-intro {
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--surface);
    box-shadow: 5px 5px 0 var(--green);
}

body.theme-geek .resource-check-intro strong,
body.theme-geek .resource-check-progress-copy,
body.theme-geek .resource-check-summary,
body.theme-geek .resource-check-state {
    font-family: var(--font-mono);
}

body.theme-geek .resource-check-progress-track {
    height: 10px;
    border: 1px solid var(--ink);
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 9px,
        var(--line) 9px,
        var(--line) 10px);
}

body.theme-geek .resource-check-progress-track i {
    background: var(--green);
}

body.theme-geek .resource-summary-filter,
body.theme-geek .resource-check-item,
body.theme-geek .resource-check-empty,
body.theme-geek .resource-check-alert {
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: var(--surface);
}

body.theme-geek .resource-summary-filter {
    border-top: 4px solid var(--ink);
}

body.theme-geek .resource-summary-filter.is-active {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    box-shadow: 4px 4px 0 var(--ink);
}

body.theme-geek .resource-check-summary .is-valid {
    border-top-color: var(--green);
}

body.theme-geek .resource-check-summary .is-invalid {
    border-top-color: var(--danger);
}

body.theme-geek .resource-check-summary .is-error {
    border-top-color: var(--orange);
}

body.theme-geek .resource-check-item:hover {
    border-color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    transform: translate(-1px, -1px);
}

body.theme-geek .resource-check-state {
    border: 1px solid currentColor;
    border-radius: 0;
}

body.theme-geek .status-valid .resource-check-state {
    background: var(--green);
    color: #101615;
}

body.theme-geek .status-invalid .resource-check-state {
    background: var(--danger);
    color: white;
}

body.theme-geek .status-unchecked .resource-check-state {
    background: var(--surface-soft);
    color: var(--muted);
}

body.theme-geek .status-error .resource-check-state {
    background: var(--orange);
    color: #101615;
}

@media (max-width: 900px) {
    .admin-user-create {
        grid-template-columns: 1fr 1fr;
    }

    .admin-user-add {
        width: 100%;
    }

    .admin-user-row {
        grid-template-columns: minmax(150px, 1fr) auto;
    }

    .admin-user-role {
        min-width: 0;
    }

    .admin-user-actions {
        justify-content: flex-start;
    }

    .resource-check-item {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .resource-check-time {
        grid-column: 2;
    }
}

@media (max-width: 620px) {
    .user-management-panel .modal-body {
        padding: 16px;
    }

    .admin-user-create,
    .admin-user-row {
        grid-template-columns: 1fr;
    }

    .admin-user-status {
        justify-self: start;
    }

    .admin-user-actions {
        flex-wrap: wrap;
    }

    .admin-user-actions .btn {
        flex: 1;
    }

    .resource-check-intro {
        align-items: stretch;
        flex-direction: column;
    }

    .resource-check-summary {
        grid-template-columns: 1fr 1fr;
    }

    .resource-check-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .resource-check-toolbar .btn {
        width: 100%;
    }

    .resource-check-item {
        grid-template-columns: 1fr;
    }

    .resource-check-state {
        justify-self: start;
    }

    .resource-check-time {
        grid-column: auto;
    }

    .resource-check-info a,
    .resource-check-info p {
        white-space: normal;
        word-break: break-all;
    }
}

/* Pagination navigation bar */
.pagination {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 24px 0 10px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

.pagination-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-gap,
.page-summary {
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
}

.page-summary {
    margin-left: 12px;
}

/* ==========================================================================
   Responsive Adaptations & Media Queries
   ========================================================================== */
@media (max-width: 1120px) {
    .plugins-container,
    .admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-panel {
        grid-template-columns: minmax(0, 1fr) 320px;
        padding: 36px;
    }

    .terminal-card {
        width: 280px;
    }
}

@media (max-width: 900px) {
    .hero-panel {
        grid-template-columns: 1fr;
        padding: 32px;
        min-height: auto;
    }

    .hero-visual {
        min-height: 200px;
        justify-content: center;
    }

    .terminal-card {
        left: 50%;
        transform: translateX(-50%) perspective(1000px) rotateY(0deg) rotateX(5deg);
        width: 300px;
    }
    
    .hero-panel:hover .terminal-card {
        transform: translateX(-50%) perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    }

    .widget-stack {
        display: none; /* Hide stack items on layout wrap to keep clean */
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: auto;
        gap: 60px;
        padding: 40px;
    }
    
    .auth-copy h1 {
        font-size: 2.6rem;
    }

    .login-card {
        margin: 0 auto 60px;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        padding: 24px;
        gap: 20px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .admin-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 720px) {
    .app-shell {
        width: min(100% - 32px, 1200px);
        padding-top: 24px;
    }

    .site-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        top: calc(12px + env(safe-area-inset-top, 0px));
        border-radius: var(--radius-md);
        gap: 12px;
        width: auto;
    }

    .catalog-toolbar,
    .admin-header,
    .admin-commandbar {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .buttons-container,
    .admin-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sort-container {
        width: 100%;
    }
    
    .sort-btn {
        flex: 1;
    }

    .nav-link,
    .sort-btn,
    .submit-btn,
    .btn {
        flex: 1 1 auto;
    }

    .hero-panel h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 8px;
    }

    .hero-stats span {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-panel {
        padding: 20px;
    }

    .search-container {
        max-width: 100%;
        width: 100%;
    }

    .plugin-card,
    .skeleton-card {
        padding: 16px;
        gap: 12px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .plugins-container,
    .admin-grid,
    .admin-metrics {
        grid-template-columns: 1fr;
    }

    .plugin-header,
    .plugin-info {
        width: 100%;
    }

    .plugin-name-container,
    .plugin-meta,
    .admin-plugin-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .install-row {
        width: 100%;
        justify-content: space-between;
        padding-top: 4px;
    }

    .install-btn {
        min-width: 90px;
    }

    .auth-visual {
        padding: 32px 24px;
    }

    .auth-copy h1 {
        font-size: 2rem;
    }

    .admin-workspace {
        padding: 32px 20px;
    }

    .admin-search-wrap {
        width: 100%;
    }
}

/* ==========================================================================
   Admin workspace views — conventional list/detail management layout
   ========================================================================== */
.admin-view {
    display: none;
    width: 100%;
    max-width: 1480px;
    margin-right: auto;
    margin-left: auto;
}

.admin-view.is-active {
    display: block;
    animation: adminViewIn .24s ease both;
}

@keyframes adminViewIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-page-panel,
.user-management-panel,
.resource-check-panel {
    width: 100%;
    max-width: 1440px;
}

.admin-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.admin-back-link {
    display: block;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
}

.admin-back-link:hover {
    text-decoration: underline;
}

.admin-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 22px;
    align-items: start;
}

.admin-form-card,
.admin-users-table-card,
.resource-page-body {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.admin-form-card {
    padding: 26px;
}

.settings-form-card {
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;
}

#configModal .admin-form-actions {
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;
}

.admin-section-heading {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.admin-section-heading h2 {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 760;
}

.admin-section-heading p {
    margin-top: 4px;
    color: var(--muted);
    font-size: .78rem;
}

.admin-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(14px);
}

.plugin-editor-panel .symbol-style-editor {
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* Plugin list table */
.plugins-grid.admin-grid {
    display: block;
}

.admin-data-table {
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.admin-list-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.admin-status-filter {
    position: relative;
}

.admin-status-filter > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.admin-status-filter select {
    min-width: 132px;
    height: 42px;
    padding: 0 34px 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    outline: none;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
}

.admin-status-filter select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent);
}

.admin-table-head,
.admin-table-row {
    display: grid;
    grid-template-columns:
        minmax(300px, 2fr)
        minmax(140px, .75fr)
        minmax(155px, .75fr)
        minmax(120px, .55fr)
        auto;
    gap: 20px;
    align-items: center;
    min-width: 1040px;
}

.admin-table-head {
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-table-row {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    transition: var(--transition-fast);
}

.admin-table-row:last-child {
    border-bottom: 0;
}

.admin-table-row:hover {
    background: color-mix(in srgb, var(--blue) 4%, var(--surface));
}

.admin-table-plugin {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.admin-table-plugin .admin-plugin-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 12px;
}

.admin-table-plugin strong,
.admin-table-plugin span,
.admin-table-author strong,
.admin-table-author span,
.admin-table-time strong,
.admin-table-time span {
    display: block;
}

.admin-table-plugin strong {
    overflow: hidden;
    color: var(--ink);
    font-size: .9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-table-plugin span {
    overflow: hidden;
    max-width: 620px;
    margin-top: 4px;
    color: var(--muted);
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-table-author strong,
.admin-table-time strong {
    color: var(--ink);
    font-size: .78rem;
}

.admin-table-author span,
.admin-table-time span {
    margin-bottom: 3px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .66rem;
}

.admin-table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.admin-table-status {
    min-width: 0;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: var(--radius-pill);
    font-size: .68rem;
    font-weight: 800;
    white-space: nowrap;
}

.admin-table-status small {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .61rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-status-badge.status-valid {
    background: color-mix(in srgb, var(--green) 12%, transparent);
    color: var(--green);
}

.admin-status-badge.status-invalid {
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    color: var(--danger);
}

.admin-status-badge.status-error {
    background: color-mix(in srgb, var(--orange) 12%, transparent);
    color: var(--orange);
}

.admin-status-badge.status-unchecked {
    background: var(--surface-soft);
    color: var(--muted);
}

.skeleton-table-row span {
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--surface-soft), var(--line), var(--surface-soft));
    background-size: 200% 100%;
    animation: skeletonPulse 1.4s linear infinite;
}

/* User and resource pages */
.admin-users-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.admin-users-layout .admin-user-create {
    display: block;
    position: sticky;
    top: 24px;
    padding: 24px;
}

.admin-users-layout .admin-user-field {
    margin-bottom: 16px;
}

.admin-users-layout .admin-user-add {
    width: 100%;
}

.admin-users-table-card {
    padding: 22px;
}

.admin-users-table-card .admin-users-heading {
    margin: 0 0 16px;
}

.admin-user-password-editor {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border-top: 1px dashed var(--line-strong);
    background: var(--surface-soft);
}

.admin-user-password-editor[hidden] {
    display: none;
}

.admin-user-password-editor label {
    color: var(--ink);
    font-size: .75rem;
    font-weight: 700;
}

.resource-page-body {
    padding: 24px;
}

.resource-page-body .resource-check-results {
    max-height: none;
}

body.theme-geek .admin-form-card,
body.theme-geek .admin-data-table,
body.theme-geek .admin-users-table-card,
body.theme-geek .resource-page-body {
    border-color: var(--ink);
    border-radius: 0;
    box-shadow: 5px 5px 0 var(--ink);
}

body.theme-geek .admin-table-head {
    border-bottom-color: var(--ink);
    font-family: var(--font-mono);
}

body.theme-geek .admin-status-filter select,
body.theme-geek .admin-status-badge {
    border: 1px solid currentColor;
    border-radius: 0;
    font-family: var(--font-mono);
}

body.theme-geek .admin-status-filter select {
    border-color: var(--line-strong);
    background: var(--surface);
}

body.theme-geek .admin-status-badge.status-valid {
    background: var(--green);
    color: #101615;
}

body.theme-geek .admin-status-badge.status-invalid {
    background: var(--danger);
    color: #fff;
}

body.theme-geek .admin-status-badge.status-error {
    background: var(--orange);
    color: #101615;
}

body.theme-geek .admin-table-row:hover {
    background: color-mix(in srgb, var(--green) 10%, var(--surface));
}

body.theme-geek .admin-table-plugin strong,
body.theme-geek .admin-table-author strong,
body.theme-geek .admin-table-time strong,
body.theme-geek .admin-section-heading h2,
body.theme-geek .admin-back-link {
    font-family: var(--font-mono);
}

@media (max-width: 1050px) {
    .admin-form-layout,
    .admin-users-layout {
        grid-template-columns: 1fr;
    }

    .admin-users-layout .admin-user-create {
        position: static;
    }

    .admin-data-table {
        overflow-x: auto;
    }
}

@media (max-width: 720px) {
    .admin-list-filters {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .admin-status-filter select,
    .admin-search-wrap {
        width: 100%;
    }

    .admin-page-heading {
        display: block;
    }

    .admin-form-card,
    .admin-users-table-card,
    .resource-page-body {
        padding: 18px;
    }

    .admin-form-layout {
        display: block;
    }

    .admin-form-layout > * + * {
        margin-top: 16px;
    }

    .admin-user-password-editor {
        grid-template-columns: 1fr 1fr;
    }

    .admin-user-password-editor label,
    .admin-user-password-editor input {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   SF Symbol Editor — Apple / Geek theme-specific presentation
   ========================================================================== */
#pluginModal .modal-content {
    width: min(720px, 100%);
}

.symbol-style-editor {
    margin: 4px 0 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--surface-soft), var(--surface-opaque));
}

.symbol-style-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.symbol-style-heading h4 {
    margin: 3px 0 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1rem;
}

.symbol-style-heading > span {
    color: var(--muted);
    font-size: .76rem;
}

.symbol-style-kicker {
    color: var(--blue);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

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

.symbol-style-grid .form-group {
    margin-bottom: 14px;
}

.symbol-style-grid select {
    width: 100%;
}

.symbol-preview-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.symbol-preview-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface-opaque);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
}

.symbol-preview-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: .6rem;
    letter-spacing: .08em;
}

.symbol-preview-icon img {
    width: 100%;
    height: 100%;
    padding: 9px;
    object-fit: contain;
}

.preview-apple .symbol-preview-icon {
    box-shadow: 0 8px 24px rgba(0, 113, 227, .12);
}

.preview-geek .symbol-preview-icon {
    border: 1px solid #23d18b;
    border-radius: 4px;
    background: #101514;
    box-shadow: 4px 4px 0 rgba(35, 209, 139, .28);
}

body.theme-geek .symbol-style-editor {
    border: 1px solid var(--ink);
    border-radius: 2px;
    background: var(--surface-opaque);
    box-shadow: 6px 6px 0 var(--ink);
}

body.theme-geek .symbol-style-kicker {
    color: var(--green);
    font-family: var(--font-mono);
}

body.theme-geek .symbol-style-heading h4,
body.theme-geek .symbol-style-heading > span,
body.theme-geek .symbol-style-editor label {
    font-family: var(--font-mono);
}

body.theme-geek .symbol-preview-card {
    border-radius: 2px;
    border-color: var(--ink);
    font-family: var(--font-mono);
    box-shadow: 3px 3px 0 var(--line-strong);
}

body.theme-geek .admin-plugin-icon {
    border-radius: 4px;
}

@media (max-width: 640px) {
    .symbol-style-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .symbol-preview-row {
        grid-template-columns: 1fr;
    }

    .symbol-style-heading {
        display: block;
    }
}

/* Card staggered entry animation */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Theme Selector Component
   ========================================================================== */
.theme-selector {
    position: relative;
}

.theme-selector-btn {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface-opaque);
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-soft);
}

.theme-selector-btn:hover {
    background: var(--surface-soft);
    border-color: var(--line-strong);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.theme-selector-btn:active {
    transform: translateY(0) scale(0.98);
}

.theme-selector-icon {
    font-size: 1rem;
    line-height: 1;
}

.theme-selector-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 2000;
    display: none;
    min-width: 160px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-opaque);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* 管理页侧边栏底部：下拉框向上弹出 */
.admin-sidebar .theme-selector-dropdown {
    top: auto;
    bottom: calc(100% + 8px);
    left: 0;
    right: auto;
}

.theme-selector-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.18s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    transition: background 0.15s ease;
    text-align: left;
}

.theme-option:hover {
    background: var(--surface-soft);
}

.theme-option.active {
    background: var(--blue);
    color: white;
    font-weight: 600;
}

.theme-option-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.theme-option-name {
    flex: 1;
}

.theme-option-check {
    font-size: 0.8rem;
    opacity: 0;
}

.theme-option.active .theme-option-check {
    opacity: 1;
}

/* ==========================================================================
   Geek Theme — Variable Overrides (Light)
   ========================================================================== */
body.theme-geek {
    --paper: #f4f7f2;
    --surface: #ffffff;
    --surface-opaque: #ffffff;
    --surface-soft: #eef3ef;
    --ink: #151a1f;
    --muted: #667079;
    --line: #d8ded8;
    --line-strong: #aeb8b0;
    --green: #23d18b;
    --orange: #ff6b35;
    --blue: #2f6df6;
    --yellow: #ffd166;
    --danger: #d63c2f;
    --shadow: 0 18px 45px rgba(23, 31, 38, 0.11);
    --shadow-soft: 0 10px 24px rgba(23, 31, 38, 0.08);
    --shadow-hover: 0 18px 45px rgba(23, 31, 38, 0.11);
    --radius: 8px;
    --radius-lg: 8px;
    --radius-md: 8px;
    --radius-sm: 8px;
    --radius-pill: 8px;
    --font-display: "Avenir Next", "PingFang SC", "Microsoft YaHei UI", sans-serif;
    --font-body: "Gill Sans", "PingFang SC", "Microsoft YaHei UI", sans-serif;
    --font-mono: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", monospace;
    --transition: all 0.18s ease;
    --transition-fast: all 0.12s ease;
    --transition-spring: all 0.18s ease;
}

/* Geek Theme — Variable Overrides (Dark) */
body.theme-geek.dark {
    --paper: #0c1110;
    --surface: #151b1a;
    --surface-opaque: #151b1a;
    --surface-soft: #101615;
    --ink: #f2f7f3;
    --muted: #9aa7a2;
    --line: #2b3834;
    --line-strong: #4c5c55;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
    --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.28);
    --shadow-hover: 0 18px 45px rgba(0, 0, 0, 0.36);
}

/* ==========================================================================
   Geek Theme — Background Grid Pattern
   ========================================================================== */
body.theme-geek {
    background-image:
        linear-gradient(90deg, rgba(21, 26, 31, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(21, 26, 31, 0.04) 1px, transparent 1px),
        linear-gradient(135deg, rgba(35, 209, 139, 0.08), transparent 32%, rgba(47, 109, 246, 0.08) 72%, transparent);
    background-size: 44px 44px, 44px 44px, 100% 100%;
    background-attachment: scroll;
}

body.theme-geek.dark {
    background-image:
        linear-gradient(90deg, rgba(242, 247, 243, 0.04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(242, 247, 243, 0.035) 1px, transparent 1px),
        linear-gradient(135deg, rgba(35, 209, 139, 0.1), transparent 34%, rgba(255, 107, 53, 0.08) 78%, transparent);
}

/* ==========================================================================
   Geek Theme — Navigation Bar (flat, no glass)
   ========================================================================== */
body.theme-geek .site-nav {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: static;
    padding: 0;
    min-height: 56px;
    margin-bottom: 22px;
}

/* ==========================================================================
   Geek Theme — Brand Mark (hard shadow, bordered)
   ========================================================================== */
body.theme-geek .brand-mark {
    width: 42px;
    height: 42px;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 5px 5px 0 var(--ink);
}

body.theme-geek .brand-lockup:hover .brand-mark {
    transform: none;
    box-shadow: 5px 5px 0 var(--ink);
}

/* ==========================================================================
   Geek Theme — Buttons (square corners, hard shadow hover)
   ========================================================================== */
body.theme-geek .nav-link:hover,
body.theme-geek .theme-btn:hover,
body.theme-geek .sort-btn:hover,
body.theme-geek .btn:hover,
body.theme-geek .pagination-btn:hover {
    border-color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    transform: translate(-2px, -2px);
}

body.theme-geek .nav-link:active,
body.theme-geek .theme-btn:active,
body.theme-geek .sort-btn:active,
body.theme-geek .btn:active,
body.theme-geek .pagination-btn:active {
    transform: translate(0, 0);
}

body.theme-geek .sort-btn.active {
    background: var(--green);
    border-color: var(--ink);
    color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
}

body.theme-geek .sort-btn:nth-child(2).active {
    background: var(--yellow);
}

body.theme-geek .submit-btn,
body.theme-geek .btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--surface);
}

body.theme-geek .submit-btn:hover,
body.theme-geek .btn-primary:hover {
    background: var(--orange);
    color: white;
    box-shadow: 4px 4px 0 var(--ink);
    transform: translate(-2px, -2px);
}

/* ==========================================================================
   Geek Theme — Hero Panel (hard border, hard shadow, decorative bars)
   ========================================================================== */
body.theme-geek .hero-panel {
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background:
        linear-gradient(120deg, rgba(255, 209, 102, 0.36), transparent 42%),
        linear-gradient(155deg, var(--surface) 0%, var(--surface-soft) 100%);
    box-shadow: 8px 8px 0 var(--ink);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.theme-geek .hero-panel::before {
    content: "";
    position: absolute;
    inset: auto -60px -70px auto;
    width: 360px;
    height: 180px;
    transform: rotate(-12deg);
    border-top: 18px solid rgba(255, 107, 53, 0.78);
    border-bottom: 18px solid rgba(35, 209, 139, 0.65);
    border-left: none;
    border-right: none;
    opacity: 0.72;
    background: none;
    border-radius: 0;
    filter: none;
    animation: none;
}

body.theme-geek .hero-stats span {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.66);
    font-family: var(--font-mono);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.theme-geek.dark .hero-stats span {
    background: rgba(21, 27, 26, 0.76);
}

/* ==========================================================================
   Geek Theme — Terminal Card & Widget Stack
   ========================================================================== */
body.theme-geek .terminal-card {
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: #111815;
    color: #d9fbe8;
    box-shadow: 8px 8px 0 rgba(21, 26, 31, 0.9);
}

body.theme-geek .widget-stack span {
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: var(--green);
    box-shadow: 5px 5px 0 var(--ink);
    color: var(--ink);
}

body.theme-geek .widget-stack span:nth-child(2) {
    background: var(--blue);
    color: white;
}

body.theme-geek .widget-stack span:nth-child(3) {
    background: var(--orange);
    color: white;
}

/* ==========================================================================
   Geek Theme — Plugin Cards (left border accent, hard shadow)
   ========================================================================== */
body.theme-geek .plugin-card {
    border-left: 5px solid var(--card-accent, var(--green));
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.theme-geek.dark .plugin-card {
    background: rgba(21, 27, 26, 0.9);
}

body.theme-geek .plugin-card:hover {
    border-color: var(--ink);
    border-left-color: var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    transform: translate(-3px, -3px);
}

body.theme-geek .plugin-icon,
body.theme-geek .admin-plugin-icon {
    border: 1px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    border-radius: var(--radius);
}

body.theme-geek.dark .plugin-icon,
body.theme-geek.dark .admin-plugin-icon {
    border-color: var(--line-strong);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    background: var(--surface-soft);
}

body.theme-geek.dark .plugin-card:hover .plugin-icon {
    border-color: var(--green);
    box-shadow: 4px 4px 0 rgba(35, 209, 139, 0.3);
}

body.theme-geek.dark .brand-mark {
    border-color: var(--line-strong);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

body.theme-geek.dark .widget-stack span {
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
    border-color: var(--line-strong);
}

body.theme-geek.dark .terminal-card {
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
}

body.theme-geek.dark .hero-panel {
    border-color: var(--line-strong);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
}

body.theme-geek.dark .plugin-card:hover {
    border-color: var(--line-strong);
    border-left-color: var(--line-strong);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}

body.theme-geek.dark .sort-btn.active {
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    border-color: var(--line-strong);
}

body.theme-geek.dark .nav-link:hover,
body.theme-geek.dark .theme-btn:hover,
body.theme-geek.dark .sort-btn:hover,
body.theme-geek.dark .btn:hover,
body.theme-geek.dark .pagination-btn:hover {
    border-color: var(--line-strong);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

body.theme-geek.dark .install-btn {
    border-color: var(--line-strong);
}

body.theme-geek.dark .install-btn:hover {
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

body.theme-geek.dark .toast {
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
    border-color: var(--line-strong);
}

body.theme-geek.dark .modal-content {
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
    border-color: var(--line-strong);
}

body.theme-geek.dark .admin-plugin-card:hover {
    border-color: var(--line-strong);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

body.theme-geek.dark .theme-selector-dropdown {
    border-color: var(--line-strong);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}

body.theme-geek.dark .theme-selector-btn:hover {
    border-color: var(--line-strong);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

body.theme-geek.dark .submit-btn:hover,
body.theme-geek.dark .btn-primary:hover {
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

body.theme-geek.dark .pagination-btn.active {
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    border-color: var(--line-strong);
}

/* ==========================================================================
   Geek Theme — Search Input Focus
   ========================================================================== */
body.theme-geek .search-input:focus,
body.theme-geek .admin-search-input:focus,
body.theme-geek .form-input:focus,
body.theme-geek .form-textarea:focus,
body.theme-geek .form-group input:focus,
body.theme-geek .form-group textarea:focus {
    border-color: var(--ink);
    box-shadow: 4px 4px 0 var(--green);
}

/* ==========================================================================
   Geek Theme — Install Button
   ========================================================================== */
body.theme-geek .install-btn {
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: var(--yellow);
    color: var(--ink);
    font-weight: 800;
}

body.theme-geek .install-btn:hover {
    box-shadow: 4px 4px 0 var(--ink);
    transform: translate(-2px, -2px);
}

/* ==========================================================================
   Geek Theme — Loading & Empty State
   ========================================================================== */
body.theme-geek .loading,
body.theme-geek .empty-state {
    border: 1px dashed var(--line-strong);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.theme-geek.dark .loading,
body.theme-geek.dark .empty-state {
    background: rgba(21, 27, 26, 0.58);
}

/* ==========================================================================
   Geek Theme — Modal
   ========================================================================== */
body.theme-geek .modal-content {
    border: 1px solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.theme-geek .close-btn:hover,
body.theme-geek .toast-close:hover {
    border-color: var(--ink);
    background: var(--yellow);
}

/* ==========================================================================
   Geek Theme — Toast
   ========================================================================== */
body.theme-geek .toast {
    border: 1px solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
}

body.theme-geek .toast-icon {
    border: 1px solid var(--ink);
    background: var(--green);
}

/* ==========================================================================
   Geek Theme — Login Page
   ========================================================================== */
body.theme-geek.login-page {
    background-color: #101615;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

body.theme-geek .login-card {
    border: 1px solid var(--ink);
    box-shadow: 8px 8px 0 var(--green);
}

body.theme-geek .login-btn {
    border: 1px solid var(--ink);
    background: var(--green);
    color: var(--ink);
}

body.theme-geek .login-btn:hover {
    box-shadow: 5px 5px 0 var(--ink);
    transform: translate(-2px, -2px);
}

body.theme-geek .auth-visual .brand-mark {
    box-shadow: 5px 5px 0 white;
    border-color: white;
}

/* ==========================================================================
   Geek Theme — Admin Sidebar & Cards
   ========================================================================== */
body.theme-geek .admin-sidebar {
    background: #101615;
    color: white;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.theme-geek .admin-sidebar .brand-mark {
    border-color: white;
    box-shadow: 5px 5px 0 white;
}

body.theme-geek .admin-sidebar .brand-caption {
    color: rgba(255, 255, 255, 0.64);
}

body.theme-geek .admin-nav-item {
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
}

body.theme-geek .admin-nav-item:hover,
body.theme-geek .admin-nav-item.active {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

body.theme-geek .admin-plugin-card {
    border-top: 5px solid var(--card-accent, var(--green));
    background: rgba(255, 255, 255, 0.88);
}

body.theme-geek.dark .admin-plugin-card {
    background: rgba(21, 27, 26, 0.9);
}

body.theme-geek .admin-plugin-card:hover {
    border-color: var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
}

/* ==========================================================================
   Geek Theme — Dark Mode: Admin Page & Workspace
   ========================================================================== */
body.theme-geek.dark.admin-page {
    background-color: var(--paper);
}

body.theme-geek.dark .admin-workspace {
    background-color: var(--paper);
}

body.theme-geek.dark .metric-tile {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.theme-geek.dark .admin-header {
    border-bottom-color: var(--line);
}

body.theme-geek.dark .admin-commandbar {
    border-top-color: var(--line);
    border-bottom-color: var(--line);
}

body.theme-geek.dark .admin-search-input {
    background: var(--surface);
}

body.theme-geek.dark .modal-content {
    background: var(--surface-opaque);
}

body.theme-geek.dark .modal-footer {
    background: var(--surface-soft);
}

body.theme-geek.dark .hero-stats span {
    background: rgba(21, 27, 26, 0.76);
}

body.theme-geek.dark .search-input {
    background: var(--surface);
}

body.theme-geek.dark .form-group input,
body.theme-geek.dark .form-group textarea {
    background: var(--surface-soft);
}

/* ==========================================================================
   Geek Theme — Pagination Active
   ========================================================================== */
body.theme-geek .pagination-btn.active {
    background: var(--green);
    border-color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
}

/* ==========================================================================
   Geek Theme — Theme Selector Overrides
   ========================================================================== */
body.theme-geek .theme-selector-btn {
    border-radius: var(--radius);
}

body.theme-geek .theme-selector-btn:hover {
    box-shadow: 4px 4px 0 var(--ink);
    border-color: var(--ink);
    transform: translate(-2px, -2px);
}

body.theme-geek .theme-selector-dropdown {
    border: 1px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.theme-geek .theme-option.active {
    background: var(--green);
    color: var(--ink);
}

/* ==========================================================================
   Geek Theme — Skeleton Cards
   ========================================================================== */
body.theme-geek .skeleton-card {
    border-left: 5px solid var(--line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ==========================================================================
   Geek Theme — Mobile Responsive Overrides
   ========================================================================== */
@media (max-width: 720px) {
    body.theme-geek .hero-panel {
        box-shadow: 5px 5px 0 var(--ink);
    }

    body.theme-geek .site-nav {
        position: static;
        border-radius: 0;
        padding: 0;
        top: auto;
    }
}
