
:root {
    /* Premium Design Tokens - 2024 Modern Aesthetic */
    --accent: #50e3c2;
    --accent-primary: #50e3c2;
    --accent-secondary: #2d8cff;
    --accent-strong: #1a73e8;
    --accent-glow: rgba(80, 227, 194, 0.4);

    /* Cyber/Premium Palette */
    --cyber-purple: #bb9af7;

    /* Semantic Backgrounds (Glass-Ready) */
    --bg-deep: #05070a;
    --bg-darker: #080b0f;
    --bg-primary: radial-gradient(circle at 50% 0%, #1a1b26 0%, #05070a 100%);
    --bg-card: rgba(26, 27, 38, 0.45);
    --bg-panel: rgba(18, 24, 34, 0.75);
    --bg-input: rgba(0, 0, 0, 0.3);
    --bg-navbar: rgba(5, 7, 10, 0.7);
    --bg-active: rgba(80, 227, 194, 0.15);

    /* Typography System */
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Glassmorphism & Borders */
    --border-soft: rgba(255, 255, 255, 0.05);
    --border-medium: rgba(255, 255, 255, 0.12);
    --border-glow: rgba(80, 227, 194, 0.3);
    --glass-blur: blur(16px);
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-background: rgba(12, 16, 22, 0.65);

    /* Elevation & Feedback */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-full: 100px;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(80, 227, 194, 0.1);

    /* Refined Text Colors */
    --text-primary: #f8fbff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-on-accent: #05070a;
}

/* ============================================================================
   InferLink 2C Product Refresh — public pages, Console, Ops
   ============================================================================ */

:root {
    --il-ink: #f7fbff;
    --il-dim: #9aa9ba;
    --il-muted: #667588;
    --il-panel: rgba(9, 14, 21, 0.72);
    --il-panel-strong: rgba(11, 17, 26, 0.92);
    --il-line: rgba(255, 255, 255, 0.095);
    --il-line-strong: rgba(80, 227, 194, 0.28);
    --il-aqua: #50e3c2;
    --il-blue: #58a6ff;
    --il-violet: #a78bfa;
    --il-amber: #ffc66d;
    --il-red: #ff7a90;
    --il-radius: 18px;
    --il-radius-sm: 12px;
    --il-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --il-glow: 0 0 42px rgba(80, 227, 194, 0.14);
}

body.store-app {
    background:
        radial-gradient(circle at 18% -8%, rgba(80, 227, 194, 0.12), transparent 31rem),
        radial-gradient(circle at 84% 5%, rgba(88, 166, 255, 0.12), transparent 29rem),
        linear-gradient(135deg, #070a0f 0%, #101620 52%, #080b10 100%);
}

body.store-app::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.52), transparent 72%);
}

.store-app .navbar {
    padding: 0.82rem 5.4%;
    background: rgba(7, 10, 15, 0.76);
    border-bottom-color: rgba(255, 255, 255, 0.075);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(22px);
}

.store-app .nav-links {
    gap: 0.3rem;
}

.store-app .nav-links a {
    position: relative;
    padding: 0.46rem 0.74rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #a8b4c3;
}

.store-app .nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
}

.store-app .nav-links a.active {
    color: #ecfffb;
    border-color: rgba(80, 227, 194, 0.22);
    background: linear-gradient(135deg, rgba(80, 227, 194, 0.13), rgba(88, 166, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.store-app .nav-links a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.42rem;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: var(--il-aqua);
    box-shadow: 0 0 16px rgba(80, 227, 194, 0.72);
}

.store-app .btn {
    min-height: 38px;
    border-radius: 999px;
    letter-spacing: 0;
    text-decoration: none;
}

.store-app .btn-primary {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 38%),
        linear-gradient(135deg, #61f4d5, #4aa9ff);
    color: #061017;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 34px rgba(80, 227, 194, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.store-app .btn-secondary {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.12);
    color: #eaf2fa;
}

.store-app .glass-card,
.store-app .home-task-card,
.store-app .home-flow-step,
.store-app .home-capability-card,
.store-app .home-trust-grid > div,
.store-app .cap-card,
.store-app .store-sidebar,
.store-app .ops-item-card,
.store-app .console-run-item,
.store-app .history-item,
.store-app .task-card-enhanced {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.028)),
        var(--il-panel);
    border-color: var(--il-line);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.store-app .page-shell {
    position: relative;
    z-index: 1;
}

.store-public .home-hero {
    isolation: isolate;
    min-height: min(680px, calc(100vh - 136px));
    border-radius: 28px;
    border-color: rgba(255, 255, 255, 0.13);
    background:
        radial-gradient(circle at 67% 18%, rgba(80, 227, 194, 0.19), transparent 24rem),
        radial-gradient(circle at 18% 85%, rgba(255, 198, 109, 0.115), transparent 22rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
}

.store-public .home-hero::before,
.store-public .home-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.store-public .home-hero::before {
    inset: 1px;
    border-radius: inherit;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 28%, rgba(80, 227, 194, 0.09) 64%, transparent);
    opacity: 0.68;
}

.store-public .home-hero::after {
    right: 5%;
    top: 10%;
    width: 38%;
    height: 70%;
    border-radius: 999px;
    border: 1px solid rgba(80, 227, 194, 0.09);
    transform: rotate(-18deg);
    filter: blur(0.2px);
}

.store-public .home-hero h1 {
    max-width: 15.5ch;
    text-wrap: balance;
}

.store-public .home-lead {
    color: #b9c7d7;
}

.store-public .home-hero-signals span {
    background: rgba(5, 10, 15, 0.42);
    border-color: rgba(255, 255, 255, 0.12);
}

.home-hero-command {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    max-width: 620px;
    margin-top: 1.25rem;
    padding: 0.72rem 0.78rem;
    border: 1px solid rgba(80, 227, 194, 0.18);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.026)),
        rgba(3, 8, 14, 0.36);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-hero-command span {
    color: var(--il-aqua);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-hero-command strong {
    min-width: 0;
    overflow: hidden;
    color: #e9f5ff;
    font-size: 0.9rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-hero-command a {
    display: inline-flex;
    min-width: 52px;
    justify-content: center;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    color: #071017;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, #61f4d5, #4aa9ff);
}

.store-public .home-workspace-preview {
    border-radius: 24px;
    border-color: rgba(255, 255, 255, 0.15);
    background:
        radial-gradient(circle at 78% 14%, rgba(80, 227, 194, 0.12), transparent 16rem),
        linear-gradient(180deg, rgba(13, 20, 30, 0.98), rgba(5, 8, 13, 0.95));
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5), var(--il-glow);
}

.store-public .preview-topbar {
    background: rgba(255, 255, 255, 0.035);
}

.preview-topbar em {
    margin-left: auto;
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    color: #dffaf4;
    font-size: 0.68rem;
    font-style: normal;
    background: rgba(80, 227, 194, 0.12);
    border: 1px solid rgba(80, 227, 194, 0.22);
}

.preview-status-strip {
    display: flex;
    gap: 0.5rem;
    padding: 0.7rem 0.78rem 0;
    overflow-x: auto;
}

.preview-status-strip span {
    flex: 0 0 auto;
    padding: 0.34rem 0.6rem;
    border-radius: 999px;
    color: #aebdce;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-status-strip span:nth-child(3) {
    color: #ffe4ae;
    background: rgba(255, 198, 109, 0.09);
    border-color: rgba(255, 198, 109, 0.18);
}

.store-public .feed-row,
.store-public .preview-feed,
.store-public .preview-canvas,
.store-public .observe-left,
.store-public .observe-right {
    background: rgba(255, 255, 255, 0.042);
    border-color: rgba(255, 255, 255, 0.085);
}

.store-public .feed-row.active {
    box-shadow: inset 3px 0 0 var(--il-aqua);
}

.store-public .feed-row.confirm {
    box-shadow: inset 3px 0 0 var(--il-amber);
}

.preview-artifacts {
    display: grid;
    gap: 0.45rem;
    padding: 0 1rem 1rem;
}

.preview-artifacts span {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding: 0 0.72rem;
    border-radius: 10px;
    color: #b9c7d7;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.preview-artifacts span::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 0.48rem;
    border-radius: 50%;
    background: var(--il-aqua);
    box-shadow: 0 0 12px rgba(80, 227, 194, 0.4);
}

.store-public .canvas-toolbar span:first-child {
    background: rgba(80, 227, 194, 0.12);
    color: #dffaf4;
}

.store-public .home-section {
    padding-top: clamp(3rem, 5.4vw, 5rem);
}

.store-public .home-section-header {
    max-width: 820px;
}

.store-public .home-section-header h2,
.store-public .home-observe-copy h2,
.store-public .home-trust h2,
.store-public .home-final-cta h2 {
    text-wrap: balance;
}

.store-public .home-task-card,
.store-public .home-flow-step,
.store-public .home-capability-card,
.store-public .home-trust-grid > div,
.store-public .home-orch-map article {
    position: relative;
    overflow: hidden;
    border-radius: var(--il-radius);
}

.store-public .home-task-card::before,
.store-public .home-flow-step::before,
.store-public .home-capability-card::before,
.store-public .home-trust-grid > div::before,
.store-public .home-orch-map article::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.075), transparent 34%);
    opacity: 0.72;
}

.store-public .home-task-card:hover,
.store-public .home-flow-step:hover,
.store-public .home-capability-card:hover {
    border-color: var(--il-line-strong);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28), 0 0 36px rgba(80, 227, 194, 0.08);
}

.store-public .home-task-card span {
    display: inline-flex;
    position: relative;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(80, 227, 194, 0.095);
    border: 1px solid rgba(80, 227, 194, 0.18);
}

.store-public .home-orch-map article {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.024));
}

.store-public .home-observe-panel {
    border-radius: 24px;
    border-color: rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 75% 5%, rgba(88, 166, 255, 0.13), transparent 17rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.026));
    box-shadow: var(--il-shadow);
}

.store-public .home-final-cta {
    border-radius: 30px;
    border-color: rgba(80, 227, 194, 0.22);
    box-shadow: var(--il-shadow), var(--il-glow);
}

.home-scenario-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    padding-top: clamp(2.6rem, 5vw, 4.6rem);
}

.home-scenario-band a {
    display: block;
    min-height: 132px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.026)),
        var(--il-panel);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.home-scenario-band a:hover {
    transform: translateY(-2px);
    border-color: rgba(80, 227, 194, 0.26);
}

.home-scenario-band span {
    color: var(--il-aqua);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-scenario-band strong {
    display: block;
    margin-top: 0.7rem;
    color: #fff;
    font-size: 1.02rem;
    line-height: 1.45;
}

.store-capability .cap-hero {
    min-height: 270px;
    border-radius: 28px;
    border-color: rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 82% 25%, var(--cap-accent-glow), transparent 21rem),
        radial-gradient(circle at 15% 105%, rgba(80, 227, 194, 0.12), transparent 20rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.088), rgba(255, 255, 255, 0.026)),
        linear-gradient(135deg, var(--cap-hero-from), var(--cap-hero-to));
    box-shadow: var(--il-shadow);
}

.store-capability .cap-hero-inner {
    max-width: 980px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(240px, 0.72fr);
}

.store-capability .cap-hero-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
        var(--cap-accent-dim);
}

.store-capability .cap-hero-copy h1 {
    font-size: clamp(2rem, 3.2vw, 3.05rem);
}

.store-capability .cap-hero-copy p {
    max-width: 650px;
    color: #b7c5d6;
}

.cap-hero-visual {
    position: relative;
    min-height: 190px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.026)),
        rgba(3, 8, 14, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.cap-hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.42;
}

.cap-hero-visual--mcp .cap-node {
    position: absolute;
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #dffaf4;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(80, 227, 194, 0.1);
    border: 1px solid rgba(80, 227, 194, 0.24);
}

.cap-hero-visual--mcp .cap-node::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 92px;
    height: 1px;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(80, 227, 194, 0.55), transparent);
}

.cap-hero-visual--mcp .cap-node--core {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #071017;
    background: linear-gradient(135deg, #61f4d5, #4aa9ff);
    z-index: 2;
}

.cap-hero-visual--mcp .cap-node:nth-child(2) { left: 10%; top: 15%; }
.cap-hero-visual--mcp .cap-node:nth-child(3) { right: 10%; top: 15%; }
.cap-hero-visual--mcp .cap-node:nth-child(4) { left: 14%; bottom: 16%; }
.cap-hero-visual--mcp .cap-node:nth-child(5) { right: 12%; bottom: 16%; }

.cap-hero-visual--skills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    padding: 1rem;
}

.cap-hero-visual--skills span,
.cap-hero-visual--workflow span,
.cap-hero-visual--software span,
.cap-hero-visual--agent span {
    position: relative;
    z-index: 1;
}

.cap-hero-visual--skills span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 14px;
    color: #efe9ff;
    font-size: 0.78rem;
    background: rgba(167, 139, 250, 0.11);
    border: 1px solid rgba(167, 139, 250, 0.22);
}

.cap-hero-visual--workflow {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.75rem;
    padding: 1rem;
}

.cap-hero-visual--workflow::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cap-accent), transparent);
}

.cap-hero-visual--workflow span {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #fff2d6;
    font-size: 0.74rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.24);
}

.cap-hero-visual--agent {
    display: grid;
    place-items: center;
}

.cap-hero-visual--agent .agent-orbit {
    position: absolute;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    border: 1px solid rgba(88, 166, 255, 0.3);
    box-shadow: inset 0 0 28px rgba(88, 166, 255, 0.1);
}

.cap-hero-visual--agent span {
    position: absolute;
    display: inline-flex;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    color: #e8f3ff;
    background: rgba(88, 166, 255, 0.12);
    border: 1px solid rgba(88, 166, 255, 0.24);
    font-size: 0.76rem;
}

.cap-hero-visual--agent span:nth-child(2) { top: 22px; left: 24px; }
.cap-hero-visual--agent span:nth-child(3) { right: 20px; top: 78px; }
.cap-hero-visual--agent span:nth-child(4) { left: 72px; bottom: 24px; }

.cap-hero-visual--cli {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem;
    font-family: var(--font-mono);
}

.cap-hero-visual--cli code {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0.72rem 0.85rem;
    border-radius: 12px;
    color: #dffaf4;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(80, 227, 194, 0.16);
}

.cap-hero-visual--software {
    display: grid;
    grid-template-columns: repeat(2, 54px);
    grid-auto-rows: 54px;
    align-content: center;
    justify-content: center;
    gap: 0.8rem;
}

.cap-hero-visual--software span {
    display: block;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(80, 227, 194, 0.08));
    border: 1px solid rgba(34, 211, 238, 0.22);
}

.cap-hero-visual--software strong {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    color: #dffaf4;
    text-align: center;
    font-size: 0.8rem;
}

.store-capability .cap-section {
    padding: 1.1rem 0 0;
}

.store-capability .cap-section-header {
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.store-capability .cap-filters {
    position: relative;
    padding: 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.store-capability .cap-search,
.store-capability .cap-sort,
.store-control textarea,
.store-control input,
.store-control select,
.store-control .filter-select {
    min-height: 42px;
    border-radius: 12px !important;
    background-color: rgba(5, 10, 15, 0.62) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--il-ink) !important;
    outline: none;
}

.store-capability .cap-search:focus,
.store-capability .cap-sort:focus,
.store-control textarea:focus,
.store-control input:focus,
.store-control select:focus {
    border-color: rgba(80, 227, 194, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(80, 227, 194, 0.11);
}

.store-capability .cap-grid {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.05rem;
}

.store-capability .cap-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    padding: 1.18rem;
}

.store-capability .cap-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 80% 8%, var(--cap-accent-dim), transparent 9rem);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.store-capability .cap-card:hover::after {
    opacity: 1;
}

.store-capability .cap-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.store-capability .cap-card h3 {
    color: #fff;
    line-height: 1.35;
}

.store-capability .cap-card-desc {
    min-height: 3.75em;
    color: #9fb0c3;
}

.cap-card-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.cap-card-action span {
    color: var(--il-muted);
    font-size: 0.76rem;
}

.cap-card-action strong {
    display: inline-flex;
    min-width: 54px;
    justify-content: center;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    color: #eafffb;
    font-size: 0.78rem;
    background: rgba(80, 227, 194, 0.11);
    border: 1px solid rgba(80, 227, 194, 0.2);
}

.store-control .page-header,
.store-control .store-page-header {
    padding: 1.55rem;
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 0%, rgba(80, 227, 194, 0.11), transparent 14rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.026));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.store-control .page-title,
.store-control .page-header h1,
.store-control .store-page-header h1 {
    margin: 0;
    font-size: clamp(1.75rem, 2.8vw, 2.55rem);
}

.store-control .page-lead,
.store-control .page-header p,
.store-control .store-page-header p {
    color: #a9b7c8;
}

.store-console .cl-overview-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.store-console .cl-stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.store-console .cl-stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(80, 227, 194, 0.8), transparent);
}

.store-console .cl-stat-value {
    font-variant-numeric: tabular-nums;
}

.store-console .cl-account-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.72fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 22px;
}

.cl-account-main,
.cl-account-balance {
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
    min-width: 0;
}

.cl-account-kicker {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cl-account-main strong,
.cl-account-balance strong {
    color: var(--text-primary);
    font-size: 1.1rem;
    overflow-wrap: anywhere;
}

.cl-account-main span:last-child,
.cl-account-balance span,
.cl-account-balance small {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.cl-account-balance strong {
    color: #50e3c2;
    font-variant-numeric: tabular-nums;
}

.cl-account-balance small.is-warning {
    color: #fbbf24;
}

.cl-account-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.store-console .cl-shell-grid {
    grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.85fr) !important;
    align-items: stretch;
}

.store-console .cl-composer,
.store-console .cl-panel {
    border-radius: 22px;
}

.store-console .cl-composer {
    min-height: 275px;
}

.store-console .cl-recent-panel {
    align-self: stretch;
}

.store-console .cl-composer h3,
.store-console .cl-panel h3 {
    letter-spacing: 0;
}

.store-console textarea {
    line-height: 1.65;
}

.store-console #console-prompt-input,
.store-console #console-launch-prompt {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
        rgba(4, 9, 14, 0.68) !important;
}

.store-console #console-prompt-input {
    min-height: 150px !important;
}

.store-console .console-run-item,
.store-console .history-item,
.store-console .task-card-enhanced {
    border-radius: 16px;
}

.store-console .console-run-item {
    position: relative;
    overflow: hidden;
    padding: 0.82rem 0.9rem 0.82rem 1rem;
}

.store-console .console-run-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.9rem;
    bottom: 0.9rem;
    width: 3px;
    border-radius: 999px;
    background: rgba(80, 227, 194, 0.7);
}

.cl-overview-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.cl-guide-card,
.cl-rewards-card {
    padding: 1.25rem;
    border-radius: 22px;
}

.cl-guide-card h3,
.cl-rewards-card h3 {
    margin: 0;
    color: var(--text-primary);
}

.cl-guide-card .panel-header-inline a {
    color: var(--text-secondary);
    font-size: 0.84rem;
    text-decoration: none;
}

.cl-guide-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.cl-guide-step {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem;
    min-height: 118px;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.cl-guide-step span {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #071016;
    background: #50e3c2;
    font-weight: 800;
    font-size: 0.78rem;
}

.cl-guide-step strong {
    color: var(--text-primary);
    font-size: 0.92rem;
}

.cl-guide-step small,
.cl-rewards-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.cl-rewards-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: space-between;
}

.cl-invite-code {
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(80, 227, 194, 0.22);
    border-radius: 12px;
    color: #9ff5e6;
    background: rgba(80, 227, 194, 0.07);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.store-console .cl-filter-bar {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.console-prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: -0.2rem 0 0.85rem;
}

.console-prompt-chips button {
    padding: 0.42rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    color: #b8c7d8;
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    transition: all 0.18s ease;
}

.console-prompt-chips button:hover {
    color: #eafffb;
    border-color: rgba(80, 227, 194, 0.28);
    background: rgba(80, 227, 194, 0.09);
}

.console-launch-ribbon {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.78rem 0.95rem;
    border: 1px solid rgba(80, 227, 194, 0.18);
    border-radius: 16px;
    background: rgba(80, 227, 194, 0.07);
}

.console-launch-ribbon span {
    color: var(--il-aqua);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.console-launch-ribbon strong {
    color: #dbe8f4;
    font-size: 0.86rem;
    font-weight: 500;
}

.docs-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.docs-quick-card {
    min-height: 132px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.026)),
        var(--il-panel);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.docs-quick-card:hover {
    transform: translateY(-2px);
    border-color: rgba(80, 227, 194, 0.24);
}

.docs-quick-card span {
    color: var(--il-aqua);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.docs-quick-card strong {
    display: block;
    margin: 0.7rem 0 0.35rem;
    color: #fff;
}

.docs-quick-card p {
    margin: 0;
    color: #9fb0c3;
    font-size: 0.84rem;
    line-height: 1.58;
}

.ops-health-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.ops-health-strip div {
    padding: 0.88rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.ops-health-strip span {
    display: block;
    color: var(--il-muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ops-health-strip strong {
    display: block;
    margin-top: 0.24rem;
    color: #eaf2fa;
    font-size: 0.92rem;
}

.workspace-signal-rail {
    display: flex;
    gap: 0.38rem;
    margin-top: 0.55rem;
}

.workspace-signal-rail span {
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: rgba(80, 227, 194, 0.28);
    box-shadow: 0 0 14px rgba(80, 227, 194, 0.2);
}

.workspace-signal-rail span:nth-child(2) {
    background: rgba(88, 166, 255, 0.28);
}

.workspace-signal-rail span:nth-child(3) {
    background: rgba(255, 198, 109, 0.28);
}

.store-ops .ops-toolbar {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.store-ops .ops-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-ops .ops-stat-card {
    border-radius: 18px;
}

.store-ops .ops-stat-card::before {
    height: 2px;
}

.store-ops .ops-item-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.store-ops .ops-item-card--actionable {
    border-color: rgba(255, 198, 109, 0.2);
}

.store-ops .ops-item-card--actionable::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 3px;
    border-radius: 999px;
    background: var(--il-amber);
}

.store-ops .ops-actions .btn {
    min-height: 34px;
}

.store-ops .ops-error-banner {
    border-radius: 18px;
}

@media (max-width: 1200px) {
    .store-console .cl-overview-stats,
    .store-ops .ops-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .store-console .cl-shell-grid {
        grid-template-columns: 1fr !important;
    }

    .store-capability .cap-hero-inner,
    .docs-quick-grid,
    .ops-health-strip {
        grid-template-columns: 1fr;
    }

    .cap-hero-visual {
        min-height: 160px;
    }

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

@media (max-width: 768px) {
    .store-app .navbar {
        padding: 0.76rem 1rem;
    }

    .store-public .home-hero,
    .store-capability .cap-hero,
    .store-public .home-final-cta {
        border-radius: 20px;
    }

    .store-capability .cap-grid,
    .store-console .cl-overview-stats,
    .store-ops .ops-overview-grid {
        grid-template-columns: 1fr !important;
    }

    .store-control .page-header,
    .store-control .store-page-header {
        border-radius: 18px;
        padding: 1.15rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    background-attachment: fixed;
    color: #f8fbff;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Subtle noise overlay for depth */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
}

/* Glass Card refinement */
.glass-card {
    background: var(--glass-background, rgba(12, 16, 22, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
}

/* ============================================================================
   导航栏
   ============================================================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 5000;
    overflow: visible;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6%;
    background: rgba(12, 18, 27, 0.92);
    border-bottom: 1px solid rgba(80, 227, 194, 0.14);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
}

.nav-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-links {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    flex: 1;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 0 0 auto;
    justify-content: flex-end;
    position: relative;
    z-index: 20;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nav-brand:hover {
    transform: scale(1.02);
}

.brand-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    line-height: 0.94;
    letter-spacing: -0.03em;
}

.brand-name {
    background: linear-gradient(135deg, var(--accent), #ffffff 58%, var(--accent-strong));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.22rem;
    font-weight: 700;
}

.brand-domain {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-left: 0.02em;
    opacity: 0.88;
}

/* .nav-links moved up to handle positioning */

.nav-links a {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(80, 227, 194, 0.12);
}

.nav-links a.active {
    background: linear-gradient(135deg, rgba(80, 227, 194, 0.18), rgba(45, 140, 255, 0.18));
    color: var(--accent);
    border: 1px solid rgba(80, 227, 194, 0.35);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Avatar Dropdown */
.nav-user-menu {
    position: relative;
    z-index: 30;
}

/* Always-visible user info (email + balance stacked) */
.nav-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
}

.nav-user-email {
    font-size: 0.78rem;
    color: var(--text-primary);
    font-weight: 500;
}

.nav-user-balance {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.nav-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #2eaadc);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
    padding: 0;
    line-height: 1;
}

.nav-user-avatar:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.nav-ops-indicator {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    border: 1.5px solid var(--bg-deep);
    box-shadow: 0 0 6px rgba(80, 227, 194, 0.5);
}

.nav-user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 7000;
}

.nav-user-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-header {
    padding: 0.85rem 1rem;
}

.nav-dropdown-email {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.nav-dropdown-balance {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.nav-dropdown-role-badge {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(80, 227, 194, 0.12);
    color: var(--accent);
    border: 1px solid rgba(80, 227, 194, 0.25);
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.25rem 0;
}

.nav-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.nav-dropdown-item:hover {
    background: rgba(80, 227, 194, 0.08);
    color: var(--text-primary);
}

.nav-lang-wrap {
    margin-left: 0.2rem;
}

/* ============================================================================
   按钮
   ============================================================================ */

.btn {
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: var(--bg-deep);
    box-shadow: 0 4px 15px rgba(80, 227, 194, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(80, 227, 194, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: var(--border-soft);
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================================
   Hero 区域
   ============================================================================ */

.hero {
    position: relative;
    margin: 4rem auto 3rem;
    max-width: 1200px;
    padding: 5rem 2rem;
    text-align: center;
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-md);
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 30% 30%, rgba(80, 227, 194, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(45, 140, 255, 0.15) 0%, transparent 40%);
    z-index: -1;
    animation: aurora 20s linear infinite;
}

@keyframes aurora {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 30%, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

/* ============================================================================
   Statistics Dashboard
   ============================================================================ */

.task-stats-section {
    padding: 4rem 0 2rem;
}

.task-stats-section h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #fff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .tasks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-icon {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    width: 44px;
    height: 44px;
    background: rgba(80, 227, 194, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0.1rem 0;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================================
   Utility & Shadows
   ============================================================================ */

.shadow-glow {
    box-shadow: 0 0 20px rgba(80, 227, 194, 0.2);
}

.task-prompt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* Cleaned up duplicate stats section */

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* 筛选栏 */
.filters-section {
    background: var(--bg-primary);
    padding: 1.5rem 0;
}

.filters-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box svg {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(80, 227, 194, 0.1);
    background: rgba(15, 20, 25, 0.8);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.filter-select {
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: var(--border-hover);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(80, 227, 194, 0.1);
}

/* 任务列表 */
.tasks-section {
    padding: 2rem 0 5rem;
}

.tasks-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.task-card-enhanced {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

.task-card-enhanced::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(80, 227, 194, 0.3), rgba(45, 140, 255, 0.1), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.task-card-enhanced:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.task-card-enhanced:hover::before {
    opacity: 1;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.task-title-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    min-width: 0;
    /* Allow text truncation */
}

.task-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* 状态徽章 */
.task-status {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.task-status.running {
    background: linear-gradient(135deg, rgba(80, 227, 194, 0.2), rgba(16, 185, 129, 0.2));
    color: var(--accent);
    border: 1px solid rgba(80, 227, 194, 0.3);
    animation: pulse-glow 2s infinite;
}

.task-status.completed {
    background: linear-gradient(135deg, rgba(45, 140, 255, 0.2), rgba(37, 99, 235, 0.2));
    color: var(--accent-strong);
    border: 1px solid rgba(45, 140, 255, 0.3);
}

.task-status.paused {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.task-status.failed {
    background: rgba(239, 68, 68, 0.15);
    color: #ff7b72;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.task-status.creating {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(156, 163, 175, 0.3);
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(80, 227, 194, 0.3);
    }

    50% {
        box-shadow: 0 0 16px rgba(80, 227, 194, 0.5);
    }
}

.task-prompt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

/* 进度条 */
.task-progress {
    margin: 1.2rem 0;
}

.progress-bar {
    height: 6px;
    background: rgba(156, 163, 175, 0.2);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 元数据行 */
.task-meta-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item svg {
    opacity: 0.6;
}

/* Loading Skeleton */
.loading-state {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-card {
    height: 180px;
    background: linear-gradient(90deg, var(--bg-card) 0%, rgba(80, 227, 194, 0.05) 50%, var(--bg-card) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    opacity: 0.5;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.empty-state .btn {
    margin-top: 1rem;
}

.empty-history {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border: 1px dashed var(--border-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.015);
    transition: all 0.3s;
}

.empty-history:hover {
    border-color: rgba(80, 227, 194, 0.15);
    background: rgba(80, 227, 194, 0.02);
}

.placeholder-card {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border: 1px dashed var(--border-soft) !important;
    background: rgba(255, 255, 255, 0.01) !important;
    border-radius: 12px !important;
    min-height: 0 !important;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }

    .task-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .task-meta-row {
        flex-direction: column;
        gap: 0.8rem;
    }

    .tasks-overview {
        padding: 0.75rem 1rem;
    }

    .overview-value {
        font-size: 1.2rem;
    }

    .overview-label {
        font-size: 0.62rem;
    }

    .overview-divider {
        height: 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }
}

/* Hero background dot grid */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black 30%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: -45% 55% auto -20%;
    height: 140%;
    background: radial-gradient(circle, rgba(80, 227, 194, 0.28), transparent 70%);
    opacity: 0.35;
    pointer-events: none;
    animation: heroGlowA 8s ease-in-out infinite alternate;
}

@keyframes heroGlowA {
    0% {
        opacity: 0.25;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0.40;
        transform: translate(15px, -10px) scale(1.05);
    }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 65% -15% -35% 45%;
    background: radial-gradient(circle, rgba(45, 140, 255, 0.25), transparent 75%);
    opacity: 0.3;
    pointer-events: none;
    animation: heroGlowB 10s ease-in-out infinite alternate;
}

@keyframes heroGlowB {
    0% {
        opacity: 0.2;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0.35;
        transform: translate(-10px, 8px) scale(1.04);
    }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #ffffff 15%, #50e3c2 50%, #2d8cff 85%, #a78bfa);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.15;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
    animation: gradientText 6s ease infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

.hero p {
    font-size: 0.95rem;
    color: #b0b0b0;
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* ============================================================================
   提示输入框
   ============================================================================ */

.prompt-input-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.prompt-input-container:focus-within {
    border-color: rgba(80, 227, 194, 0.5);
    box-shadow: 0 0 30px rgba(80, 227, 194, 0.15), 0 16px 48px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.prompt-input-container.hitl-active {
    border-color: var(--cyber-purple);
    box-shadow: 0 0 30px rgba(187, 154, 247, 0.4);
    background: rgba(187, 154, 247, 0.05);
    animation: pulse-hitl 2s infinite;
}

@keyframes pulse-hitl {
    0% {
        box-shadow: 0 0 20px rgba(187, 154, 247, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(187, 154, 247, 0.6);
    }

    100% {
        box-shadow: 0 0 20px rgba(187, 154, 247, 0.3);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-soft);
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.view-all:hover {
    color: var(--accent);
    gap: 0.6rem;
    border-bottom-color: var(--accent);
}

.prompt-actions {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.65rem 0.75rem;
    gap: 0.75rem;
}

/* ---- Advanced panel (inline, single row) ---- */

.prompt-controls {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.advanced-panel {
    /* no border/margin, sits inline */
}

.advanced-panel.hidden {
    display: none !important;
}

/* ---- Right-side: toggle + execute button ---- */

.prompt-main-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    flex-shrink: 0;
}

.advanced-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0.35rem 0;
    transition: color 0.2s;
    font-family: var(--font-body);
    white-space: nowrap;
}

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

.advanced-toggle.open {
    color: var(--accent);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.control-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-left: 2px;
    white-space: nowrap;
}

.control-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 0.45rem 2rem 0.45rem 0.7rem;
    font-size: 0.82rem;
    font-family: var(--font-body);
    outline: none;
    cursor: pointer;
    transition: all 0.25s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.control-select:hover {
    border-color: rgba(80, 227, 194, 0.4);
    background-color: rgba(255, 255, 255, 0.07);
}

.control-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(80, 227, 194, 0.08);
}

.control-select option {
    background: #101520;
    color: var(--text-primary);
}

.control-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
    font-family: var(--font-body);
    outline: none;
    width: 110px;
    transition: all 0.25s;
}

.control-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.control-input:hover {
    border-color: rgba(80, 227, 194, 0.4);
}

.control-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(80, 227, 194, 0.08);
}

.budget-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.budget-input-wrap .control-input {
    padding-right: 2.2rem;
}

.budget-unit {
    position: absolute;
    right: 0.6rem;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    pointer-events: none;
}

.model-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.model-label {
    font-weight: 500;
    white-space: nowrap;
}

.model-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 7px 30px 7px 12px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    min-width: 140px;
    outline: none;
    cursor: pointer;
    transition: all 0.25s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.model-select:hover {
    border-color: rgba(80, 227, 194, 0.4);
    background-color: rgba(255, 255, 255, 0.07);
}

.model-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(80, 227, 194, 0.08);
}

.model-select option {
    background: #101520;
    color: var(--text-main);
    padding: 0.4rem;
}

.prompt-input {
    width: 100%;
    min-height: 100px;
    padding: 0.85rem 1rem;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-body);
    resize: none;
    outline: none;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

.prompt-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.prompt-input:focus::placeholder {
    opacity: 0.3;
}

.start-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.start-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: btnShimmer 3s infinite;
}

@keyframes btnShimmer {
    0% {
        left: -100%;
    }

    40% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

.page-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* ============================================================================
   Page Header & Tasks Container
   ============================================================================ */

.page-header {
    max-width: 1100px;
    margin: 2.5rem auto 1rem;
    padding: 0 2rem;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 40%, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tasks-container {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

/* ---- Tasks Overview Stats Bar ---- */

.tasks-overview {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    backdrop-filter: var(--glass-blur);
}

.overview-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
    padding: 0.4rem 0;
}

.overview-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.overview-value--done {
    color: var(--accent-secondary);
}

.overview-value--fail {
    color: #ff7b72;
}

.overview-value--total {
    color: var(--text-primary);
}

.overview-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.overview-divider {
    width: 1px;
    height: 32px;
    background: var(--border-soft);
    flex-shrink: 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2.5rem 0 1.2rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.section-count {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
}

/* Tasks page filter bar */
.tasks-container .filters-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.tasks-container .search-box {
    flex: 1;
    position: relative;
}

.tasks-container .search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    padding: 0.55rem 1rem 0.55rem 2.3rem;
    border-radius: 12px;
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.tasks-container .search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(80, 227, 194, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.tasks-container .search-box::before {
    content: "🔍";
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    font-size: 0.75rem;
}

.tasks-container .filter-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    padding: 0.55rem 2rem 0.55rem 0.8rem;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.tasks-container .filter-select:hover,
.tasks-container .filter-select:focus {
    border-color: var(--accent);
    outline: none;
}

.tasks-container .filter-select option {
    background: #101520;
    color: var(--text-primary);
}

/* Staggered card entrance animation */
.task-card-enhanced,
.history-item {
    animation: cardSlideIn 0.4s ease backwards;
}

.task-card-enhanced:nth-child(1) {
    animation-delay: 0s;
}

.task-card-enhanced:nth-child(2) {
    animation-delay: 0.06s;
}

.task-card-enhanced:nth-child(3) {
    animation-delay: 0.12s;
}

.task-card-enhanced:nth-child(4) {
    animation-delay: 0.18s;
}

.history-item:nth-child(1) {
    animation-delay: 0s;
}

.history-item:nth-child(2) {
    animation-delay: 0.04s;
}

.history-item:nth-child(3) {
    animation-delay: 0.08s;
}

.history-item:nth-child(4) {
    animation-delay: 0.12s;
}

.history-item:nth-child(5) {
    animation-delay: 0.16s;
}

.history-item:nth-child(6) {
    animation-delay: 0.20s;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================================
   任务列表
   ============================================================================ */

.recent-tasks {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.recent-tasks h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #fff;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.task-card:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
    box-shadow: var(--shadow-card);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.task-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.task-status {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.task-status.running {
    background: rgba(80, 227, 194, 0.15);
    color: var(--accent);
}

.task-status.completed {
    background: rgba(45, 140, 255, 0.15);
    color: var(--accent-strong);
}

.task-status.paused {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}

.task-prompt {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.task-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================================
   双生视窗布局 - Command Center
   ============================================================================ */

.twin-windows {
    display: flex;
    height: calc(100vh - 64px);
    position: relative;
    background: var(--bg-darker);
    overflow: hidden;
}

/* 动态背景星云效果 */
.twin-windows::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(80, 227, 194, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(45, 140, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.twin-windows::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

.left-pane {
    width: 380px;
    min-width: 320px;
    max-width: 500px;
    border-right: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    position: relative;
    z-index: 5;
    transition: width 0.1s linear;
}

.right-pane {
    flex: 1;
    min-width: 480px;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.resize-handle {
    width: 6px;
    cursor: col-resize;
    background: transparent;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 380px;
    /* Synchronized with left-pane default width */
    z-index: 100;
    transition: background 0.2s;
}

.resize-handle:hover,
.resize-handle:active {
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ============================================================================
   左窗: 对话区域 (Premium Bubbles)
   ============================================================================ */

.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-soft) transparent;
}

.chat-area::-webkit-scrollbar {
    width: 4px;
}

.chat-area::-webkit-scrollbar-thumb {
    background: var(--border-soft);
    border-radius: 10px;
}

.message {
    display: flex;
    gap: 0.85rem;
    max-width: 90%;
    animation: messageReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes messageReveal {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.message.user .message-avatar {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: var(--bg-deep);
}

.message.agent .message-avatar {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
}

.message-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 0.85rem 1.1rem;
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.55;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    backdrop-filter: blur(8px);
}

.message.user .message-content {
    background: linear-gradient(135deg, rgba(80, 227, 194, 0.15), rgba(45, 140, 255, 0.1));
    border-color: rgba(80, 227, 194, 0.2);
    border-bottom-right-radius: 4px;
    color: #fff;
}

.message.agent .message-content {
    border-bottom-left-radius: 4px;
    background: rgba(30, 41, 59, 0.5);
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: right;
}

/* ============================================================================
   左窗: 配置面板
   ============================================================================ */

.config-panel {
    border-top: 1px solid var(--border-color);
    padding: 1.2rem;
    background: var(--bg-card);
}

.config-panel h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.config-field {
    margin-bottom: 0.8rem;
}

/* ============================================================================
   Agent Thinking & HUD Polish
   ============================================================================ */

.workspace-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    height: 100%;
    color: var(--text-secondary);
    animation: fadeIn 0.6s ease;
}

.workspace-empty-state .state-icon {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.workspace-empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.workspace-empty-state p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 280px;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.thinking-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 2px 8px;
    background: rgba(80, 227, 194, 0.1);
    border-radius: 10px;
    margin-left: 10px;
}

.thinking-dots span {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: thinkingBounce 1.4s infinite ease-in-out both;
}

.thinking-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.thinking-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes thinkingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

.hud-panel {
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* ============================================================================
   左窗: 输入区域
   ============================================================================ */

.input-area {
    padding: 0.8rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-navbar);
    display: flex;
    gap: 0.6rem;
}

.user-input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    resize: none;
    min-height: 36px;
    max-height: 100px;
}

.user-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(80, 227, 194, 0.1);
}

.send-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

/* ============================================================================
   右窗: 画面预览 (Bezel & Immersive)
   ============================================================================ */

.screen-container {
    flex: 1;
    position: relative;
    background: #000;
    margin: 1rem;
    border-radius: var(--radius-md);
    border: 8px solid #1a1b26;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-frame,
.screen-video {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
    background: #000;
}

.screen-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    color: var(--text-secondary);
    z-index: 20;
}

.screen-toolbar {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 30;
    padding: 0.5rem;
    background: rgba(15, 17, 26, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0.4;
    transition: opacity 0.3s, transform 0.3s;
}

.screen-container:hover .screen-toolbar {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.screen-toolbar .icon-btn {
    padding: 0.6rem;
    border-radius: var(--radius-full);
}

/* ============================================================================
   右窗: HUD 状态控制台
   ============================================================================ */

.status-bar {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to top, var(--bg-darker), transparent);
    border-top: 1px solid var(--border-soft);
    min-height: 180px;
    max-height: 250px;
    overflow-y: auto;
}

.status-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-soft);
}

.status-steps {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.status-step {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.status-step-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.status-step.completed {
    border-color: rgba(80, 227, 194, 0.1);
    background: rgba(80, 227, 194, 0.03);
}

.status-step.in-progress {
    border-color: var(--border-glow);
    background: rgba(80, 227, 194, 0.05);
    box-shadow: 0 0 15px rgba(80, 227, 194, 0.1);
}

.status-step-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
}

.status-step.completed .status-step-icon {
    background: var(--accent);
    color: var(--bg-deep);
    box-shadow: 0 0 10px var(--accent-glow);
}

.status-step.in-progress .status-step-icon {
    background: var(--accent-strong);
    color: #fff;
    box-shadow: 0 0 20px rgba(45, 140, 255, 0.4);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

.status-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-step.in-progress .status-text {
    color: #fff;
}

/* Step summary in right panel */
.step-summary {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    padding-left: 1.7rem;
    font-style: italic;
    line-height: 1.3;
    word-break: break-word;
    opacity: 0.8;
}

.status-step.completed .step-summary {
    color: rgba(80, 227, 194, 0.6);
}

/* Result message card in chat */
.message.result-message .message-content {
    background: linear-gradient(135deg, rgba(80, 227, 194, 0.08), rgba(45, 140, 255, 0.05));
    border: 1px solid rgba(80, 227, 194, 0.2);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    max-width: 100%;
}

.task-description-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(80, 227, 194, 0.02);
}

.task-indicator {
    font-size: 0.65rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.task-objective {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.result-header {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.result-body {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
    border-left: 3px solid var(--accent);
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* ============================================================================
   工具栏 (HUD Style)
   ============================================================================ */

.toolbar {
    padding: 0.75rem 1.5rem;
    background: rgba(10, 15, 20, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.toolbar-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.toolbar-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    display: flex;
    gap: 1.25rem;
    letter-spacing: 0.5px;
}

.toolbar-actions {
    display: flex;
    gap: 0.6rem;
}

.toolbar-actions .btn {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

/* ============================================================================
   响应式
   ============================================================================ */

@media (max-width: 1024px) {
    .twin-windows {
        flex-direction: column;
    }

    .left-pane {
        width: 100%;
        max-width: none;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        height: 50%;
    }

    .right-pane {
        width: 100%;
        min-width: 0;
        height: 50%;
    }

    .resize-handle {
        display: none;
    }
}

/* ============================================================================
   图标样式
   ============================================================================ */

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.icon-btn:hover {
    background: rgba(80, 227, 194, 0.1);
    color: var(--accent);
}

.icon-btn svg {
    width: 1.1em;
    height: 1.1em;
}

/* ============================================================================
   自定义模态框
   ============================================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100dvh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
    z-index: 100000;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    position: relative;
    background: linear-gradient(160deg, rgba(26, 27, 38, 0.95), rgba(15, 17, 26, 0.98));
    border: 1px solid rgba(80, 227, 194, 0.12);
    border-radius: var(--radius-md);
    padding: 2rem;
    max-width: 420px;
    width: min(420px, calc(100vw - 2.5rem));
    max-height: calc(100dvh - 2.5rem);
    overflow: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
    animation: modalEnter 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.modal-icon {
    font-size: 1.8rem;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.modal-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #50e3c2, #2d8cff);
    color: #0f1419;
}

.modal-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(80, 227, 194, 0.3);
}

.modal-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.modal-btn-secondary:hover {
    background: rgba(80, 227, 194, 0.1);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
}

/* User Info in Navbar — replaced by avatar dropdown, see navbar section */

/* ============================================================================
   Toast 通知系统
   ============================================================================ */

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    pointer-events: none;
}

.toast {
    background: rgba(15, 20, 30, 0.92);
    border: 1px solid rgba(80, 227, 194, 0.15);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.3rem;
    color: #fff;
    font-size: 0.85rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 260px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.toast-price {
    font-family: 'JetBrains Mono', monospace;
    color: #fb923c;
    font-weight: 700;
}

body.store-app > .modal-overlay,
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    min-height: 100dvh;
    padding: 1.25rem;
    margin: 0;
    overflow: auto;
}

body.store-app > .modal-overlay.show,
.modal-overlay.show {
    display: flex;
}

body.store-app > .modal-overlay .modal,
.modal-overlay .modal {
    margin: auto;
    transform-origin: center;
}

/* Auth Modal Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.auth-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.auth-form input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.auth-switch {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.5rem;
    cursor: pointer;
}

.auth-switch span {
    color: var(--accent-primary);
    font-weight: 500;
}

/* ============================================================================
   History Section (New)
   ============================================================================ */

.history-section {
    padding-bottom: 4rem;
    margin-top: 2rem;
}

.history-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.history-controls .search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    width: 240px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.history-controls .search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.history-controls .filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-item {
    display: flex;
    text-decoration: none;
    color: inherit;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.history-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(80, 227, 194, 0.6), rgba(45, 140, 255, 0.2));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-medium);
    transform: translateX(4px);
}

.history-item:hover::before {
    opacity: 1;
}

.history-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.history-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.history-status.completed {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(80, 227, 194, 0.4);
}

.history-status.failed {
    background: #ff7b72;
}

.history-status.paused {
    background: #fbbf24;
}

.history-status.running {
    background: #fb923c;
}

.history-content {
    flex: 1;
    min-width: 0;
}

.history-prompt {
    font-size: 0.88rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.15rem;
}

.history-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.4rem;
    font-family: var(--font-mono);
}

.history-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    padding: 0.15rem 0.55rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.history-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.history-action-btn {
    border: 1px solid rgba(80, 227, 194, 0.22);
    background: rgba(80, 227, 194, 0.08);
    color: var(--accent);
    border-radius: 999px;
    padding: 0.2rem 0.62rem;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.history-action-btn:hover {
    background: rgba(80, 227, 194, 0.14);
}

.history-action-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.history-status-badge.completed {
    color: var(--accent);
    background: rgba(80, 227, 194, 0.1);
}

.history-status-badge.failed {
    color: #ff7b72;
    background: rgba(255, 123, 114, 0.1);
}

.history-status-badge.paused {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}

/* ============================================================================
   Footer Styles
   ============================================================================ */

.app-footer {
    background: transparent;
    border-top: 1px solid var(--border-soft);
    margin-top: auto;
    padding: 2rem 0;
    width: 100%;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.footer-brand:hover { opacity: 1; }

.footer-brand-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-dot {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover { color: var(--text-primary); }

.footer-icp-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.footer-icp-link {
    font-size: 0.78rem;
}

#footer-lingyuan {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-left, .footer-right {
        justify-content: center;
    }
}

/* 语言选择器 */
.lang-selector {
    position: relative;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    transition: all 0.2s;
    height: 34px;
    box-sizing: border-box;
    /* Fixed height for better alignment */
}

.lang-selector:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--text-primary);
}

.lang-selector .arrow {
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.2s;
}

.lang-selector:hover .arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    transition: all 0.2s;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.lang-current .chevron {
    font-size: 0.6rem;
    opacity: 0.5;
    transition: transform 0.2s;
}

.lang-menu {
    position: fixed;
    background: #0f1419;
    border: 1px solid rgba(80, 227, 194, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 99999;
    min-width: 120px;
    display: none;
    pointer-events: auto;
    top: 56px;
    right: 12px;
}

.lang-menu.show {
    display: block;
}

.lang-option {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
    padding: 0.7rem 1rem;
    transition: all 0.2s;
    color: #a0a0a0;
}

.lang-option:hover {
    background: rgba(80, 227, 194, 0.1);
    color: #fff;
}

.lang-option.active {
    color: var(--accent);
    font-weight: 600;
    background: rgba(80, 227, 194, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .prompt-actions {
        flex-wrap: wrap;
    }

    .prompt-controls {
        flex-wrap: wrap;
    }

    .control-input {
        width: 100%;
    }

    .prompt-main-row .start-btn {
        flex: 1;
    }
}

.btn-icon-copy {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-copy:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

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

.btn-icon-copy.copied {
    color: #4cd964;
    /* Green checkmark color */
}

/* =========================================
   Samples Section
   ========================================= */
.samples-section {
    margin: 3rem auto 5rem;
    max-width: 1200px;
    padding: 3rem 2rem;
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    backdrop-filter: var(--glass-blur);
    animation: fadeIn 0.8s ease-out;
}

.samples-header {
    text-align: center;
    margin-bottom: 30px;
}

.samples-header h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.samples-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Tabs */
.samples-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 12px 30px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Controls: Pills & Search */
.samples-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.category-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    /* Firefox */
}

.category-pills::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.pill-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.pill-btn:hover,
.pill-btn.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.search-wrapper {
    position: relative;
    min-width: 250px;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-wrapper input {
    width: 100%;
    padding: 10px 10px 10px 36px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.search-wrapper input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Grid */
.samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.sample-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sample-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sample-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s;
}

.sample-card:hover::before {
    opacity: 1;
}

.sample-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.sample-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.sample-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-samples {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Flash Animation for Input */
@keyframes flashHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
        border-color: var(--primary-color);
    }

    50% {
        box-shadow: 0 0 20px 0 rgba(99, 102, 241, 0.7);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
        border-color: var(--border-color);
    }
}

.flash-highlight {
    animation: flashHighlight 1s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .samples-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrapper {
        min-width: 100%;
    }

    .category-pills {
        padding-bottom: 10px;
    }
}
/* =========================================
   Store Design System Foundations
   ========================================= */
:root {
    --primary-color: var(--accent);
    --accent-color: var(--accent-secondary);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(80, 227, 194, 0.35);
    --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.32);
    --surface-1: rgba(10, 14, 20, 0.82);
    --surface-2: rgba(17, 24, 34, 0.78);
    --surface-3: rgba(255, 255, 255, 0.04);
    --surface-line: rgba(255, 255, 255, 0.09);
    --gradient-brand: linear-gradient(135deg, rgba(80, 227, 194, 0.22), rgba(45, 140, 255, 0.2), rgba(167, 139, 250, 0.14));
}

body.store-app {
    background:
        radial-gradient(circle at top left, rgba(80, 227, 194, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(45, 140, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #061018 0%, #05070a 100%);
}

body.store-app::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 82%);
    -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 82%);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

body.store-app > * {
    position: relative;
    z-index: 1;
}

body.store-app > .navbar.store-navbar {
    gap: 1.5rem;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    z-index: 6000;
    overflow: visible;
}

body.store-app > .navbar.store-navbar .nav-right,
body.store-app > .navbar.store-navbar .nav-user-menu {
    position: relative;
    z-index: 6010;
}

body.store-app > .navbar.store-navbar .nav-user-dropdown {
    z-index: 7000;
}

body.store-app > .navbar.store-navbar.is-scrolled {
    background: rgba(8, 12, 18, 0.96);
    border-bottom-color: rgba(80, 227, 194, 0.22);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.brand-stack {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.brand-subline {
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav-context-pill,
.section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(80, 227, 194, 0.22);
    background: rgba(80, 227, 194, 0.08);
    color: var(--accent);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.page-shell {
    width: min(1240px, calc(100% - 80px));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.page-shell--narrow {
    width: min(1120px, calc(100% - 80px));
}

.content-shell {
    position: relative;
    overflow: hidden;
}

.hero-panel {
    margin-top: 1.25rem;
    padding-top: 4.6rem;
    padding-bottom: 3.6rem;
}

.store-tagline {
    margin-bottom: 1.35rem;
    font-size: 0.9rem;
}

.store-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.store-stat-card {
    padding: 1.35rem 1.4rem;
    text-align: left;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.store-stat-kicker,
.surface-label {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.65rem;
}

.store-stat-value {
    font-family: var(--font-heading);
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.store-stat-card p,
.surface-copy p,
.section-header p,
.store-page-header p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.store-surface-shell,
.store-page-header {
    margin-top: 1.75rem;
    padding: 1.7rem 1.8rem;
}

.section-header-split,
.store-page-header {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: flex-start;
}

.surface-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.surface-card {
    display: flex;
    gap: 1rem;
    padding: 1.45rem;
    min-height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
}

.surface-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.1rem;
    color: var(--accent);
    background: rgba(80, 227, 194, 0.08);
    border: 1px solid rgba(80, 227, 194, 0.18);
    flex-shrink: 0;
}

.surface-copy h3 {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 0.42rem;
}

.section-title--framed {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--surface-line);
}

.control-filters {
    padding: 0.75rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
}

.control-filters .search-box,
.control-filters .filter-select {
    min-height: 44px;
}

.tasks-overview {
    background: linear-gradient(135deg, rgba(80, 227, 194, 0.08), rgba(45, 140, 255, 0.08), rgba(255, 255, 255, 0.04));
    border-color: rgba(80, 227, 194, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.samples-section {
    margin-top: 1.75rem;
    background: linear-gradient(180deg, rgba(17, 24, 34, 0.9), rgba(8, 12, 18, 0.84));
}

.samples-header.section-header {
    margin-bottom: 2.2rem;
}

.samples-header.section-header h2 {
    margin-bottom: 0.6rem;
}

.tab-btn,
.pill-btn,
.search-wrapper input,
.sample-card {
    border-color: var(--border-color);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(80, 227, 194, 0.2), rgba(45, 140, 255, 0.28));
    color: #fff;
    box-shadow: 0 8px 24px rgba(45, 140, 255, 0.22);
}

.search-wrapper input:focus,
.sample-card:hover,
.pill-btn:hover,
.pill-btn.active {
    border-color: var(--accent);
}

.sample-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
}

.app-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
}

@media (max-width: 1024px) {
    .nav-context-pill {
        display: none;
    }

    .store-stat-grid,
    .surface-grid {
        grid-template-columns: 1fr;
    }

    .section-header-split,
    .store-page-header {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-shell,
    .page-shell--narrow {
        width: calc(100% - 24px);
        padding-top: 1.25rem;
    }

    .hero-panel,
    .store-surface-shell,
    .store-page-header,
    .samples-section {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .brand-subline {
        display: none;
    }

    .nav-left {
        gap: 0.6rem;
    }
}
.page-header-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.store-page-header h1,
.section-header-split h2 {
    color: var(--text-primary);
}


/* ============================================================================
   Operator Console
   ============================================================================ */

.ops-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.4rem;
    margin-top: 1.4rem;
    align-items: flex-start;
}

.ops-toolbar h2 {
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.ops-toolbar-copy {
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

.ops-toolbar-actions {
    display: flex;
    gap: 0.85rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.ops-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.ops-filter input,
.ops-filter select {
    min-height: 38px;
}

.ops-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.ops-stat-card {
    padding: 1.2rem 1.25rem;
    position: relative;
    overflow: hidden;
}

.ops-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    border-radius: 3px 3px 0 0;
}

.ops-stat-value {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.ops-stat-label {
    margin-top: 0.25rem;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 600;
}

.ops-stat-card p {
    margin-top: 0.55rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.ops-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    align-items: start;
}

.ops-card-list {
    display: grid;
    gap: 1rem;
}

.ops-item-card {
    padding: 1rem 1.1rem;
    border-color: rgba(80, 227, 194, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ops-item-card:hover {
    transform: translateY(-2px);
    border-color: rgba(80, 227, 194, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ops-item-card--actionable {
    border-color: rgba(45, 140, 255, 0.14);
}

.ops-item-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.ops-item-header h3 {
    margin: 0;
    font-size: 1rem;
    font-family: var(--font-heading);
}

.ops-item-key {
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.ops-pill-group {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ops-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.ops-pill--accent {
    border-color: rgba(80, 227, 194, 0.22);
    color: var(--accent);
}

.ops-pill--danger {
    border-color: rgba(255, 96, 96, 0.32);
    color: #ff9f9f;
    background: rgba(255, 96, 96, 0.08);
}

.ops-item-meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.ops-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.ops-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.62rem;
    background: rgba(45, 140, 255, 0.1);
    border: 1px solid rgba(45, 140, 255, 0.2);
    color: #9fcbff;
    font-size: 0.76rem;
}

.ops-tag--muted {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.ops-actions {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.95rem;
    flex-wrap: wrap;
}

.ops-error-banner {
    margin-top: 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 159, 100, 0.22);
    background: rgba(255, 158, 100, 0.08);
    color: #ffd4bf;
}

@media (max-width: 980px) {
    .ops-overview-grid,
    .ops-grid-two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ops-toolbar,
    .ops-item-header {
        flex-direction: column;
    }

    .ops-toolbar-actions {
        width: 100%;
    }

    .ops-filter,
    .ops-filter select,
    .ops-actions button {
        width: 100%;
    }

    .ops-overview-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   User Console Control Plane
   ========================================= */
.control-plane-container {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.control-plane-shell {
    margin-top: 0;
}

.control-plane-shell-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.control-plane-composer,
.console-side-card,
.control-plane-panel,
.console-link-card,
.console-run-item,
.console-library-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
    border: 1px solid var(--surface-line);
}

.control-plane-composer {
    padding: 1.4rem;
}

.control-plane-composer h3,
.console-side-card h3,
.control-plane-panel h3 {
    color: var(--text-primary);
    margin-bottom: 0.45rem;
}

.control-plane-composer p,
.console-side-card p,
.console-link-desc,
.console-detail-note {
    color: var(--text-secondary);
    line-height: 1.65;
}

.console-quickstart-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.console-prompt-input {
    min-height: 150px;
}

.console-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.console-quickstart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.control-plane-side-grid {
    display: grid;
    gap: 1rem;
}

.console-side-card,
.control-plane-panel {
    padding: 1.3rem;
}

.console-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
}

.console-detail-row,
.console-detail-block {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.console-detail-row:last-child,
.console-detail-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.console-detail-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.console-detail-value {
    color: var(--text-primary);
    text-align: right;
}

.console-detail-note,
.console-muted {
    font-size: 0.82rem;
}

.console-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.control-plane-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.panel-header-inline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.console-run-list {
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
    margin-top: 0.8rem;
}

.console-run-item,
.console-link-card {
    display: block;
    padding: 1rem;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.console-run-item:hover,
.console-link-card:hover,
.console-library-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.console-run-title,
.console-link-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.store-console .console-run-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.console-run-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: var(--font-mono);
}

.store-console .console-run-meta {
    gap: 0.3rem;
    font-size: 0.72rem;
}

.console-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.console-link-card.is-disabled {
    opacity: 0.7;
    cursor: default;
}

.console-empty-state {
    color: var(--text-secondary);
    padding: 1.2rem 0;
}

.console-task-card {
    text-decoration: none;
    color: inherit;
}

.console-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.8rem 0 0.9rem;
}

.console-library-section {
    margin-top: 0;
}

.console-library-controls {
    margin-bottom: 1.6rem;
}

.console-library-card {
    text-align: left;
    border-radius: 16px;
}

@media (max-width: 1024px) {
    .control-plane-shell-grid,
    .control-plane-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .console-form-grid,
    .console-link-grid {
        grid-template-columns: 1fr;
    }

    .console-detail-row,
    .console-detail-block {
        flex-direction: column;
    }

    .console-detail-value,
    .console-chip-list {
        text-align: left;
        justify-content: flex-start;
    }
}


/* =========================================
   Store Product Shell Refresh
   ========================================= */
.page-shell--wide {
    width: min(1120px, calc(100% - 64px));
}

.store-navbar .nav-brand {
    gap: 0.9rem;
}

.store-navbar .nav-links {
    transform: none;
    margin-left: auto;
    margin-right: auto;
}

.store-navbar .brand-text {
    display: flex;
    align-items: baseline;
    gap: 0.16rem;
}

.store-navbar .brand-domain {
    font-size: 1.1rem;
    color: var(--accent);
    opacity: 0.95;
}

.brand-mark-dot {
    color: var(--accent);
}

.store-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.store-sidebar {
    position: sticky;
    top: 92px;
    padding: 1.2rem;
    border-radius: 24px;
    border: 1px solid var(--surface-line);
    background: linear-gradient(180deg, rgba(15, 21, 31, 0.94), rgba(8, 12, 18, 0.9));
    box-shadow: var(--shadow-card);
}

.store-sidebar-group + .store-sidebar-group {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.store-sidebar-kicker {
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.store-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.store-sidebar-link {
    display: block;
    padding: 0.78rem 0.92rem;
    border-radius: 16px;
    border: 1px solid transparent;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.store-sidebar-link:hover,
.store-sidebar-link.active {
    color: var(--text-primary);
    border-color: rgba(80, 227, 194, 0.22);
    background: rgba(80, 227, 194, 0.08);
}

.store-sidebar-link strong {
    display: block;
    color: inherit;
    font-size: 0.95rem;
    margin-bottom: 0.16rem;
}

.store-sidebar-link span {
    display: block;
    font-size: 0.8rem;
    line-height: 1.55;
}

.store-main {
    min-width: 0;
}

.store-section + .store-section {
    margin-top: 1.35rem;
}

.store-section-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.store-section-header h2,
.store-panel-header h3 {
    color: var(--text-primary);
}

.store-section-header p,
.store-panel-header p,
.store-panel-copy,
.landing-copy p,
.landing-panel p,
.docs-lead,
.docs-body p,
.docs-body li {
    color: var(--text-secondary);
    line-height: 1.72;
}

.landing-hero {
    padding: 3.5rem 2.5rem 2.5rem;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
    gap: 1.4rem;
    align-items: stretch;
}

.landing-copy h1 {
    max-width: 18ch;
    margin: 0.6rem auto 0.8rem;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    line-height: 1.12;
    background: linear-gradient(135deg, #ffffff 0%, #50e3c2 40%, #2d8cff 70%, #a78bfa 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 8s ease infinite;
}

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

.landing-copy p {
    max-width: 60ch;
    font-size: 0.88rem;
    color: #9baec5;
}

/* Hero tagline — decorative line accents */
.hero-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: #50e3c2;
    letter-spacing: 0.02em;
    margin: -0.2rem auto 0.8rem;
    opacity: 0.92;
}

.hero-tagline::before,
.hero-tagline::after {
    content: '';
    display: block;
    width: 42px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(80, 227, 194, 0.5));
    flex-shrink: 0;
}

.hero-tagline::after {
    background: linear-gradient(270deg, transparent, rgba(80, 227, 194, 0.5));
}

.hero-subtitle {
    font-size: 0.88rem;
    color: #7a8a9e;
    max-width: 580px;
    margin: 0 auto 1.6rem;
    line-height: 1.65;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.hero-actions--center {
    justify-content: center;
}

/* Hero badge pill — matching server/web */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.2rem;
    background: rgba(80, 227, 194, 0.08);
    border: 1px solid rgba(80, 227, 194, 0.2);
    border-radius: 999px;
    font-size: 0.82rem;
    color: #50e3c2;
    letter-spacing: 0.03em;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(80,227,194,0); }
    50% { box-shadow: 0 0 0 6px rgba(80,227,194,0.06); }
}

/* Hero stats — matching server/web inline stat row */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.hero-stat-value span {
    background: linear-gradient(135deg, #50e3c2, #2d8cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stat-label {
    font-size: 0.82rem;
    color: #6b7a8d;
    margin-top: 0.3rem;
}

.landing-panel {
    padding: 1.35rem;
    border-radius: 24px;
    border: 1px solid rgba(80, 227, 194, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.landing-panel .prompt-input-container {
    margin-top: 1rem;
}

.landing-panel .prompt-input {
    min-height: 148px;
}

.landing-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.metric-card {
    padding: 1rem 0.9rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.metric-value {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1;
}

.metric-label {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.landing-grid-two,
.landing-grid-three,
.docs-card-grid,
.capability-type-grid,
.ops-grid-stack,
.panel-grid-two,
.panel-grid-three {
    display: grid;
    gap: 1rem;
}

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

.landing-grid-three,
.docs-card-grid,
.capability-type-grid,
.panel-grid-three {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.docs-card,
.signal-card,
.sidebar-note,
.panel-card {
    padding: 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.capability-type-card:hover {
    transform: translateY(-2px);
    border-color: rgba(80, 227, 194, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.capability-type-card {
    padding: 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card h3,
.docs-card h3,
.capability-type-card h3,
.signal-card h3,
.panel-card h3,
.docs-body h3 {
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.feature-kicker,
.docs-kicker {
    display: inline-block;
    margin-bottom: 0.62rem;
    color: var(--accent);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.feature-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    border-radius: 14px;
    background: rgba(80, 227, 194, 0.08);
    border: 1px solid rgba(80, 227, 194, 0.18);
    color: var(--accent);
    font-size: 1.15rem;
}

.docs-card {
    text-decoration: none;
    color: inherit;
}

.section-anchor {
    scroll-margin-top: 104px;
}

.docs-shell .page-header,
.console-shell .page-header,
.ops-shell .page-header {
    padding: 1.7rem 1.8rem;
}

.docs-body {
    padding: 1.5rem 1.6rem;
}

.docs-body ul {
    padding-left: 1.1rem;
    margin: 0.75rem 0 0;
}

.docs-body li + li {
    margin-top: 0.45rem;
}

.docs-callout {
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 12px;
    border-left: 3px solid rgba(45, 140, 255, 0.5);
    border: 1px solid rgba(45, 140, 255, 0.15);
    background: rgba(45, 140, 255, 0.06);
    color: #c5d9f0;
    font-size: 0.9rem;
    line-height: 1.65;
}

.docs-inline-code {
    display: inline-flex;
    padding: 0.16rem 0.42rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #d8ecff;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.docs-body pre {
    background: rgba(10, 14, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.docs-body pre code {
    color: #c5d0dc;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.65;
}

/* ============================================================================
   Docs Page — polished section cards, steps, model grid
   ============================================================================ */

.docs-stack {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.docs-section {
    display: flex;
    gap: 1.2rem;
    padding: 1.8rem 1.8rem 1.6rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(15, 21, 31, 0.94), rgba(8, 12, 18, 0.9));
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.docs-section:hover {
    border-color: rgba(80, 227, 194, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.docs-section-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(80, 227, 194, 0.08);
    border: 1px solid rgba(80, 227, 194, 0.18);
    color: var(--accent);
    margin-top: 0.15rem;
}

.docs-section-body {
    flex: 1;
    min-width: 0;
}

.docs-section-body h2 {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.docs-section-lead {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Numbered steps */
.docs-steps {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.docs-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    padding: 0;
}

.docs-step-num {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 999px;
    background: rgba(80, 227, 194, 0.1);
    border: 1px solid rgba(80, 227, 194, 0.2);
    color: #50e3c2;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

/* Feature list */
.docs-feature-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.docs-feature-list li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.docs-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(80, 227, 194, 0.55);
}

/* Capability grid */
.docs-cap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.75rem;
}

.docs-cap-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.docs-cap-item .docs-inline-code {
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* Data model grid */
.docs-model-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.75rem;
}

.docs-model-card {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.docs-model-card .docs-inline-code {
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* Callout */
.docs-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(45, 140, 255, 0.12);
    background: rgba(45, 140, 255, 0.05);
    color: #b8cfe8;
    font-size: 0.87rem;
    line-height: 1.6;
}

.docs-callout-icon {
    flex-shrink: 0;
    color: rgba(45, 140, 255, 0.6);
    font-style: normal;
    font-size: 1rem;
    margin-top: 0.05rem;
}

/* Inline code */
.docs-inline-code {
    display: inline-flex;
    padding: 0.14rem 0.45rem;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.07);
    color: #d0e4ff;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .docs-section {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.3rem 1.2rem;
    }

    .docs-cap-grid,
    .docs-model-grid {
        grid-template-columns: 1fr;
    }
}

.console-shell .tasks-overview {
    margin-top: 1.2rem;
}

.console-stack,
.ops-stack {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.panel-card .section-title {
    margin-top: 0;
}

.workspace-toolbar-context {
    gap: 1rem;
}

.workspace-toolbar-stage .toolbar-title {
    font-family: var(--font-heading);
}

/* ============================================================================
   Premium Hero Effects — 借鉴 server/web 动画玻璃美学
   ============================================================================ */

/* Landing hero: animated background orbs */
.landing-hero {
    position: relative;
    overflow: hidden;
}

.landing-hero::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 45%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(80, 227, 194, 0.12), transparent 70%);
    pointer-events: none;
    animation: heroOrbLeft 12s ease-in-out infinite alternate;
    z-index: 0;
}

.landing-hero::before {
    content: "";
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 50%;
    height: 130%;
    background: radial-gradient(ellipse, rgba(45, 140, 255, 0.10), transparent 70%);
    pointer-events: none;
    animation: heroOrbRight 14s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes heroOrbLeft {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 8%) scale(1.15); }
}
@keyframes heroOrbRight {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-6%, -5%) scale(1); }
}

/* Hero heading gradient text animation */
.landing-copy {
    position: relative;
    z-index: 1;
}

.landing-copy--center {
    text-align: center;
}

.landing-copy h1 {
    background: linear-gradient(135deg, #ffffff 0%, #50e3c2 40%, #2d8cff 70%, #a78bfa 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 8s ease infinite;
}

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

/* ============================================================================
   Store Home
   ============================================================================ */

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
    gap: 1.45rem;
    align-items: center;
    min-height: 560px;
    padding: clamp(2.1rem, 4vw, 3.6rem) clamp(1.25rem, 3.2vw, 2.5rem);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at 76% 18%, rgba(80, 227, 194, 0.18), transparent 28%),
        radial-gradient(circle at 10% 90%, rgba(255, 198, 109, 0.12), transparent 30%);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

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

.home-kicker {
    margin: 0 0 0.72rem;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.text-nowrap {
    white-space: nowrap;
}

.home-hero h1 {
    max-width: 16ch;
    margin: 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(2.05rem, 3.65vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.home-lead {
    max-width: 600px;
    margin: 1.05rem 0 0;
    color: #b5c2d3;
    font-size: 0.96rem;
    line-height: 1.72;
}

.home-hero-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.55rem;
}

.home-hero-signals span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 38px;
    padding: 0.55rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.055);
    color: #9eacbd;
    font-size: 0.86rem;
}

.home-hero-signals strong {
    color: #fff;
}

.home-workspace-preview {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(9, 15, 22, 0.95), rgba(7, 10, 15, 0.92)),
        rgba(8, 12, 18, 0.94);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.preview-topbar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    height: 42px;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #8ea0b5;
    font-size: 0.82rem;
}

.preview-topbar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff7a90;
}

.preview-topbar span:nth-child(2) {
    background: #ffc66d;
}

.preview-topbar span:nth-child(3) {
    background: #50e3c2;
    margin-right: 0.45rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.86fr) minmax(0, 1.14fr);
    gap: 0.78rem;
    min-height: 360px;
    padding: 0.78rem;
}

.preview-feed,
.preview-canvas {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
}

.preview-feed {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem;
}

.feed-row {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 0.75rem;
    padding: 0.68rem;
    border-radius: 14px;
    color: #9caabe;
    background: rgba(255, 255, 255, 0.035);
}

.feed-row.active {
    color: #dffaf4;
    border: 1px solid rgba(80, 227, 194, 0.28);
    background: rgba(80, 227, 194, 0.08);
}

.feed-row.confirm {
    color: #ffe4ae;
    border: 1px solid rgba(255, 198, 109, 0.26);
    background: rgba(255, 198, 109, 0.08);
}

.feed-dot {
    width: 10px;
    height: 10px;
    margin-top: 0.28rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.055);
}

.feed-row strong {
    display: block;
    margin-bottom: 0.16rem;
    color: #fff;
    font-size: 0.9rem;
}

.feed-row p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
}

.preview-canvas {
    overflow: hidden;
}

.canvas-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.canvas-toolbar span {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #9baabe;
    font-size: 0.74rem;
}

.canvas-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem;
}

.screen-card,
.screen-line {
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
}

.screen-card {
    min-height: 72px;
}

.screen-card.wide {
    grid-column: 1 / -1;
    min-height: 112px;
    background:
        linear-gradient(135deg, rgba(80, 227, 194, 0.16), rgba(45, 140, 255, 0.1)),
        rgba(255, 255, 255, 0.05);
}

.screen-card.accent {
    background: linear-gradient(135deg, rgba(255, 198, 109, 0.18), rgba(167, 139, 250, 0.1));
}

.screen-line {
    grid-column: 1 / -1;
    height: 18px;
}

.screen-line.short {
    width: 58%;
}

.home-section {
    padding: clamp(2.4rem, 4vw, 3.6rem) 0 0;
}

.home-section-header {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.home-section-header h2,
.home-observe-copy h2,
.home-trust h2,
.home-final-cta h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 2.4vw, 2.25rem);
    line-height: 1.18;
    letter-spacing: 0;
}

.home-section-header p,
.home-observe-copy p,
.home-trust p,
.home-final-cta p {
    color: #a7b6c9;
    line-height: 1.75;
}

.home-task-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-task-card,
.home-flow-step,
.home-capability-card,
.home-trust-grid > div {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.026));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.home-task-card {
    min-height: 172px;
    padding: 1.16rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-task-card:hover,
.home-capability-card:hover {
    transform: translateY(-3px);
    border-color: rgba(80, 227, 194, 0.28);
}

.home-task-card span {
    color: rgba(80, 227, 194, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.home-task-card h3,
.home-flow-step h3,
.home-capability-card h3 {
    margin: 0.92rem 0 0.42rem;
    color: #fff;
    font-size: 1.02rem;
}

.home-task-card p,
.home-flow-step p,
.home-capability-card p,
.home-trust-grid p {
    margin: 0;
    color: #9eacbd;
    line-height: 1.7;
}

.home-flow-section {
    padding-top: clamp(2.4rem, 3.5vw, 3.2rem);
}

.home-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-flow-step {
    position: relative;
    min-height: 174px;
    padding: 1.16rem;
    overflow: hidden;
}

.home-flow-step strong {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(80, 227, 194, 0.1);
    color: var(--accent);
    font-size: 1.02rem;
}

.home-orchestration {
    position: relative;
}

.home-orch-map {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.home-orch-map article {
    position: relative;
    min-height: 178px;
    padding: 1.12rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.024));
}

.home-orch-map article + article::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -0.85rem;
    width: 0.85rem;
    height: 1px;
    background: rgba(80, 227, 194, 0.42);
}

.home-orch-map strong {
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-orch-map h3 {
    margin: 0.78rem 0 0.4rem;
    color: #fff;
    font-size: 1rem;
}

.home-orch-map p {
    margin: 0;
    color: #9eacbd;
    line-height: 1.66;
}

.home-observe {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
    gap: 1.4rem;
    align-items: center;
}

.home-observe-copy {
    max-width: 520px;
}

.home-observe-panel {
    display: grid;
    grid-template-columns: minmax(200px, 0.78fr) minmax(0, 1.22fr);
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(135deg, rgba(80, 227, 194, 0.08), rgba(255, 198, 109, 0.07)),
        rgba(255, 255, 255, 0.035);
}

.observe-left,
.observe-right {
    border-radius: 18px;
    background: rgba(4, 8, 12, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.observe-left {
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
    padding: 0.85rem;
}

.observe-line {
    padding: 0.72rem 0.78rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: #aab8ca;
    font-size: 0.82rem;
}

.observe-line.strong {
    color: #fff;
}

.observe-line.warning {
    color: #ffe2a8;
    background: rgba(255, 198, 109, 0.1);
}

.observe-line.done {
    color: #dffaf4;
    background: rgba(80, 227, 194, 0.1);
}

.observe-right {
    padding: 0.9rem;
}

.observe-window {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 0.75rem;
    min-height: 156px;
}

.observe-window div,
.observe-output span {
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
}

.observe-window div:first-child {
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(45, 140, 255, 0.18), rgba(80, 227, 194, 0.1));
}

.observe-output {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.observe-output span {
    height: 16px;
}

.observe-output span:nth-child(2) {
    width: 76%;
}

.observe-output span:nth-child(3) {
    width: 88%;
}

.observe-output span:nth-child(4) {
    width: 58%;
}

.home-capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-capability-card {
    display: block;
    min-height: 188px;
    padding: 1.16rem;
    color: inherit;
    text-decoration: none;
}

.home-capability-card strong {
    color: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-trust {
    display: grid;
    grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
    gap: 1.4rem;
    align-items: start;
}

.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-trust-grid > div {
    padding: 1.2rem;
}

.home-trust-grid strong {
    display: block;
    margin-bottom: 0.45rem;
    color: #fff;
}

.home-final-cta {
    margin-top: clamp(2.4rem, 4vw, 4rem);
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
    border-radius: 28px;
    border: 1px solid rgba(80, 227, 194, 0.18);
    background:
        radial-gradient(circle at 50% 0%, rgba(80, 227, 194, 0.18), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
}

.home-final-cta p {
    max-width: 620px;
    margin: 1rem auto 0;
}

/* Badge pulse animation */
.hero-badge {
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(80,227,194,0); }
    50% { box-shadow: 0 0 0 6px rgba(80,227,194,0.06); }
}

/* ============================================================================
   Premium Card Effects — hover 升级 + 渐变边框
   ============================================================================ */

.feature-card,
.capability-type-card,
.docs-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.capability-type-card::before,
.docs-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.35s ease;
}

.feature-card:hover,
.capability-type-card:hover,
.docs-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-card:hover::before,
.capability-type-card:hover::before,
.docs-card:hover::before {
    background: linear-gradient(135deg, #50e3c2, transparent 60%);
}

/* Metric card hover */
.metric-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: rgba(80, 227, 194, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Brand domain fix — ensure .io is visible */
.brand-domain {
    background: none !important;
    -webkit-text-fill-color: #50e3c2 !important;
    background-clip: unset !important;
    color: #50e3c2 !important;
}

/* Brand text: gradient for InferLink only */
.brand-text {
    display: flex;
    align-items: baseline;
    gap: 0;
    line-height: 1;
    background: linear-gradient(135deg, #50e3c2, #ffffff, #2d8cff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ============================================================================
   Global Animations & Accessibility
   ============================================================================ */

/* Page enter animation */
main {
    animation: pageEnter 0.35s ease;
}

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

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================================
   Responsive Breakpoints — Grid Collapse
   ============================================================================ */

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

    .hero-stats {
        gap: 2rem;
    }

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

    .home-hero h1 {
        max-width: 16ch;
    }

    .home-task-grid,
    .home-flow-grid,
    .home-capability-grid,
    .home-orch-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-orch-map article + article::before {
        display: none;
    }
}

@media (max-width: 1024px) {
    .page-shell--wide {
        width: calc(100% - 32px);
    }

    .store-layout,
    .landing-grid-two,
    .landing-grid-three,
    .docs-card-grid,
    .capability-type-grid,
    .panel-grid-two,
    .panel-grid-three,
    .ops-overview-grid {
        grid-template-columns: 1fr;
    }

    .ops-grid-two {
        grid-template-columns: 1fr;
    }

    .store-sidebar {
        position: static;
    }

    .hero-stats {
        gap: 1.5rem;
    }

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

@media (max-width: 768px) {
    .store-navbar .nav-links {
        display: none;
    }

    .landing-hero {
        padding: 1.45rem 1rem 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.62rem;
    }

    .hero-actions .btn,
    .landing-panel .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .landing-metrics {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: auto;
        gap: 1.1rem;
        border-radius: 18px;
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    }

    .home-hero h1 {
        max-width: 15ch;
        font-size: clamp(1.82rem, 8.8vw, 2.45rem);
        line-height: 1.12;
    }

    .home-lead {
        margin-top: 0.85rem;
        font-size: 0.92rem;
        line-height: 1.68;
    }

    .home-kicker {
        margin-bottom: 0.55rem;
        font-size: 0.62rem;
        letter-spacing: 0.14em;
    }

    .home-hero-signals {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .home-hero-signals span {
        width: 100%;
        min-height: 34px;
        justify-content: center;
        padding: 0.48rem 0.6rem;
        font-size: 0.8rem;
        box-sizing: border-box;
    }

    .home-workspace-preview {
        width: 100%;
        border-radius: 16px;
    }

    .preview-topbar {
        height: 36px;
        padding: 0 0.75rem;
        font-size: 0.74rem;
    }

    .preview-grid,
    .home-observe-panel {
        grid-template-columns: 1fr;
    }

    .preview-grid {
        min-height: auto;
        gap: 0.6rem;
        padding: 0.6rem;
    }

    .preview-feed {
        gap: 0.48rem;
        padding: 0.55rem;
    }

    .feed-row {
        grid-template-columns: 10px 1fr;
        gap: 0.55rem;
        padding: 0.58rem;
    }

    .feed-dot {
        width: 8px;
        height: 8px;
    }

    .feed-row strong {
        font-size: 0.82rem;
    }

    .feed-row p {
        font-size: 0.72rem;
        line-height: 1.45;
    }

    .canvas-toolbar {
        gap: 0.35rem;
        padding: 0.52rem;
        overflow-x: auto;
    }

    .canvas-toolbar span {
        padding: 0.28rem 0.48rem;
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .canvas-screen {
        gap: 0.55rem;
        padding: 0.65rem;
    }

    .screen-card {
        min-height: 54px;
    }

    .screen-card.wide {
        min-height: 78px;
    }

    .screen-line {
        height: 12px;
    }

    .home-task-grid,
    .home-flow-grid,
    .home-capability-grid,
    .home-orch-map,
    .home-trust-grid {
        grid-template-columns: 1fr;
    }

    .home-task-card,
    .home-flow-step,
    .home-capability-card {
        min-height: auto;
        border-radius: 16px;
        padding: 1rem;
    }

    .home-section-header h2,
    .home-observe-copy h2,
    .home-trust h2,
    .home-final-cta h2 {
        font-size: clamp(1.42rem, 7.6vw, 2rem);
        line-height: 1.2;
    }

    .home-section {
        padding-top: 2rem;
    }

    .home-section-header {
        margin-bottom: 1rem;
    }

    .home-section-header p,
    .home-observe-copy p,
    .home-trust p,
    .home-final-cta p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .home-task-card h3,
    .home-flow-step h3,
    .home-capability-card h3,
    .home-orch-map h3 {
        font-size: 0.98rem;
    }

    .home-task-card p,
    .home-flow-step p,
    .home-capability-card p,
    .home-trust-grid p,
    .home-orch-map p {
        font-size: 0.86rem;
        line-height: 1.62;
    }

    .home-orch-map article {
        min-height: auto;
        border-radius: 16px;
        padding: 1rem;
    }

    .home-observe {
        gap: 1rem;
    }

    .home-observe-panel {
        gap: 0.7rem;
        padding: 0.7rem;
        border-radius: 16px;
    }

    .observe-left,
    .observe-right {
        border-radius: 14px;
    }

    .observe-window {
        min-height: 118px;
        gap: 0.55rem;
    }

    .observe-line {
        padding: 0.58rem 0.64rem;
        font-size: 0.76rem;
    }

    .home-final-cta {
        border-radius: 18px;
        padding: 1.7rem 1rem;
    }
}

@media (max-width: 420px) {
    .page-shell,
    .page-shell--wide {
        width: calc(100% - 20px);
    }

    .home-hero h1 {
        font-size: clamp(1.64rem, 8.9vw, 2.08rem);
    }

    .home-lead {
        font-size: 0.88rem;
    }

    .canvas-screen {
        grid-template-columns: 1fr;
    }

    .screen-card.wide,
    .screen-line {
        grid-column: auto;
    }
}

/* ── Capability Pages (MCP / Skills / Workflows / Agents) ── */
.capability-hero {
    text-align: center;
    padding: 2.5rem 1.5rem 1.5rem;
}

.capability-hero-copy {
    max-width: 640px;
    margin: 0 auto;
}

.capability-hero-copy h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.75rem 0;
    letter-spacing: -0.5px;
}

.capability-hero-copy .hero-tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.capability-hero-copy .hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.capability-list-section {
    padding: 1.5rem;
}

.capability-list-section .section-header {
    margin-bottom: 1.2rem;
}

.capability-list-section .section-header h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.capability-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(15, 21, 31, 0.94), rgba(8, 12, 18, 0.9));
    transition: border-color 0.2s, transform 0.2s;
}

.capability-card:hover {
    border-color: rgba(80, 227, 194, 0.2);
    transform: translateY(-2px);
}

.capability-card-icon {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.capability-card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
}

.capability-card-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.capability-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.85rem;
}

.capability-card-type {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================================
   Capability pages (MCP / Skills / Workflows / Agents) — shared styles
   ============================================================================ */

.cap-hero {
    position: relative;
    overflow: hidden;
    padding: 2.25rem 2rem;
    background: linear-gradient(135deg, var(--cap-hero-from) 0%, var(--cap-hero-to) 50%, #0a1628 100%);
    border-radius: 1rem;
    margin: 1rem 0 2rem;
    border: 1px solid var(--cap-accent-dim);
}
.cap-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -15%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--cap-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}
.cap-hero::after {
    content: '';
    position: absolute;
    bottom: -40%; left: -10%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(45,140,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.cap-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.cap-hero-icon {
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: 1.125rem;
    background: var(--cap-accent-dim);
    border: 1px solid var(--cap-accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 50px var(--cap-accent-glow);
}
.cap-hero-copy h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
    background: linear-gradient(135deg, #fff 0%, var(--cap-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cap-hero-copy p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem;
    max-width: 500px;
}
.cap-hero-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cap-hero-actions .btn { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

.cap-section { margin: 2rem 0; }
.cap-section-header {
    display: flex; align-items: baseline; gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.cap-section-header h2 {
    font-size: 1.25rem; font-weight: 600; margin: 0;
}
.cap-section-count {
    font-size: 0.8rem; color: var(--text-muted);
    background: var(--glass-bg); border: 1px solid var(--border-subtle);
    padding: 0.15rem 0.65rem; border-radius: 100px;
}

/* Capability card grid & pagination */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.cap-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.25s ease;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}
.cap-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cap-accent), transparent);
    opacity: 0; transition: opacity 0.25s;
}
.cap-card:hover {
    transform: translateY(-3px);
    border-color: var(--cap-accent-dim);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25), 0 0 30px var(--cap-accent-dim);
}
.cap-card:hover::before { opacity: 1; }
.cap-card-top { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.6rem; }
.cap-card-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--cap-accent-dim);
    border: 1px solid var(--cap-accent-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.cap-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.3rem; }
.cap-card-desc {
    font-size: 0.85rem; color: var(--text-muted);
    line-height: 1.5; margin: 0 0 0.85rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.cap-card-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.cap-card-badge {
    font-size: 0.72rem; font-weight: 500;
    padding: 0.15rem 0.55rem; border-radius: 100px;
    background: var(--cap-accent-dim);
    color: var(--cap-accent);
    border: 1px solid var(--cap-accent-dim);
}
.cap-card-badge--type {
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    border-color: var(--border-subtle);
}
.cap-card-badge--exec {
    background: rgba(34,197,94,0.1);
    color: #22c55e;
    border-color: rgba(34,197,94,0.2);
}
.cap-card-badge--text {
    background: rgba(148,163,184,0.08);
    color: #94a3b8;
    border-color: rgba(148,163,184,0.15);
}
.cap-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

/* Filters */
.cap-filters { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.cap-search {
    flex: 1; min-width: 200px;
    padding: 0.55rem 0.85rem;
    border-radius: 0.65rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none; transition: border-color 0.2s;
}
.cap-search:focus { border-color: var(--cap-accent); }
.cap-search::placeholder { color: var(--text-muted); }
.cap-sort {
    padding: 0.55rem 1.75rem 0.55rem 0.75rem;
    border-radius: 0.65rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none; cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
}

.cap-pagination { display: flex; gap: 0.3rem; justify-content: center; margin-top: 1.75rem; align-items: center; }
.cap-page-btn {
    min-width: 34px; height: 34px;
    border-radius: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.85rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.cap-page-btn:hover:not(:disabled) { border-color: var(--cap-accent); color: var(--text-primary); }
.cap-page-btn.active { background: var(--cap-accent-dim); border-color: var(--cap-accent); color: var(--cap-accent); }
.cap-page-btn:disabled { opacity: 0.35; cursor: default; }
.cap-page-ellipsis { color: var(--text-muted); padding: 0 0.2rem; }

@media (max-width: 768px) {
    .cap-hero {
        margin: 1rem 0 1.35rem;
        padding: 1.35rem 1rem;
        border-radius: 18px;
    }

    .cap-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.9rem;
    }

    .cap-hero-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        font-size: 1.45rem;
    }

    .cap-hero-copy h1 {
        font-size: clamp(1.45rem, 7vw, 1.9rem);
        line-height: 1.18;
    }

    .cap-hero-copy p {
        max-width: 100%;
        font-size: 0.88rem;
        line-height: 1.62;
    }

    .cap-hero-actions {
        justify-content: center;
    }

    .cap-hero-actions .btn,
    .cap-filters .cap-search,
    .cap-filters .cap-sort {
        width: 100%;
    }

    .cap-section {
        margin: 1.35rem 0;
    }

    .cap-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }

    .cap-section-header h2 {
        font-size: 1.08rem;
    }

    .cap-grid {
        grid-template-columns: 1fr;
        gap: 0.78rem;
    }

    .cap-card {
        border-radius: 16px;
        padding: 1rem;
    }

    .cap-card h3 {
        font-size: 0.96rem;
    }

    .cap-card-desc {
        font-size: 0.82rem;
    }

    .cap-pagination {
        flex-wrap: wrap;
    }

    .store-layout.docs-shell,
    .store-layout.cl-shell {
        gap: 1rem;
    }

    .store-sidebar {
        display: none;
    }

    .store-main,
    .cl-main {
        min-width: 0;
    }

    .store-page-header,
    .page-header {
        border-radius: 18px;
        padding: 1.25rem;
    }

    .store-page-header h1,
    .page-title {
        font-size: clamp(1.45rem, 7vw, 1.9rem);
        line-height: 1.18;
    }

    .page-lead,
    .store-page-header p {
        font-size: 0.88rem;
        line-height: 1.62;
    }

    .page-header-signals {
        justify-content: flex-start;
    }

    .docs-section {
        padding: 1rem;
        border-radius: 16px;
    }

    .docs-section-body h2 {
        font-size: 1.16rem;
    }

    .docs-section-lead,
    .docs-body p,
    .docs-body li {
        font-size: 0.88rem;
    }

    .cl-overview-stats,
    .cl-shell-grid,
    .cl-form-grid {
        grid-template-columns: 1fr !important;
    }

    .cl-composer,
    .cl-panel {
        border-radius: 16px;
    }
}

/* Final lock for the 2C refresh. This block intentionally sits last. */
body.store-app {
    background:
        radial-gradient(circle at 18% -8%, rgba(80, 227, 194, 0.12), transparent 31rem),
        radial-gradient(circle at 84% 5%, rgba(88, 166, 255, 0.12), transparent 29rem),
        linear-gradient(135deg, #070a0f 0%, #101620 52%, #080b10 100%);
}

.store-app .navbar {
    background: rgba(7, 10, 15, 0.76);
    border-bottom-color: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(22px);
}

.store-app .nav-links a.active {
    color: #ecfffb;
    border-color: rgba(80, 227, 194, 0.22);
    background: linear-gradient(135deg, rgba(80, 227, 194, 0.13), rgba(88, 166, 255, 0.08));
}

.store-public .home-hero,
.store-capability .cap-hero {
    border-radius: 28px;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--il-shadow);
}

.store-capability .cap-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.028)),
        var(--il-panel);
    border-color: var(--il-line);
}

.store-capability .cap-card-action {
    display: flex;
}

.store-control .page-header,
.store-control .store-page-header,
.store-control .glass-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.028)),
        var(--il-panel);
    border-color: var(--il-line);
}

.store-console .cl-overview-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.store-console .cl-shell-grid {
    grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.85fr) !important;
    align-items: stretch;
}

.store-ops .ops-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-console .cl-overview-workbench,
.store-console .cl-overview-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

.store-console .cl-overview-stack > .glass-card {
    width: 100%;
}

.store-console .cl-overview-stack .cl-account-strip {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.82fr) auto;
    gap: 1rem;
    margin-bottom: 0;
}

.store-console .cl-account-card {
    padding: 1.15rem 1.25rem;
}

.store-console .cl-overview-launch {
    position: relative;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.store-console .cl-overview-launch::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 227, 194, 0.13), transparent 68%);
    pointer-events: none;
}

.store-console .cl-overview-launch h3,
.store-console .cl-overview-launch form,
.store-console .cl-guide-card,
.store-console .cl-account-card,
.store-console .cl-recent-panel,
.store-console .cl-rewards-card {
    position: relative;
    z-index: 1;
}

.store-console #console-quickstart-form {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
}

.store-console #console-prompt-input {
    min-height: 190px !important;
    flex: 1;
}

.store-console .cl-launch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-top: auto;
}

.store-console .cl-overview-stack .cl-overview-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    margin-bottom: 0 !important;
}

.store-console .cl-overview-stack .cl-stat-card {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.store-console .cl-overview-stack .cl-recent-panel {
    min-height: 210px;
}

.store-console .cl-overview-stack .console-run-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.store-console .cl-guide-card--compact .cl-guide-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-console .cl-overview-stack .cl-rewards-card {
    min-height: 0;
}

@media (max-width: 1200px) {
    .store-console .cl-overview-workbench {
        grid-template-columns: 1fr;
    }

    .store-console .cl-overview-stats,
    .store-ops .ops-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .store-console .cl-shell-grid {
        grid-template-columns: 1fr !important;
    }

    .store-console .cl-account-strip,
    .cl-overview-bottom,
    .cl-guide-steps {
        grid-template-columns: 1fr;
    }

    .store-console .cl-overview-stack .cl-account-strip,
    .store-console .cl-overview-stack .console-run-list,
    .store-console .cl-guide-card--compact .cl-guide-steps {
        grid-template-columns: 1fr;
    }

    .cl-account-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .store-public .home-hero,
    .store-capability .cap-hero {
        border-radius: 20px;
    }

    .store-capability .cap-grid,
    .store-console .cl-overview-stats,
    .store-ops .ops-overview-grid {
        grid-template-columns: 1fr !important;
    }

    .store-console .cl-overview-workbench,
    .store-console .cl-overview-stack {
        gap: 1rem;
    }

    .store-console .cl-overview-launch {
        min-height: auto;
    }

    .store-console #console-prompt-input {
        min-height: 190px !important;
    }

    .store-console .cl-guide-card--compact .cl-guide-steps {
        grid-template-columns: 1fr !important;
    }

    .cap-hero-visual {
        display: none;
    }

    .console-launch-ribbon {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .home-hero-command span {
        grid-column: 1 / -1;
    }

    .home-hero-command strong {
        white-space: normal;
    }

    .preview-artifacts {
        padding: 0 0.65rem 0.65rem;
    }
}

/* Final override: home and capability hero refinement */
.store-public .home-page-shell {
    width: min(1120px, calc(100% - 64px));
}

.store-public .home-hero {
    grid-template-columns: minmax(0, 0.98fr) minmax(390px, 0.82fr);
    gap: clamp(1rem, 2vw, 1.65rem);
    min-height: 520px;
    padding: clamp(1.9rem, 3.1vw, 2.75rem) clamp(1.3rem, 2.6vw, 2.15rem);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.025)),
        radial-gradient(circle at 71% 18%, rgba(80, 227, 194, 0.17), transparent 27%),
        radial-gradient(circle at 13% 92%, rgba(88, 166, 255, 0.12), transparent 32%),
        linear-gradient(140deg, rgba(8, 13, 20, 0.94), rgba(12, 18, 28, 0.92));
}

.store-public .home-hero h1 {
    max-width: 18ch;
    font-size: clamp(2.2rem, 4.15vw, 4rem);
    line-height: 1.02;
}

.store-public .home-lead {
    max-width: 600px;
}

.store-public .home-hero-command {
    max-width: 620px;
}

.store-public .home-hero-signals {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.44rem;
    max-width: 100%;
    overflow: visible;
    scrollbar-width: none;
}

.store-public .home-hero-signals::-webkit-scrollbar {
    display: none;
}

.store-public .home-hero-signals .home-metric-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    flex: 0 1 auto;
    min-width: 0;
    justify-content: center;
    min-height: 36px;
    padding: 0.48rem 0.62rem;
    white-space: nowrap;
}

.store-public .home-hero-signals .home-metric-pill strong,
.store-public .home-hero-signals .home-metric-pill em {
    display: inline;
    white-space: nowrap;
    font-style: normal;
    line-height: 1;
}

.store-public .home-workspace-preview {
    align-self: center;
    justify-self: end;
    width: min(100%, 430px);
    aspect-ratio: 0.94 / 1;
    border-radius: 24px;
    background:
        radial-gradient(circle at 76% 12%, rgba(80, 227, 194, 0.16), transparent 23%),
        radial-gradient(circle at 7% 94%, rgba(88, 166, 255, 0.13), transparent 28%),
        linear-gradient(180deg, rgba(11, 18, 28, 0.98), rgba(5, 8, 13, 0.97));
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 82px rgba(0, 0, 0, 0.48), 0 0 42px rgba(80, 227, 194, 0.09);
}

.store-public .home-workspace-preview::before {
    content: "";
    position: absolute;
    inset: 42px 0 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, transparent 92%);
    mask-image: linear-gradient(180deg, transparent, #000 20%, transparent 92%);
    opacity: 0.5;
}

.store-public .preview-topbar,
.store-public .preview-status-strip,
.store-public .preview-grid {
    position: relative;
    z-index: 1;
}

.store-public .preview-topbar strong {
    min-width: 0;
    overflow: hidden;
    color: #eaf4ff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-public .preview-topbar em {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 0.2rem 0.52rem;
    border-radius: 999px;
    background: rgba(80, 227, 194, 0.12);
    color: var(--accent);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.store-public .preview-status-strip,
.store-public .preview-surface-tabs {
    display: flex;
    gap: 0.45rem;
    overflow: hidden;
}

.store-public .preview-status-strip {
    padding: 0.62rem 0.72rem 0;
}

.store-public .preview-status-strip span,
.store-public .preview-surface-tabs span {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-public .preview-status-strip span {
    padding: 0.3rem 0.48rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    color: #9fb0c2;
    font-size: 0.66rem;
    background: rgba(255, 255, 255, 0.042);
}

.store-public .preview-status-strip span:nth-child(3) {
    color: #ffe3a8;
    border-color: rgba(255, 198, 109, 0.2);
    background: rgba(255, 198, 109, 0.08);
}

.store-public .preview-surface-tabs {
    padding: 0.62rem 0.62rem 0;
}

.store-public .preview-surface-tabs span {
    padding: 0.28rem 0.54rem;
    border-radius: 7px;
    background: rgba(255,255,255,0.055);
    color: #9fb0c2;
    font-size: 0.66rem;
    font-weight: 700;
}

.store-public .preview-surface-tabs span:first-child {
    background: linear-gradient(135deg, #61f4d5, #4aa9ff);
    color: #071016;
}

.store-public .preview-grid {
    grid-template-columns: minmax(138px, 0.72fr) minmax(0, 1.28fr);
    min-height: 334px;
    height: calc(100% - 86px);
    padding: 0.58rem;
    gap: 0.58rem;
}

.store-public .preview-feed,
.store-public .preview-canvas {
    backdrop-filter: blur(14px);
}

.store-public .preview-feed {
    gap: 0.46rem;
    padding: 0.58rem;
}

.store-public .feed-row {
    grid-template-columns: 10px 1fr;
    gap: 0.5rem;
    padding: 0.52rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.store-public .feed-dot {
    width: 8px;
    height: 8px;
    margin-top: 0.25rem;
}

.store-public .feed-row strong {
    font-size: 0.78rem;
}

.store-public .feed-row p {
    font-size: 0.66rem;
    line-height: 1.45;
}

.store-public .canvas-toolbar {
    padding: 0.56rem 0.62rem;
    gap: 0.35rem;
}

.store-public .canvas-toolbar span {
    padding: 0.3rem 0.46rem;
    font-size: 0.66rem;
}

.store-public .canvas-screen {
    gap: 0.56rem;
    padding: 0.74rem 0.74rem 0.66rem;
}

.store-public .screen-card {
    min-height: 44px;
    border-radius: 12px;
}

.store-public .screen-card.wide {
    min-height: 88px;
}

.store-public .screen-line {
    height: 14px;
    border-radius: 999px;
}

.store-public .preview-artifacts {
    padding: 0 0.74rem 0.74rem;
    gap: 0.38rem;
}

.store-public .preview-artifacts span {
    min-height: 24px;
    padding: 0.3rem 0.45rem;
    border-radius: 8px;
    font-size: 0.65rem;
}

.store-capability .cap-hero {
    padding: clamp(2.2rem, 4vw, 3.4rem);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.025)),
        radial-gradient(circle at 80% 18%, var(--cap-accent-glow), transparent 34%),
        linear-gradient(135deg, var(--cap-hero-from), var(--cap-hero-to) 62%, #07111f);
}

.store-capability .cap-hero-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 0.95fr) minmax(320px, 0.9fr);
    gap: clamp(1rem, 2.5vw, 2rem);
    max-width: 1120px;
    align-items: center;
}

.store-capability .cap-hero-mark {
    position: relative;
    width: 74px;
    height: 74px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.2), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
        var(--cap-accent-dim);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 0;
    overflow: hidden;
}

.store-capability .cap-hero-mark::before,
.store-capability .cap-hero-mark::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.store-capability .cap-hero-mark::before {
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.store-capability .cap-hero-mark::after {
    width: 8px;
    height: 8px;
    right: 12px;
    top: 12px;
    background: var(--cap-accent);
    box-shadow: 0 0 18px var(--cap-accent);
}

.store-capability .cap-hero-mark span {
    position: relative;
    z-index: 1;
    color: var(--cap-accent);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.store-capability .cap-hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.04;
}

.store-capability .cap-hero-copy p {
    max-width: 620px;
    color: rgba(222, 233, 244, 0.78);
    font-size: 0.98rem;
}

.store-capability .cap-hero-visual {
    width: 100%;
    min-height: 252px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(9, 15, 23, 0.86), rgba(5, 8, 13, 0.88)),
        radial-gradient(circle at 70% 15%, var(--cap-accent-glow), transparent 30%);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.store-capability .cap-hero-visual:not(.cap-hero-visual--workflow)::after {
    content: "";
    position: absolute;
    inset: auto 18px 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cap-accent), transparent);
    opacity: 0.55;
}

.store-capability .cap-hero-visual--mcp {
    display: block;
}

.store-capability .cap-hero-visual--skills {
    display: grid;
}

.store-capability .cap-hero-visual--workflow {
    display: flex;
}

.store-capability .cap-hero-visual--agent {
    display: grid;
}

.store-capability .cap-hero-visual--cli {
    display: flex;
}

.store-capability .cap-hero-visual--software {
    display: grid;
}

@media (max-width: 980px) {
    .store-public .home-page-shell {
        width: calc(100% - 32px);
    }

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

    .store-public .home-workspace-preview {
        justify-self: stretch;
        width: 100%;
        max-width: 720px;
        aspect-ratio: auto;
    }

    .store-capability .cap-hero-inner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .store-capability .cap-hero-visual {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .store-public .home-hero {
        min-height: auto;
        padding: 1.45rem 1rem 1rem;
    }

    .store-public .home-hero-signals {
        flex-wrap: wrap;
        overflow: visible;
    }

    .store-public .home-hero-signals .home-metric-pill {
        flex: 1 1 128px;
        justify-content: center;
    }

    .store-public .preview-grid {
        height: auto;
        min-height: auto;
    }

    .store-capability .cap-hero-inner {
        grid-template-columns: 1fr;
    }

    .store-capability .cap-hero-mark {
        width: 58px;
        height: 58px;
    }

    .store-capability .cap-hero-visual {
        min-height: 210px;
    }
}
