/* ZapCount - Base Styles */

:root {
    /* Core Palette */
    --primary: #4f46e5;      /* Indigo 600 */
    --primary-hover: #4338ca; /* Indigo 700 */
    --secondary: #0ea5e9;    /* Sky 500 */
    --accent: #f43f5e;       /* Rose 500 */
    
    /* Neutrals */
    --bg-body: #f8fafc;      /* Slate 50 */
    --bg-surface: #ffffff;
    --text-main: #0f172a;    /* Slate 900 */
    --text-muted: #64748b;   /* Slate 500 */
    --text-light: #94a3b8;   /* Slate 400 */
    --border: #e2e8f0;       /* Slate 200 */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Spacing */
    --container-width: 1200px;
    --header-height: 70px;
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    display: inline-block;
    width: 1em;
    height: 1em;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1;
}

/* Utilities */
.lc-hidden, .hidden { display: none !important; }

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    z-index: 1000;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
}

.lc-header-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lc-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.lc-logo img {
    margin-right: -6px; /* tuck the text slightly closer */
    transform: translateY(-2px);
}

.lc-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lc-cta-button {
    background: var(--text-main);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.lc-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: #000;
}

/* Container */
.lc-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.lc-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lc-section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* Hero Section */
.lc-hero {
    padding: 4rem 0 4rem;
    background: radial-gradient(50% 50% at 50% 10%, rgba(79, 70, 229, 0.1) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.lc-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.2), transparent);
}

/* Hero Background Icons */
.lc-hero-background-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.lc-floating-icon {
    position: absolute;
    opacity: 0.15;
    color: var(--primary);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.lc-floating-icon .material-symbols-outlined {
    font-size: 48px;
    width: 100%;
    height: 100%;
}

/* Icon Specifics */
.lc-icon-1 { top: 15%; left: 8%; }
.lc-icon-2 { bottom: 20%; right: 8%; }
.lc-icon-3 { top: 12%; right: 15%; }
.lc-icon-4 { bottom: 15%; left: 20%; }
.lc-icon-5 { top: 50%; left: 50%; margin-left: -20px; margin-top: -20px; }
.lc-icon-6 { top: 30%; left: 5%; }
.lc-icon-7 { top: 60%; right: 12%; }
.lc-icon-8 { bottom: 10%; left: 50%; margin-left: -20px; }
.lc-icon-9 { bottom: 35%; left: 10%; }
.lc-icon-10 { top: 25%; right: 35%; }

/* Animation classes applied to children */
.lc-floating-icon span {
    animation: scurry var(--duration, 10s) linear infinite;
}

@keyframes scurry {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(var(--tx-1, 30px), var(--ty-1, -30px)) rotate(var(--r-1, 10deg)); }
    40% { transform: translate(var(--tx-2, -20px), var(--ty-2, 20px)) rotate(var(--r-2, -20deg)); }
    60% { transform: translate(var(--tx-3, 40px), var(--ty-3, 10px)) rotate(var(--r-3, 40deg)); }
    80% { transform: translate(var(--tx-4, -10px), var(--ty-4, -40px)) rotate(var(--r-4, -10deg)); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Individual variations */
.lc-icon-1 span { animation-duration: 45s; animation-delay: -12s; }
.lc-icon-2 span { animation-duration: 55s; animation-delay: -37s; }
.lc-icon-3 span { animation-duration: 50s; animation-delay: -22s; }
.lc-icon-4 span { animation-duration: 48s; animation-delay: -41s; }
.lc-icon-5 span { animation-duration: 52s; animation-delay: -5s; }
.lc-icon-6 span { animation-duration: 40s; animation-delay: -28s; }
.lc-icon-7 span { animation-duration: 47s; animation-delay: -33s; }
.lc-icon-8 span { animation-duration: 46s; animation-delay: -19s; }
.lc-icon-9 span { animation-duration: 53s; animation-delay: -15s; }
.lc-icon-10 span { animation-duration: 49s; animation-delay: -25s; }

.lc-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.lc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.lc-hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
}

.lc-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Demo Widget Styles (Ported) */
.demo-widget {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: left;
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Loading Animation Styles (Image Overlay) */
.preview-wrapper {
    position: relative;
    overflow: hidden;
}

/* Detecting State: Scan Animation */
.scan-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    animation: scan-vertical 1.8s ease-in-out infinite;
    z-index: 6;
    pointer-events: none;
    will-change: transform;
}

.scan-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 66px;
    background:
        linear-gradient(90deg, transparent 0%, var(--primary) 30%, white 50%, var(--primary) 70%, transparent 100%) top / 100% 6px no-repeat,
        linear-gradient(to bottom, rgba(79, 70, 229, 0.3), transparent) 0 6px / 100% 60px no-repeat;
    box-shadow: 0 0 20px var(--primary), 0 0 40px rgba(79, 70, 229, 0.5);
}

@keyframes scan-vertical {
    0% { transform: translateY(-66px); }
    100% { transform: translateY(100%); }
}

/* Counting State: Stunning Points Animation */
.points-layer {
    position: absolute;
    inset: 0;
    z-index: 6;
    overflow: hidden;
}

.counting-dot {
    position: absolute;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 8px var(--primary), 0 0 16px var(--primary), 0 0 24px rgba(14, 165, 233, 0.5);
    transform: scale(0);
    animation: dot-pop 0.8s ease-out forwards;
    opacity: 0;
}

/* Dot size variants */
.counting-dot.dot-sm { width: 6px; height: 6px; }
.counting-dot.dot-md { width: 10px; height: 10px; }
.counting-dot.dot-lg { width: 14px; height: 14px; }

@keyframes dot-pop {
    0% { transform: scale(0); opacity: 0; }
    30% { transform: scale(1.3); opacity: 1; }
    60% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(0.6); opacity: 0; }
}

[dir="rtl"] .demo-widget {
    text-align: right;
}

.file-input-wrapper {
    position: relative;
    border: 3px dashed rgba(79, 70, 229, 0.3);
    border-radius: 12px;
    padding: 3rem 1.5rem;
    text-align: center;
    background: rgba(79, 70, 229, 0.02);
    cursor: pointer;
    transition: all 0.2s;
}

.file-input-wrapper:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.file-input-wrapper.dragover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    transform: scale(1.01);
}

/* Demo Carousel */
.demo-carousel-container {
    margin-top: 1.5rem;
    text-align: center;
    position: relative;
}

.demo-arrow-wrapper {
    position: absolute;
    bottom: -130px;
    right: -60px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--accent);
    pointer-events: none;
    z-index: 10;
    animation: arrow-bounce 2s infinite ease-in-out;
}

[dir="rtl"] .demo-arrow-wrapper {
    right: auto;
    left: -60px;
    align-items: flex-start;
}

[dir="rtl"] .fancy-arrow {
    transform: scaleX(-1);
}

.fancy-arrow {
    color: var(--accent);
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.05));
}

.click-animation {
    position: absolute;
    top: 62px;
    left: 38px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.click-animation .ripple {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: ripple-effect 2s infinite ease-out;
}

@keyframes arrow-bounce {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5px, -5px) rotate(-2deg); }
}

@keyframes ripple-effect {
    0%, 55% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 640px) {
    .demo-arrow-wrapper {
        right: 0;
        bottom: -90px;
        transform: scale(0.8);
    }
    [dir="rtl"] .demo-arrow-wrapper {
        right: auto;
        left: 0;
    }
}

.demo-carousel-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.demo-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start; /* Align start to prevent cut-off on overflow */
}

.demo-carousel::-webkit-scrollbar {
    height: 6px;
}

.demo-carousel::-webkit-scrollbar-track {
    background: var(--bg-body);
    border-radius: 3px;
}

.demo-carousel::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.demo-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: all 0.2s;
    background-color: var(--bg-body);
}

.demo-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.demo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.demo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 6px 4px;
    backdrop-filter: blur(2px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hidden { display: none; }

.status-row {
    margin-top: 1.5rem;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeSlideIn 0.4s ease-out;
}

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

.status-preview-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    min-height: 200px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(79, 70, 229, 0.2);
}

.status-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.5;
    filter: saturate(0.8);
}

.status-overlay-anchor {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.status-content-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent, rgba(0,0,0,0.6));
}

.status-text {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 320px);
    min-height: 4rem;
    text-align: center;
}

.status-text::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-right-color: transparent;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    animation: spin 0.8s linear infinite;
}

[dir="rtl"] .status-text::before {
    margin-right: 0;
    margin-left: 12px;
}

/* Loading overlay for status preview */
.loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.loading-overlay.hidden {
    display: none;
}

/* Cancel button styling for dark background */
.status-content-overlay .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(4px);
}

.status-content-overlay .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.feedback-title {
    margin-bottom: 0.25rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.25rem;
}

.feedback-subtitle {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

#result {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.result-container {
    margin-top: 1.5rem;
    text-align: center;
}

.count-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.count-display #count {
    font-size: 3.5rem;
}

.count-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.llm-adjustment-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0.35rem 0 0.25rem;
}

.llm-adjustment-legend.hidden {
    display: none;
}

.llm-adjustment-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 28px;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.llm-adjustment-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.llm-adjustment-symbol--added {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.16);
}

.llm-adjustment-symbol--removed {
    background: #64748b;
    box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.16);
}

.preview-wrapper {
    position: relative;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.preview-wrapper.is-pannable {
    cursor: grab;
    touch-action: none;
}

.preview-wrapper.is-pannable.is-panning {
    cursor: grabbing;
}

.preview-stage {
    position: relative;
    transform-origin: top left;
    will-change: transform;
}

.preview-img {
    width: 100%;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

canvas#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.price-note {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.accuracy-hint {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0.75rem 0 0.5rem;
    text-align: center;
}

.annotation-btn {
    margin-top: 0.5rem;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px dashed var(--border);
    color: var(--text-main);
}

.annotation-btn.annotation-btn-highlight {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transition: all 0.2s ease;
}

.annotation-btn.annotation-btn-highlight:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.annotation-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.95);
}

.annotation-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

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

.btn-secondary:hover {
    background: var(--bg-body);
    border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    box-shadow: none;
}

.btn-ghost:hover {
    color: var(--text-main);
    border-color: var(--border);
    background: rgba(0, 0, 0, 0.02);
}

.lc-trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.lc-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.lc-trust-item .material-symbols-outlined {
    color: var(--primary);
    font-size: 20px;
}

.lc-hero-image {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.hero-img {
    max-width: 70%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

/* Features Section */
.lc-features {
    padding: 6rem 0;
    background: white;
}

.lc-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.lc-feature-card {
    padding: 2rem;
    background: var(--bg-body);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.lc-feature-card:hover {
    background: white;
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

body.modal-open {
    overflow: hidden;
}

.lc-feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.lc-icon-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.lc-icon-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.lc-icon-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }

.lc-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.lc-feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Steps Section */
.lc-steps {
    padding: 6rem 0;
    background: var(--bg-body);
}

.lc-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.lc-step-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.lc-step-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-body);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
}

[dir="rtl"] .lc-step-badge {
    right: auto;
    left: 1.5rem;
}

.lc-step-icon {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.lc-step-icon .material-symbols-outlined {
    font-size: 3rem;
}

.lc-step-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.lc-step-card p {
    color: var(--text-muted);
}

/* Use Cases */
.lc-use-cases {
    padding: 6rem 0;
    background: white;
}

.lc-use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.lc-use-case {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: var(--bg-body);
    transition: transform 0.3s;
}

.lc-use-case:hover {
    transform: translateY(-4px);
    background: white;
    box-shadow: var(--shadow-md);
}

.lc-use-case-icon {
    width: 4rem;
    height: 4rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}

/* FAQ */
.lc-faq {
    padding: 6rem 0;
    background: var(--bg-body);
}

.lc-faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.lc-faq-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.lc-faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.lc-faq-question .material-symbols-outlined {
    color: var(--secondary);
}

.lc-faq-answer {
    color: var(--text-muted);
    margin-left: 2.5rem;
}

[dir="rtl"] .lc-faq-answer {
    margin-left: 0;
    margin-right: 2.5rem;
}

/* Final CTA */
.lc-final-cta {
    padding: 6rem 0;
    background: white;
}

.lc-cta-box {
    background-color: #4338ca;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px),
        radial-gradient(circle at top right, #4f46e5, #4338ca);
    background-size: 24px 24px, 100% 100%;
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.lc-cta-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(4px);
}

.lc-cta-box h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.lc-cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.lc-cta-box .lc-btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    padding: 1rem 2rem;
    font-size: 1.125rem;
    gap: 0.75rem;
    text-decoration: none;
}

.lc-cta-box .lc-btn-primary:hover {
    background: white;
    color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid #1e293b;
}

.lc-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.lc-footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0;
}

.lc-footer-brand h3 img {
    margin-right: -6px; /* tighten spacing to text */
    transform: translateY(-2px);
}

.lc-footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
    margin-bottom: 1.5rem;
}

.lc-footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lc-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lc-footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.lc-footer-links a:hover {
    color: white;
    transform: translateX(2px);
}

[dir="rtl"] .lc-footer-links a:hover {
    transform: translateX(-2px);
}

.lc-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.lc-footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
}

.lc-footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .lc-footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .lc-footer-brand p {
        margin: 0 auto 1.5rem;
    }

    .lc-footer-brand h3 {
        justify-content: center;
    }

    .lc-footer-links {
        align-items: center;
    }

    .lc-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Page Drop Overlay */
.page-drop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(79, 70, 229, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.page-drop-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.page-drop-message {
    background: white;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 2rem 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.2s;
}

.page-drop-overlay:not(.hidden) .page-drop-message {
    transform: translateY(0);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .lc-hero-title { font-size: 2.5rem; }
    .lc-hero-ctas { flex-direction: column; }
    .lc-trust-badges { flex-direction: column; gap: 0.5rem; }
    .lc-floating-icon { display: none; } /* Simplify on mobile */
    .hero-img { max-width: 100%; }
}

.glass-input {
    background: transparent;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    width: 150px;
    outline: none;
    padding: 0.25rem 0;
}

.glass-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
    font-size: 0.85rem;
}

.input-clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.input-clear-btn:hover {
    color: var(--text-main);
}

.input-clear-btn.hidden {
    display: none;
}

.recount-btn-glass {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    opacity: 1; /* Always visible */
}

.recount-btn-glass:hover {
    transform: scale(1.05);
    background: var(--primary-hover);
}

.recount-btn-glass .material-symbols-outlined {
    font-size: 18px;
}

/* Override default focus ring for this specific input */
.glass-input:focus {
    box-shadow: none;
}

/* Hide original result container elements if any remain */
.object-name-input {
    /* styles from previous implementation might need reset if used elsewhere, 
       but we changed the class on the input so it should be fine. 
       Actually we kept class="object-name-input glass-input". 
       Let's check if object-name-input has conflicting styles. */
}

/* Points Toggle & Confidence Legend */
.points-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 0 12px 0;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    width: 100%;
}

/* RTL adjustment removed as position is no longer absolute */


.toggle-label {
    white-space: nowrap;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: var(--primary);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
    transform: translateX(16px);
}

.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Confidence Slider */
.confidence-slider-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

[dir="rtl"] .confidence-slider-container {
    margin-left: 0;
    margin-right: 8px;
    padding-left: 0;
    padding-right: 12px;
    border-left: none;
    border-right: 1px solid var(--border);
}

.legend-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.slider-track {
    position: relative;
    width: 135px;
    height: 14px;
}

.slider-track-gradient {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    transform: translateY(-50%);
    border-radius: 4px;
    background: linear-gradient(to right, 
        rgb(0, 0, 255),      /* Blue - 0% */
        rgb(0, 255, 255),    /* Cyan - 25% */
        rgb(0, 255, 0),      /* Green - 50% */
        rgb(255, 255, 0),    /* Yellow - 75% */
        rgb(255, 0, 0)       /* Red - 100% */
    );
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.confidence-range {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.confidence-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.confidence-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.confidence-range::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.confidence-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.confidence-range::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.confidence-range::-moz-range-track {
    background: transparent;
}

.confidence-range:focus {
    outline: none;
}

.confidence-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 2px 5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .points-toggle-container {
        padding: 0 0 8px 0;
        gap: 8px;
        font-size: 0.75rem;
    }

    /* [dir="rtl"] .points-toggle-container { } - Removed */

    .points-toggle-container .toggle-label {
        display: none;
    }

    .confidence-slider-container {
        flex: 1;
        margin-left: 0;
        padding-left: 8px;
        border-left: 1px solid var(--border);
    }

    [dir="rtl"] .confidence-slider-container {
        margin-right: 0;
        padding-right: 8px;
        margin-left: 0;
        padding-left: 0;
        border-right: 1px solid var(--border);
        border-left: none;
    }

    .slider-track {
        width: auto;
        flex: 1;
    }

    .legend-label {
        font-size: 0.6rem;
    }
    
    .switch {
        width: 32px;
        height: 18px;
    }
    
    .slider:before {
        height: 12px;
        width: 12px;
    }
    
    input:checked + .slider:before {
        transform: translateX(14px);
    }
}

/* ========================================
   Object Selection Modal
   ======================================== */

.selection-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.selection-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 12, 34, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.selection-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 85vh;
    min-height: 420px;
    background: var(--bg-surface);
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: selectionModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes selectionModalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.selection-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 1.25rem 0.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.selection-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.08;
    color: var(--text-main);
    margin: 0;
}

.selection-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    flex-shrink: 0;
}

.selection-close:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.selection-modal__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    padding: 0.75rem;
    gap: 0.75rem;
}

.selection-modal__context {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 0.4rem 0.3rem 0.15rem;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.selection-stage {
    flex: 1;
    min-height: 200px;
    background: #1a1a2e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

#selection-canvas {
    cursor: crosshair;
    display: block;
    touch-action: none;
}

.selection-pointer {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.selection-pointer__icon {
    position: absolute;
    z-index: 2;
    left: var(--selection-pointer-x, 50%);
    top: var(--selection-pointer-y, 50%);
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(calc(-50% + 9px), calc(-50% + 15px)) rotate(-10deg);
    transform-origin: 38% 18%;
    font-size: 3.35rem;
    line-height: 1;
    color: #fff;
    font-variation-settings: 'FILL' 1, 'wght' 650, 'GRAD' 0, 'opsz' 48;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.42));
    overflow: visible;
    transition: opacity 0.14s ease;
}

.selection-pointer__icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.selection-pointer__icon.is-spinner svg {
    display: none;
}

.selection-pointer__icon:not(.is-spinner):not(.is-draw-cue) {
    animation: selectionPointerClick 1.35s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.selection-pointer__icon.is-draw-cue:not(.is-spinner) {
    opacity: 0;
    animation: none;
}

.selection-pointer__draw-icon {
    position: absolute;
    z-index: 2;
    left: var(--selection-pointer-x, 50%);
    top: var(--selection-pointer-y, 50%);
    width: 68px;
    height: 68px;
    display: block;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translate(calc(-50% + 7px), calc(-50% + 16px)) rotate(-8deg);
    transform-origin: 50% 60%;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.42));
    transition: opacity 0.14s ease;
}

.selection-pointer__draw-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.selection-pointer__icon.is-draw-cue:not(.is-spinner) + .selection-pointer__draw-icon {
    opacity: 1;
    animation: selectionPointerDraw 1.45s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.selection-pointer__icon.is-spinner {
    display: block;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    transform-origin: center;
    font-size: 0;
    color: transparent;
    filter: drop-shadow(0 14px 24px rgba(15, 23, 42, 0.46));
}

.selection-pointer__icon.is-spinner::before,
.selection-pointer__icon.is-spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.selection-pointer__icon.is-spinner::before {
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(255, 255, 255, 0.96);
    border-right-color: rgba(129, 140, 248, 0.94);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.18), 0 0 26px rgba(79, 70, 229, 0.22);
    animation: spin 0.95s linear infinite;
}

.selection-pointer__icon.is-spinner::after {
    inset: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.68);
    background:
        linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.74)) center / 2px 100% no-repeat,
        linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.74)) center / 100% 2px no-repeat,
        radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 18%, rgba(129, 140, 248, 0.7) 19% 34%, transparent 35%);
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.18);
    animation: selectionReticlePulse 1.15s ease-in-out infinite;
}

.selection-pointer__bubble {
    position: absolute;
    z-index: 1;
    left: var(--selection-pointer-bubble-x, var(--selection-pointer-x, 50%));
    top: var(--selection-pointer-bubble-y, var(--selection-pointer-y, 50%));
    transform: translate(-50%, 34px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 132px;
    max-width: 170px;
    padding: 0.42rem 0.62rem 0.46rem;
    border-radius: 14px;
    background: rgba(7, 11, 27, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

.selection-pointer__bubble::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translateX(-50%) rotate(45deg);
    background: rgba(7, 11, 27, 0.76);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.selection-pointer.is-loading .selection-pointer__icon {
    animation: none;
}

.selection-pointer.is-loading .selection-pointer__draw-icon {
    opacity: 0;
    animation: none;
}

.selection-pointer.is-loading .selection-pointer__bubble {
    border-color: rgba(79, 70, 229, 0.34);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.34);
    min-width: 0;
    padding: 0.58rem 0.78rem;
}

@keyframes selectionReticlePulse {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.72;
    }
    55% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes selectionPointerClick {
    0%, 100% {
        transform: translate(calc(-50% + 9px), calc(-50% + 15px)) rotate(-10deg) scale(1);
    }
    32% {
        transform: translate(calc(-50% + 9px), calc(-50% + 15px)) rotate(-4deg) scale(0.96);
    }
    58% {
        transform: translate(calc(-50% + 9px), calc(-50% + 15px)) rotate(-13deg) scale(1.02);
    }
}

@keyframes selectionPointerDraw {
    0%, 100% {
        transform: translate(calc(-50% + 7px), calc(-50% + 16px)) rotate(-8deg) scale(1);
    }
    22% {
        transform: translate(calc(-50% + 11px), calc(-50% + 12px)) rotate(-1deg) scale(0.975);
    }
    44% {
        transform: translate(calc(-50% + 15px), calc(-50% + 18px)) rotate(-15deg) scale(1.015);
    }
    68% {
        transform: translate(calc(-50% + 10px), calc(-50% + 20px)) rotate(-11deg) scale(0.995);
    }
}


.selection-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    gap: 0.75rem;
    flex-shrink: 0;
}

.selection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 100%;
}

.selection-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: selectionPulse 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes selectionPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.selection-status__text {
    white-space: normal;
    text-align: left;
}

.selection-pointer__status {
    position: relative;
    z-index: 1;
    font-size: 0.68rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    text-align: center;
}

.selection-object-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 42px;
}

.selection-object-row__field {
    display: flex;
    align-items: center;
    gap: 4px;
}

.selection-object-row__label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.selection-object-input {
    background: transparent;
    border: none;
    border-bottom: 1.5px dashed var(--border);
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    width: 150px;
    outline: none;
    padding: 0.25rem 0;
}

.selection-object-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
    font-weight: 500;
}

.selection-object-input:focus {
    border-bottom-color: var(--primary);
}

.selection-zoom {
    display: flex;
    gap: 0.15rem;
}

.selection-zoom--floating {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    padding: 0.25rem;
    border-radius: 14px;
    background: rgba(7, 11, 27, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2;
}

[dir="rtl"] .selection-zoom--floating {
    right: auto;
    left: 0.85rem;
}

.selection-zoom__btn {
    width: 38px;
    height: 38px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-zoom--floating .selection-zoom__btn {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.selection-zoom--floating .selection-zoom__btn:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
}

.selection-zoom__btn .material-symbols-outlined {
    font-size: 18px;
}

.selection-toolbar .btn .material-symbols-outlined {
    font-size: 18px;
}

.selection-toolbar .btn {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    gap: 0.35rem;
}

.selection-count-inline {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 10px;
    gap: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.selection-count-inline.is-loading:disabled,
.selection-toolbar .js-selection-count.is-loading:disabled {
    border-color: rgba(148, 163, 184, 0.36);
    background: #e2e8f0;
    color: #64748b;
    box-shadow: none;
    opacity: 1;
}

.selection-toolbar .js-selection-count {
    min-height: 44px;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.2);
}

.selection-hint {
    font-size: 0.68rem;
    line-height: 1.3;
    color: rgba(226, 232, 240, 0.88);
    margin: 0;
    text-align: center;
    white-space: pre-line;
    transition: color 0.18s ease;
}

.selection-hint.is-error {
    color: #fda4af;
}

.selection-hint.is-success {
    color: #86efac;
}

.selection-pointer__hint {
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.selection-pointer__hint.is-cued {
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
}

.selection-hint__line {
    display: block;
    opacity: 0.54;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.selection-hint__line.is-active {
    color: #fff;
    opacity: 1;
    font-weight: 700;
    transform: scale(1.02);
}

.selection-pointer.is-loading .selection-pointer__hint {
    display: none;
}

/* Selection modal responsive */
@media (min-width: 641px) {
    .selection-modal__header {
        padding: 0.5rem 1.5rem 0.6rem;
    }

    .selection-modal__title {
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .selection-modal {
        padding: 0.75rem;
    }

    .selection-modal__dialog {
        max-height: 100%;
        height: 100%;
        border-radius: 10px;
    }

    .selection-modal__header {
        padding: 0.35rem 1rem 0.45rem;
    }

    .selection-modal__title {
        font-size: 1rem;
    }

    .selection-modal__body {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .selection-modal__context {
        justify-content: center;
        padding: 0;
    }

    .selection-stage {
        min-height: 150px;
    }

    .selection-toolbar {
        padding: 0.75rem;
        justify-content: stretch;
    }

    .selection-toolbar {
        width: 100%;
        flex-wrap: wrap;
    }

    .selection-object-row {
        width: 100%;
        justify-content: center;
    }

    .selection-object-input {
        width: 120px;
    }

    .selection-toolbar .btn {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    .selection-count-inline {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }

    .selection-zoom--floating {
        right: 0.5rem;
        padding: 0.2rem;
    }

    [dir="rtl"] .selection-zoom--floating {
        left: 0.5rem;
    }
}

@media (pointer: coarse) {
    #selection-canvas {
        cursor: default;
    }

    .selection-pointer {
        display: none !important;
    }
}

/* ========================================
   Point Edit Toolbar
   ======================================== */

.edit-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.edit-toolbar.hidden {
    display: none;
}

.edit-toolbar__group {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.edit-toolbar__spacer {
    flex: 1 1 auto;
    min-width: 0;
}

.edit-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.edit-tool-btn:hover:not(:disabled) {
    background: var(--bg-body);
    border-color: var(--primary);
    color: var(--primary);
}

.edit-tool-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-body);
    border-color: var(--border);
    color: var(--text-light);
}

.edit-tool-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35);
}

.edit-tool-btn .material-symbols-outlined {
    font-size: 18px;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.edit-toolbar-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

.edit-toolbar-divider--section {
    margin: 0 8px 0 0;
}

/* Interactive overlay canvas */
.overlay-interactive {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.result-zoom {
    gap: 6px;
}

.overlay-interactive.tool-active {
    pointer-events: auto;
}

/* Custom cursors for tools */
.overlay-interactive.tool-add {
    cursor: crosshair;
}

.overlay-interactive.tool-eraser {
    cursor: none; /* We'll draw a custom cursor */
}

/* Eraser cursor indicator */
.eraser-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    width: 28px;
    height: 28px;
    border: 2.5px solid #fff;
    background: rgba(239, 68, 68, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.eraser-cursor::before {
    content: "−";
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.eraser-cursor.visible {
    display: flex;
}

/* Point count badge on toolbar (for undo count) */
.undo-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.undo-count.hidden {
    display: none;
}

/* Mobile adjustments for edit toolbar */
@media (max-width: 480px) {
    .edit-toolbar {
        padding: 6px 10px;
        gap: 4px;
        border-radius: 10px;
        margin-bottom: 0.5rem;
    }

    .edit-toolbar__group {
        gap: 4px;
    }
    
    .edit-tool-btn {
        width: 30px;
        height: 30px;
        border-radius: 6px;
    }
    
    .edit-tool-btn .material-symbols-outlined {
        font-size: 16px;
    }
    
    .edit-toolbar-divider {
        height: 16px;
        margin: 0 2px;
    }

    .edit-toolbar-divider--section {
        margin-right: 4px;
    }
}

/* ========================================
   Tooltips
   ======================================== */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 6px 10px;
    background: var(--text-main);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
    pointer-events: none;
}

[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-main);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
    z-index: 1000;
    pointer-events: none;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

[data-tooltip]:hover::before,
[data-tooltip]:focus::before {
    opacity: 1;
    visibility: visible;
}

/* Tooltip position variants */
[data-tooltip-pos="bottom"]::after {
    bottom: auto;
    top: calc(100% + 8px);
    transform: translateX(-50%) translateY(-4px);
}

[data-tooltip-pos="bottom"]::before {
    bottom: auto;
    top: calc(100% + 2px);
    border-top-color: transparent;
    border-bottom-color: var(--text-main);
}

[data-tooltip-pos="bottom"]:hover::after,
[data-tooltip-pos="bottom"]:focus::after {
    transform: translateX(-50%) translateY(0);
}

[data-tooltip-pos="left"]::after {
    bottom: auto;
    left: auto;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
}

[data-tooltip-pos="left"]::before {
    bottom: auto;
    left: auto;
    right: calc(100% + 2px);
    top: 50%;
    transform: translateY(-50%);
    border-top-color: transparent;
    border-left-color: var(--text-main);
}

[data-tooltip-pos="left"]:hover::after,
[data-tooltip-pos="left"]:focus::after {
    transform: translateY(-50%) translateX(0);
}

[data-tooltip-pos="right"]::after {
    bottom: auto;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
}

[data-tooltip-pos="right"]::before {
    bottom: auto;
    left: calc(100% + 2px);
    top: 50%;
    transform: translateY(-50%);
    border-top-color: transparent;
    border-right-color: var(--text-main);
}

[data-tooltip-pos="right"]:hover::after,
[data-tooltip-pos="right"]:focus::after {
    transform: translateY(-50%) translateX(0);
}

/* Disabled elements should still show tooltip */
[data-tooltip]:disabled::after,
[data-tooltip]:disabled::before {
    pointer-events: none;
}

/* Tooltip wrapper for elements that can't have pseudo-elements (like inputs) */
.tooltip-wrapper {
    position: relative;
    display: inline-flex;
}

/* Confidence slider container tooltip */
.confidence-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hide tooltips on touch devices to avoid sticky tooltips */
@media (hover: none) {
    [data-tooltip]::after,
    [data-tooltip]::before {
        display: none;
    }
}

/* ========================================
   Landing Page - Admin/Operator Theme
   ======================================== */

body.landing-page {
    --primary: #236f65;
    --primary-hover: #1d574e;
    --secondary: #174e75;
    --accent: #9a2f2b;
    --bg-body: #eef5ef;
    --bg-surface: #fbfaf2;
    --text-main: #10221f;
    --text-muted: rgba(16, 34, 31, 0.66);
    --text-light: rgba(16, 34, 31, 0.46);
    --border: #b8c7bd;
    --gradient-primary: linear-gradient(180deg, #2e8173, #1d574e);
    --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 90px), rgba(251, 250, 242, 0.93);
    --shadow-sm: 0 1px 2px rgba(18, 45, 39, 0.08);
    --shadow-md: 0 8px 18px rgba(18, 45, 39, 0.10);
    --shadow-lg: 0 14px 28px rgba(18, 45, 39, 0.12);
    --shadow-xl: 0 18px 38px rgba(18, 45, 39, 0.14);
    --landing-paper: #fbfaf2;
    --landing-paper-2: #f4f1e6;
    --landing-celadon: #eef5ef;
    --landing-line: #b8c7bd;
    --landing-red: #9a2f2b;
    --landing-amber: #c18d2f;
    background:
        linear-gradient(90deg, rgba(22, 61, 55, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(22, 61, 55, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, #f7f6ed 0%, #eef5ef 100%);
    background-size: 42px 42px, 42px 42px, auto;
}

body.landing-page header {
    background: rgba(251, 250, 242, 0.94);
    border-bottom-color: rgba(16, 34, 31, 0.16);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 24px rgba(16, 34, 31, 0.04);
}

body.landing-page header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(35, 111, 101, 0.26), transparent);
    opacity: 0.9;
    pointer-events: none;
}

body.landing-page .lc-header-content {
    position: relative;
}

body.landing-page .lc-header-content::after {
    content: "";
    position: absolute;
    inset-inline-start: 1.5rem;
    bottom: -1px;
    width: 76px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--landing-amber));
    pointer-events: none;
}

body.landing-page .lc-logo,
body.landing-page .lc-logo span {
    color: var(--text-main);
}

body.landing-page .lang-btn,
body.landing-page .lang-dropdown,
body.landing-page .lang-search-input {
    border-color: var(--landing-line);
    border-radius: 4px;
    background: rgba(251, 250, 242, 0.9);
    color: var(--text-main);
}

body.landing-page .lang-btn {
    min-height: 38px;
    font-weight: 750;
}

body.landing-page .lang-dropdown {
    background: var(--landing-paper);
    box-shadow: var(--shadow-lg);
}

body.landing-page .lang-dropdown a:hover,
body.landing-page .lang-search-input {
    background: var(--landing-celadon);
}

body.landing-page .lc-cta-button,
body.landing-page .btn-primary,
body.landing-page .annotation-btn.annotation-btn-highlight {
    border: 1px solid rgba(16, 34, 31, 0.24);
    border-radius: 4px;
    background: var(--gradient-primary);
    color: var(--landing-paper);
    box-shadow: 0 10px 22px rgba(35, 111, 101, 0.18);
}

body.landing-page .lc-cta-button:hover,
body.landing-page .btn-primary:hover,
body.landing-page .annotation-btn.annotation-btn-highlight:hover:not(:disabled) {
    background: linear-gradient(180deg, #338d7e, #1d574e);
    box-shadow: 0 12px 24px rgba(35, 111, 101, 0.22);
}

body.landing-page .btn-secondary,
body.landing-page .btn-ghost {
    border-color: var(--landing-line);
    border-radius: 4px;
    background: rgba(251, 250, 242, 0.86);
    color: var(--primary-hover);
}

body.landing-page .btn-secondary:hover,
body.landing-page .btn-ghost:hover {
    border-color: var(--primary);
    background: var(--landing-celadon);
}

body.landing-page .lc-hero {
    padding: 4rem 0 4.5rem;
    background:
        linear-gradient(90deg, rgba(35, 111, 101, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(35, 111, 101, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(251, 250, 242, 0.72), rgba(238, 245, 239, 0.88));
    background-size: 28px 28px, 28px 28px, auto;
}

body.landing-page .lc-hero::after {
    background: linear-gradient(90deg, transparent, rgba(35, 111, 101, 0.22), transparent);
}

body.landing-page .lc-floating-icon {
    color: var(--primary);
    opacity: 0.09;
}

body.landing-page .lc-badge {
    border-color: rgba(35, 111, 101, 0.35);
    border-radius: 4px;
    background: rgba(220, 233, 223, 0.9);
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.landing-page .lc-hero-title,
body.landing-page .lc-section-title {
    background: none;
    color: var(--text-main);
    -webkit-text-fill-color: currentColor;
}

body.landing-page .lc-hero-title {
    font-size: clamp(2.6rem, 6vw, 4.25rem);
    letter-spacing: 0;
}

body.landing-page .lc-section-title {
    letter-spacing: 0;
}

body.landing-page .demo-widget,
body.landing-page .lc-feature-card,
body.landing-page .lc-step-card,
body.landing-page .lc-use-case,
body.landing-page .lc-faq-item,
body.landing-page .lc-limitations-contact,
body.landing-page .page-drop-message {
    border: 1px solid var(--landing-line);
    border-radius: 6px;
    background: var(--gradient-surface);
    box-shadow: var(--shadow-md);
}

body.landing-page .demo-widget {
    padding: clamp(1.2rem, 3vw, 2rem);
}

body.landing-page .file-input-wrapper,
body.landing-page .page-drop-message {
    border-color: rgba(35, 111, 101, 0.38);
    border-radius: 4px;
    background:
        linear-gradient(90deg, rgba(35, 111, 101, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(35, 111, 101, 0.04) 1px, transparent 1px),
        rgba(238, 245, 239, 0.68);
    background-size: 18px 18px, 18px 18px, auto;
}

body.landing-page .file-input-wrapper {
    border-style: solid;
}

body.landing-page .file-input-wrapper:hover,
body.landing-page .file-input-wrapper.dragover {
    border-color: var(--primary);
    background-color: rgba(220, 233, 223, 0.9);
}

body.landing-page .demo-item,
body.landing-page .preview-wrapper,
body.landing-page .status-preview-container,
body.landing-page .hero-img {
    border: 1px solid var(--landing-line);
    border-radius: 6px;
}

body.landing-page .demo-item {
    background: var(--landing-paper-2);
}

body.landing-page .demo-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(35, 111, 101, 0.10);
}

body.landing-page .demo-label {
    background: rgba(16, 34, 31, 0.76);
    letter-spacing: 0.04em;
}

body.landing-page .demo-arrow-wrapper {
    display: none;
}

body.landing-page .count-display,
body.landing-page .count-display #count,
body.landing-page .lc-trust-item .material-symbols-outlined,
body.landing-page .lc-step-icon,
body.landing-page .lc-use-case-icon,
body.landing-page .lc-faq-question .material-symbols-outlined {
    color: var(--primary);
}

body.landing-page .count-display #count,
body.landing-page .lc-step-badge {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body.landing-page .count-label,
body.landing-page .lc-step-badge {
    color: rgba(16, 34, 31, 0.58);
    letter-spacing: 0.08em;
}

body.landing-page .lc-product-preview,
body.landing-page .lc-features,
body.landing-page .lc-use-cases,
body.landing-page .lc-final-cta,
body.landing-page .lc-limitations {
    padding: 6rem 0;
    background: rgba(251, 250, 242, 0.74) !important;
}

body.landing-page .lc-product-preview {
    padding-top: 0;
    padding-bottom: 4rem;
}

body.landing-page .lc-steps,
body.landing-page .lc-faq,
body.landing-page .lc-api-integration {
    background: rgba(238, 245, 239, 0.82) !important;
}

body.landing-page .lc-feature-card,
body.landing-page .lc-step-card,
body.landing-page .lc-use-case,
body.landing-page .lc-faq-item {
    box-shadow: var(--shadow-sm);
}

body.landing-page .lc-feature-card:hover,
body.landing-page .lc-step-card:hover,
body.landing-page .lc-use-case:hover,
body.landing-page .lc-faq-item:hover {
    border-color: var(--primary);
    background: var(--landing-paper);
    box-shadow: 0 0 0 3px rgba(35, 111, 101, 0.08), var(--shadow-md);
}

body.landing-page .lc-feature-icon,
body.landing-page .lc-icon-gray {
    border-radius: 4px;
    background: var(--gradient-primary) !important;
}

body.landing-page .lc-icon-purple {
    background: linear-gradient(180deg, #a33b35, #7e2825);
}

body.landing-page .lc-icon-indigo {
    background: linear-gradient(180deg, #496f94, #174e75);
}

body.landing-page .lc-step-badge {
    border: 1px solid var(--landing-line);
    border-radius: 4px;
    background: var(--landing-paper-2);
    font-weight: 800;
}

body.landing-page .lc-use-case-icon {
    border: 1px solid var(--landing-line);
    border-radius: 6px;
    background: var(--landing-paper);
}

body.landing-page .lc-limitations-contact {
    background: var(--landing-celadon) !important;
    border-radius: 6px !important;
}

body.landing-page .object-name-input {
    border-bottom-color: rgba(16, 34, 31, 0.5);
    color: var(--text-main);
}

body.landing-page .object-name-input:focus {
    border-bottom-color: var(--primary);
    background: rgba(251, 250, 242, 0.75);
}

body.landing-page .recount-btn-small,
body.landing-page .recount-btn-glass {
    background: var(--primary);
}

body.landing-page .points-toggle-container,
body.landing-page .feedback-subtitle,
body.landing-page .lc-section-subtitle,
body.landing-page .lc-feature-card p,
body.landing-page .lc-step-card p,
body.landing-page .lc-use-case p,
body.landing-page .lc-faq-answer {
    color: var(--text-muted);
}

body.landing-page .lc-cta-box {
    border: 1px solid rgba(251, 250, 242, 0.2);
    border-radius: 6px;
    background-color: var(--primary-hover);
    background-image:
        linear-gradient(90deg, rgba(251, 250, 242, 0.07) 1px, transparent 1px),
        linear-gradient(180deg, rgba(251, 250, 242, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, #236f65, #163d37);
    background-size: 24px 24px, 24px 24px, auto;
}

body.landing-page .lc-cta-icon,
body.landing-page .lc-cta-box .lc-btn-primary {
    border-radius: 4px;
}

body.landing-page .lc-cta-box .lc-btn-primary {
    color: var(--primary-hover);
}

body.landing-page footer {
    background: #10221f;
    border-top-color: rgba(251, 250, 242, 0.16);
}

body.landing-page footer .lc-footer-brand p,
body.landing-page footer .lc-footer-links a,
body.landing-page footer .lc-footer-bottom,
body.landing-page footer .lc-footer-bottom a {
    color: rgba(251, 250, 242, 0.72);
}

body.landing-page footer .lc-footer-links a:hover,
body.landing-page footer .lc-footer-bottom a:hover {
    color: #ffffff;
}

body.landing-page .lc-footer-col h4,
body.landing-page .lc-footer-bottom {
    letter-spacing: 0.04em;
}

body.landing-page .page-drop-overlay {
    background: rgba(16, 34, 31, 0.22);
}

@media (max-width: 768px) {
    body.landing-page .lc-hero {
        padding-top: 3rem;
    }

    body.landing-page .lc-product-preview,
    body.landing-page .lc-features,
    body.landing-page .lc-steps,
    body.landing-page .lc-use-cases,
    body.landing-page .lc-api-integration,
    body.landing-page .lc-limitations,
    body.landing-page .lc-faq,
    body.landing-page .lc-final-cta {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    body.landing-page .lc-header-content {
        gap: 0.55rem;
        padding: 0 0.85rem;
    }

    body.landing-page .lc-logo {
        font-size: 1.15rem;
    }

    body.landing-page .lc-logo img {
        width: 38px !important;
        height: 38px !important;
    }

    body.landing-page .lc-header-actions {
        gap: 0.45rem;
    }

    body.landing-page .lang-switcher {
        margin-right: 0;
    }

    body.landing-page .lang-btn {
        padding: 0.45rem 0.6rem;
    }

    body.landing-page .lc-cta-button {
        padding: 0.55rem 0.72rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }
}

/* ========================================
   Operator Workspace
   ======================================== */

body.operator-page {
    min-height: 100vh;
    background: #f8fafc;
}

.operator-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 64px;
    padding: 0 1.5rem;
}

.operator-logo img {
    width: 42px;
    height: 42px;
}

.operator-topbar__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.operator-topbar__status .material-symbols-outlined {
    color: var(--primary);
}

.operator-shell {
    width: min(100%, 1680px);
    margin: 0 auto;
    padding: 1.25rem;
}

.operator-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.operator-intro h1 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: 0;
    margin-bottom: 0.5rem;
}

.operator-intro p {
    max-width: 720px;
    color: var(--text-muted);
    font-size: 1rem;
}

.operator-intro__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(86px, 1fr));
    gap: 0.75rem;
}

.operator-intro__stats div {
    min-width: 86px;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.operator-intro__stats span {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.operator-intro__stats small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.operator-workflow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.operator-workflow__step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    min-height: 72px;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

.operator-workflow__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--bg-body);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 800;
}

.operator-workflow__step strong,
.operator-workflow__step small {
    display: block;
    min-width: 0;
}

.operator-workflow__step strong {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.15;
}

.operator-workflow__step small {
    margin-top: 0.15rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.operator-workflow__step.is-active {
    border-color: rgba(79, 70, 229, 0.38);
    background: rgba(79, 70, 229, 0.06);
}

.operator-workflow__step.is-active .operator-workflow__number {
    background: var(--primary);
    color: white;
}

.operator-workflow__step.is-complete {
    border-color: rgba(16, 185, 129, 0.38);
    background: rgba(16, 185, 129, 0.06);
}

.operator-workflow__step.is-complete .operator-workflow__number {
    background: #047857;
    color: white;
}

.operator-workflow__step.is-locked {
    opacity: 0.76;
}

.operator-workflow__action {
    min-height: 40px;
    white-space: nowrap;
}

.operator-workflow__action .material-symbols-outlined {
    font-size: 1.1rem;
}

.operator-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}

.operator-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.operator-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.operator-panel__header h2 {
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 800;
}

.operator-sidebar,
.operator-inspector {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.operator-drop-zone {
    width: calc(100% - 2rem);
    min-height: 150px;
    margin: 1rem;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 2px dashed rgba(79, 70, 229, 0.35);
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.035);
    color: var(--text-main);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.operator-drop-zone:hover,
.operator-drop-zone.is-dragover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.075);
    transform: translateY(-1px);
}

.operator-drop-zone .material-symbols-outlined {
    color: var(--primary);
    font-size: 2.25rem;
}

.operator-drop-zone span:last-child {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.35;
}

.operator-queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem 0.6rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.operator-queue-list {
    display: grid;
    gap: 0.5rem;
    max-height: calc(100vh - 360px);
    min-height: 180px;
    overflow: auto;
    padding: 0 1rem 1rem;
}

.operator-queue-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
}

.operator-queue-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.operator-queue-item:hover,
.operator-queue-item.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.operator-queue-item.is-saved {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.06);
}

.operator-queue-item__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg-body);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.operator-queue-item__body {
    min-width: 0;
}

.operator-queue-item__body strong,
.operator-queue-item__body small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.operator-queue-item__body strong {
    font-size: 0.9rem;
}

.operator-queue-item__body small {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.operator-queue-item__count {
    min-width: 32px;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 800;
    text-align: right;
}

.operator-workbench {
    min-width: 0;
    padding: 1rem;
}

.operator-workbench__bar,
.operator-count-strip,
.operator-toolbars {
    margin-bottom: 0.75rem;
}

.operator-workbench__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.operator-image-meta {
    min-width: 0;
}

.operator-image-meta strong,
.operator-image-meta span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.operator-image-meta strong {
    font-size: 1rem;
    line-height: 1.2;
}

.operator-image-meta span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.operator-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.operator-count-strip {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) repeat(3, 92px) auto;
    gap: 0.6rem;
    align-items: stretch;
}

.operator-field {
    display: grid;
    gap: 0.35rem;
}

.operator-field span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.operator-field input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 0.75rem;
    background: white;
    color: var(--text-main);
    font: inherit;
    font-size: 0.95rem;
}

.operator-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.operator-count-card,
.operator-status-pill {
    min-height: 58px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-body);
    padding: 0.55rem 0.7rem;
}

.operator-count-card small {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.operator-count-card strong {
    display: block;
    margin-top: 0.3rem;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 800;
}

.operator-count-card--primary {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.25);
    color: var(--primary);
}

.operator-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.85rem;
}

.operator-status-pill[data-tone="working"] {
    color: #0369a1;
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.25);
}

.operator-status-pill[data-tone="ready"] {
    color: #92400e;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
}

.operator-status-pill[data-tone="saved"] {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
}

.operator-status-pill[data-tone="error"] {
    color: #be123c;
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.24);
}

.operator-toolbars {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.operator-toolbars__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-body);
}

.operator-toolbars__header div {
    display: grid;
    gap: 0.12rem;
}

.operator-toolbars__header span {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.operator-toolbars__header strong {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.15;
}

.operator-toolbars__header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
}

.operator-edit-toolbar {
    flex-wrap: wrap;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.operator-edit-toolbar.is-locked {
    background: rgba(248, 250, 252, 0.72);
}

.operator-edit-toolbar.is-locked .edit-tool-btn.active {
    background: var(--bg-body);
    border-color: var(--border);
    color: var(--text-light);
    box-shadow: none;
}

.operator-confidence {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    min-width: 220px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.operator-confidence[aria-disabled="true"] {
    opacity: 0.56;
}

.operator-confidence input {
    width: 120px;
    accent-color: var(--primary);
}

.operator-confidence strong {
    width: 36px;
    color: var(--text-main);
    text-align: right;
}

.operator-image-viewport {
    position: relative;
    min-height: min(68vh, 760px);
    height: calc(100vh - 310px);
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    background:
        linear-gradient(45deg, rgba(148, 163, 184, 0.10) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(148, 163, 184, 0.10) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.10) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.10) 75%);
    background-color: #f1f5f9;
    background-size: 28px 28px;
    background-position: 0 0, 0 14px, 14px -14px, -14px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.operator-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

.operator-empty-state .material-symbols-outlined {
    color: var(--primary);
    font-size: 3rem;
}

.operator-empty-state strong {
    color: var(--text-main);
    font-size: 1.1rem;
}

.operator-image-stage {
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
    transform-origin: top left;
    will-change: transform;
}

.operator-image-stage img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 330px);
    width: auto;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.operator-image-stage canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.operator-interactive {
    z-index: 5;
    touch-action: none;
}

.operator-interactive[data-tool="add"] {
    cursor: crosshair;
}

.operator-interactive[data-tool="erase"] {
    cursor: cell;
}

.operator-interactive[data-tool="pan"] {
    cursor: grab;
}

.operator-interactive[data-tool="locked"] {
    cursor: default;
}

.operator-inspector {
    padding: 1rem;
}

.operator-inspector .operator-panel__header {
    margin: -1rem -1rem 1rem;
}

.operator-auth-grid {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.operator-save {
    width: 100%;
    gap: 0.5rem;
    margin-top: 1rem;
}

.operator-save-message {
    min-height: 1.3rem;
    margin-top: 0.65rem;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.operator-save-message[data-tone="success"] {
    color: #047857;
}

.operator-save-message[data-tone="error"] {
    color: #be123c;
}

.operator-save-message[data-tone="working"] {
    color: #0369a1;
}

.operator-inspector__section {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.operator-inspector__section h3 {
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.operator-admin-load {
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.operator-admin-list-wrap {
    display: grid;
    gap: 1rem;
    margin-top: 0.85rem;
}

.operator-admin-list-title {
    margin-bottom: 0.45rem;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.operator-admin-list {
    display: grid;
    gap: 0.45rem;
    max-height: 230px;
    overflow: auto;
}

.operator-admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    min-height: 54px;
    padding: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.operator-admin-row:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.operator-admin-row--static {
    cursor: default;
}

.operator-admin-row--static:hover {
    border-color: var(--border);
    box-shadow: none;
}

.operator-admin-row strong,
.operator-admin-row small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.operator-admin-row strong {
    font-size: 0.86rem;
    line-height: 1.2;
}

.operator-admin-row small {
    margin-top: 0.18rem;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.operator-admin-row b {
    min-width: 36px;
    color: var(--primary);
    font-size: 0.9rem;
    text-align: right;
}

.operator-admin-empty {
    padding: 0.85rem;
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.operator-validation-list {
    display: grid;
    gap: 0.45rem;
    list-style: none;
}

.operator-validation-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.operator-validation-list li.is-ok {
    color: #047857;
}

.operator-validation-list .material-symbols-outlined {
    flex: 0 0 auto;
    margin-top: 0.08rem;
    font-size: 1rem;
}

.operator-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.operator-shortcuts span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-body);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.operator-shortcuts kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.3rem;
    border-radius: 6px;
    background: white;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
}

body.operator-page {
    --operator-ink: #10221f;
    --operator-deep: #163d37;
    --operator-teal: #236f65;
    --operator-mint: #dce9df;
    --operator-celadon: #eef5ef;
    --operator-paper: #fbfaf2;
    --operator-paper-2: #f4f1e6;
    --operator-line: #b8c7bd;
    --operator-red: #9a2f2b;
    --operator-amber: #c18d2f;
    --operator-shadow: 0 16px 34px rgba(18, 45, 39, 0.10);
    background:
        linear-gradient(90deg, rgba(22, 61, 55, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(22, 61, 55, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, #f7f6ed 0%, #eef5ef 100%);
    background-size: 42px 42px, 42px 42px, auto;
    color: var(--operator-ink);
}

body.operator-page::before {
    content: "";
    position: fixed;
    inset: 64px 0 auto;
    height: 5px;
    background:
        linear-gradient(90deg, var(--operator-teal), var(--operator-teal) 36%, var(--operator-red) 36%, var(--operator-red) 43%, var(--operator-amber) 43%, var(--operator-amber));
    opacity: 0.85;
    pointer-events: none;
    z-index: 20;
}

.operator-page .operator-topbar {
    border-bottom: 1px solid rgba(16, 34, 31, 0.22);
    background: rgba(251, 250, 242, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.operator-page .operator-logo span,
.operator-page .operator-intro h1,
.operator-page .operator-panel__header h2,
.operator-page .operator-inspector__section h3 {
    color: var(--operator-ink);
}

.operator-page .operator-logo span {
    font-weight: 800;
}

.operator-page .operator-topbar__status {
    min-width: 0;
    min-height: 34px;
    padding: 0 0.8rem;
    border: 1px solid var(--operator-line);
    border-radius: 4px;
    background: var(--operator-celadon);
    color: var(--operator-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.operator-page .operator-topbar__status span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.operator-page .operator-topbar__status .material-symbols-outlined {
    color: var(--operator-teal);
    font-size: 1.2rem;
}

.operator-status-light {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #46a978;
    box-shadow: 0 0 0 3px rgba(70, 169, 120, 0.16);
}

.operator-page .operator-shell {
    padding-top: 1.65rem;
}

.operator-page .operator-intro {
    position: relative;
    align-items: center;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--operator-line);
    border-radius: 6px;
    background: rgba(251, 250, 242, 0.78);
    box-shadow: var(--operator-shadow);
}

.operator-page .operator-intro::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: repeating-linear-gradient(
        180deg,
        var(--operator-teal) 0 16px,
        var(--operator-paper) 16px 21px,
        var(--operator-red) 21px 27px,
        var(--operator-paper) 27px 33px
    );
}

.operator-page .operator-intro h1 {
    font-size: clamp(1.65rem, 2.6vw, 2.6rem);
    font-weight: 800;
}

.operator-page .operator-intro p {
    color: rgba(16, 34, 31, 0.68);
}

.operator-page .operator-intro__stats div,
.operator-system-strip,
.operator-page .operator-workflow__step,
.operator-page .operator-workflow__number,
.operator-page .operator-toolbars,
.operator-page .operator-panel,
.operator-page .operator-count-card,
.operator-page .operator-status-pill,
.operator-page .operator-field input,
.operator-page .operator-queue-item,
.operator-page .operator-admin-row,
.operator-page .operator-shortcuts span,
.operator-page .operator-shortcuts kbd {
    border-radius: 4px;
}

.operator-page .operator-intro__stats div {
    border-color: var(--operator-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.46), transparent),
        var(--operator-paper);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.operator-page .operator-intro__stats span,
.operator-page .operator-count-card strong,
.operator-page .operator-queue-item__count,
.operator-page .operator-admin-row b {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--operator-deep);
}

.operator-page .operator-intro__stats small,
.operator-page .operator-field span,
.operator-page .operator-count-card small,
.operator-page .operator-queue-header,
.operator-page .operator-admin-list-title,
.operator-page .operator-toolbars__header span,
.operator-system-strip__label {
    color: rgba(16, 34, 31, 0.58);
    letter-spacing: 0.08em;
}

.operator-system-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: -0.4rem 0 1rem;
    overflow: hidden;
    border: 1px solid var(--operator-line);
    background: var(--operator-line);
    box-shadow: var(--operator-shadow);
}

.operator-system-strip div {
    min-width: 0;
    padding: 0.72rem 0.85rem;
    background: rgba(244, 241, 230, 0.92);
}

.operator-system-strip span,
.operator-system-strip strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.operator-system-strip strong {
    margin-top: 0.18rem;
    color: var(--operator-deep);
    font-size: 0.92rem;
    font-weight: 800;
}

.operator-system-strip__label {
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.operator-page .operator-workflow {
    gap: 0.65rem;
    margin: -0.35rem 0 1rem;
}

.operator-page .operator-workflow__step {
    position: relative;
    min-height: 78px;
    border-color: var(--operator-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent),
        rgba(244, 241, 230, 0.88);
    box-shadow: var(--operator-shadow);
}

.operator-page .operator-workflow__step::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(16, 34, 31, 0.12);
}

.operator-page .operator-workflow__step strong {
    color: var(--operator-ink);
}

.operator-page .operator-workflow__step small {
    color: rgba(16, 34, 31, 0.62);
}

.operator-page .operator-workflow__number {
    border: 1px solid var(--operator-line);
    background: var(--operator-paper-2);
    color: var(--operator-deep);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.operator-page .operator-workflow__step.is-active {
    border-color: rgba(35, 111, 101, 0.62);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent),
        rgba(220, 233, 223, 0.92);
}

.operator-page .operator-workflow__step.is-active::after {
    background: var(--operator-teal);
}

.operator-page .operator-workflow__step.is-active .operator-workflow__number,
.operator-page .operator-workflow__step.is-complete .operator-workflow__number {
    border-color: rgba(16, 34, 31, 0.18);
    background: var(--operator-deep);
    color: var(--operator-paper);
}

.operator-page .operator-workflow__step.is-complete {
    border-color: rgba(35, 111, 101, 0.5);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent),
        rgba(238, 245, 239, 0.9);
}

.operator-page .operator-workflow__step.is-complete::after {
    background: var(--operator-teal);
}

.operator-page .operator-workflow__step.is-locked {
    opacity: 0.72;
}

.operator-page .operator-panel {
    position: relative;
    border-color: var(--operator-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 90px),
        rgba(251, 250, 242, 0.93);
    box-shadow: var(--operator-shadow);
}

.operator-page .operator-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.54);
}

.operator-page .operator-panel__header {
    min-height: 60px;
    border-bottom-color: var(--operator-line);
    background:
        linear-gradient(90deg, rgba(35, 111, 101, 0.14), transparent 42%),
        var(--operator-paper-2);
}

.operator-page .operator-panel__header h2::before {
    content: "";
    display: inline-block;
    width: 36px;
    height: 10px;
    margin-right: 0.55rem;
    background:
        radial-gradient(circle at 5px 50%, var(--operator-red) 0 4px, transparent 4.5px),
        radial-gradient(circle at 18px 50%, var(--operator-amber) 0 4px, transparent 4.5px),
        radial-gradient(circle at 31px 50%, var(--operator-teal) 0 4px, transparent 4.5px);
    vertical-align: -0.02em;
}

.operator-page .operator-drop-zone,
.operator-page .operator-empty-state,
.operator-page .operator-queue-empty,
.operator-page .operator-admin-empty {
    border-color: rgba(35, 111, 101, 0.38);
    background:
        linear-gradient(90deg, rgba(35, 111, 101, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(35, 111, 101, 0.04) 1px, transparent 1px),
        rgba(238, 245, 239, 0.68);
    background-size: 18px 18px, 18px 18px, auto;
    color: rgba(16, 34, 31, 0.68);
}

.operator-page .operator-drop-zone {
    border-style: solid;
}

.operator-page .operator-drop-zone:hover,
.operator-page .operator-drop-zone.is-dragover {
    border-color: var(--operator-teal);
    background-color: rgba(220, 233, 223, 0.9);
}

.operator-page .operator-drop-zone .material-symbols-outlined,
.operator-page .operator-empty-state .material-symbols-outlined {
    color: var(--operator-red);
}

.operator-page .operator-queue-item,
.operator-page .operator-admin-row {
    border-color: var(--operator-line);
    background: rgba(251, 250, 242, 0.86);
}

.operator-page .operator-queue-item:hover,
.operator-page .operator-queue-item.is-active,
.operator-page .operator-admin-row:hover {
    border-color: var(--operator-teal);
    background: var(--operator-celadon);
    box-shadow: inset 4px 0 0 var(--operator-teal), 0 0 0 3px rgba(35, 111, 101, 0.08);
}

.operator-page .operator-queue-item.is-saved {
    border-color: rgba(35, 111, 101, 0.56);
    background: rgba(220, 233, 223, 0.82);
}

.operator-page .operator-queue-item__index {
    border: 1px solid var(--operator-line);
    background: var(--operator-paper-2);
    color: var(--operator-deep);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.operator-page .operator-workbench {
    padding: 1rem;
}

.operator-page .operator-image-meta strong {
    color: var(--operator-ink);
}

.operator-page .operator-image-meta span,
.operator-page .operator-queue-item__body small,
.operator-page .operator-admin-row small,
.operator-page .operator-save-message,
.operator-page .operator-validation-list li,
.operator-page .operator-shortcuts span {
    color: rgba(16, 34, 31, 0.62);
}

.operator-page .operator-count-strip {
    grid-template-columns: minmax(150px, 1fr) repeat(3, minmax(72px, 86px)) minmax(92px, auto);
    padding: 0.75rem;
    border: 1px solid var(--operator-line);
    border-radius: 4px;
    background: rgba(244, 241, 230, 0.66);
}

.operator-page .operator-field input {
    border-color: var(--operator-line);
    background: rgba(255, 255, 248, 0.88);
    color: var(--operator-ink);
}

.operator-page .operator-field input:focus {
    border-color: var(--operator-teal);
    box-shadow: 0 0 0 3px rgba(35, 111, 101, 0.14);
}

.operator-page .operator-count-card,
.operator-page .operator-status-pill {
    border-color: var(--operator-line);
    background: rgba(251, 250, 242, 0.92);
}

.operator-page .operator-count-card--primary {
    border-color: rgba(35, 111, 101, 0.5);
    background: var(--operator-celadon);
    color: var(--operator-deep);
}

.operator-page .operator-status-pill {
    min-width: 92px;
    color: rgba(16, 34, 31, 0.66);
}

.operator-page .operator-status-pill[data-tone="working"] {
    color: #174e75;
    background: rgba(193, 221, 232, 0.7);
    border-color: rgba(23, 78, 117, 0.25);
}

.operator-page .operator-status-pill[data-tone="ready"] {
    color: #75511a;
    background: rgba(236, 220, 174, 0.72);
    border-color: rgba(193, 141, 47, 0.35);
}

.operator-page .operator-status-pill[data-tone="saved"] {
    color: var(--operator-deep);
    background: rgba(220, 233, 223, 0.9);
    border-color: rgba(35, 111, 101, 0.38);
}

.operator-page .operator-status-pill[data-tone="error"] {
    color: var(--operator-red);
    background: rgba(229, 206, 198, 0.62);
    border-color: rgba(154, 47, 43, 0.3);
}

.operator-page .operator-image-viewport {
    border-color: rgba(16, 34, 31, 0.28);
    border-radius: 4px;
    background:
        linear-gradient(90deg, rgba(16, 34, 31, 0.055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(16, 34, 31, 0.055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.08) 42%, transparent),
        #dce9df;
    background-size: 24px 24px, 24px 24px, auto, auto;
    box-shadow:
        inset 0 0 0 6px rgba(251, 250, 242, 0.74),
        inset 0 0 0 7px rgba(16, 34, 31, 0.14);
}

.operator-page .operator-image-viewport::before,
.operator-page .operator-image-viewport::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.operator-page .operator-image-viewport::before {
    left: 16px;
    right: 16px;
    top: 14px;
    height: 1px;
    background: rgba(154, 47, 43, 0.46);
}

.operator-page .operator-image-viewport::after {
    right: 14px;
    bottom: 12px;
    width: 74px;
    height: 18px;
    border-top: 2px solid rgba(16, 34, 31, 0.35);
    border-bottom: 2px solid rgba(16, 34, 31, 0.35);
}

.operator-page .operator-image-stage {
    z-index: 2;
    filter: saturate(0.92) contrast(1.02);
}

.operator-page .operator-toolbars {
    border-color: var(--operator-line);
    background: rgba(244, 241, 230, 0.82);
    box-shadow: var(--operator-shadow);
}

.operator-page .operator-toolbars__header {
    border-bottom-color: var(--operator-line);
    background:
        linear-gradient(90deg, rgba(35, 111, 101, 0.12), transparent 48%),
        rgba(244, 241, 230, 0.88);
}

.operator-page .operator-toolbars__header strong {
    color: var(--operator-ink);
}

.operator-page .operator-toolbars__header p {
    color: rgba(16, 34, 31, 0.64);
}

.operator-page .edit-toolbar,
.operator-page .operator-edit-toolbar {
    border-color: var(--operator-line);
    background: rgba(244, 241, 230, 0.72);
}

.operator-page .operator-edit-toolbar.is-locked {
    background:
        repeating-linear-gradient(135deg, rgba(16, 34, 31, 0.035) 0 8px, transparent 8px 16px),
        rgba(244, 241, 230, 0.68);
}

.operator-page .edit-tool-btn {
    border-color: var(--operator-line);
    border-radius: 4px;
    background: rgba(251, 250, 242, 0.9);
    color: var(--operator-deep);
}

.operator-page .edit-tool-btn:hover:not(:disabled),
.operator-page .edit-tool-btn.active {
    border-color: var(--operator-teal);
    background: var(--operator-deep);
    color: var(--operator-paper);
}

.operator-page .edit-tool-btn:disabled {
    border-color: rgba(184, 199, 189, 0.72);
    background: rgba(251, 250, 242, 0.58);
    color: rgba(22, 61, 55, 0.42);
}

.operator-page .operator-edit-toolbar.is-locked .edit-tool-btn.active {
    border-color: var(--operator-line);
    background: rgba(251, 250, 242, 0.9);
    color: rgba(22, 61, 55, 0.5);
}

.operator-page .operator-confidence[aria-disabled="true"] {
    color: rgba(16, 34, 31, 0.48);
}

.operator-page .operator-confidence input {
    accent-color: var(--operator-teal);
}

.operator-page .btn-primary,
.operator-page .operator-save {
    border: 1px solid rgba(16, 34, 31, 0.24);
    background: linear-gradient(180deg, #2e8173, #1d574e);
    color: var(--operator-paper);
    box-shadow: 0 10px 22px rgba(35, 111, 101, 0.22);
}

.operator-page .btn-secondary,
.operator-page .btn-ghost {
    border-color: var(--operator-line);
    background: rgba(251, 250, 242, 0.86);
    color: var(--operator-deep);
}

.operator-page .btn-primary:hover:not(:disabled),
.operator-page .btn-secondary:hover:not(:disabled),
.operator-page .btn-ghost:hover:not(:disabled) {
    transform: translateY(-1px);
}

.operator-page .btn-primary:disabled,
.operator-page .btn-secondary:disabled,
.operator-page .btn-ghost:disabled,
.operator-page .operator-save:disabled {
    border-color: rgba(184, 199, 189, 0.72);
    background: rgba(244, 241, 230, 0.74);
    color: rgba(16, 34, 31, 0.48);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.operator-page .operator-inspector__section {
    border-top-color: var(--operator-line);
}

.operator-page .operator-validation-list li.is-ok,
.operator-page .operator-save-message[data-tone="success"] {
    color: var(--operator-teal);
}

.operator-page .operator-save-message[data-tone="error"] {
    color: var(--operator-red);
}

.operator-page .operator-save-message[data-tone="working"] {
    color: #174e75;
}

.operator-page .operator-shortcuts span,
.operator-page .operator-shortcuts kbd {
    border-color: var(--operator-line);
    background: rgba(244, 241, 230, 0.76);
}

@media (max-width: 1180px) {
    .operator-grid {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .operator-inspector {
        grid-column: 1 / -1;
        position: static;
    }

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

@media (max-width: 860px) {
    .operator-topbar {
        padding: 0 1rem;
    }

    .operator-shell {
        padding: 1rem;
    }

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

    .operator-system-strip {
        grid-template-columns: 1fr;
    }

    .operator-workflow {
        grid-template-columns: 1fr;
    }

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

    .operator-workflow__action {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
    }

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

    .operator-sidebar {
        position: static;
    }

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

    .operator-page .operator-count-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .operator-field--object,
    .operator-status-pill {
        grid-column: 1 / -1;
    }

    .operator-page .operator-field--object,
    .operator-page .operator-status-pill {
        grid-column: 1 / -1;
    }

    .operator-image-viewport {
        min-height: 420px;
        height: 56vh;
    }
}

@media (max-width: 560px) {
    .operator-intro__stats,
    .operator-auth-grid {
        grid-template-columns: 1fr;
    }

    .operator-workbench__bar,
    .operator-nav-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .operator-nav-actions .btn {
        width: 100%;
    }

    .operator-count-strip {
        grid-template-columns: 1fr;
    }

    .operator-page .operator-count-strip {
        grid-template-columns: 1fr;
    }

    .operator-toolbars__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .operator-toolbars__header p {
        text-align: left;
    }

    .operator-confidence {
        width: 100%;
        margin-left: 0;
    }

    .operator-confidence input {
        flex: 1 1 auto;
    }
}

/* Native App Install Banner */
.app-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem 1.25rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-top: 1px solid rgba(255,255,255,0.5);
}

.app-install-banner.visible {
    transform: translateY(0);
}

.app-install-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-install-banner-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.app-install-banner-icon img {
    width: 40px;
    height: 40px;
}

@media (max-width: 768px) {
    .app-install-banner-icon {
        width: 52px;
        height: 52px;
    }
    .app-install-banner-icon img {
        width: 36px;
        height: 36px;
    }
}

.app-install-banner-text {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.85rem;
    line-height: 1.3;
}

.app-install-banner-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 100px;
}

.app-install-banner-actions .btn {
    text-decoration: none;
}

.app-install-banner-actions .btn:hover {
    text-decoration: none;
}

@media (min-width: 769px) {
    .app-install-banner {
        display: none !important; /* Mobile only */
    }
}

/* ========================================
   DEV Environment Banner
   ======================================== */
.dev-banner {
    position: relative;
    z-index: 20;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.dev-banner .material-symbols-outlined {
    font-size: 16px;
    animation: dev-pulse 2s ease-in-out infinite;
}

@keyframes dev-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   Count Limit Alert Modal
   ======================================== */

.count-limit-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.count-limit-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 12, 34, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.count-limit-modal__dialog {
    position: relative;
    width: min(420px, 90%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    text-align: center;
    animation: countLimitModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes countLimitModalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.count-limit-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.count-limit-modal__icon .material-symbols-outlined {
    font-size: 32px;
    color: #d97706;
}

.count-limit-modal__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.count-limit-modal__message {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.count-limit-modal__tip {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: var(--bg-body);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: left;
    margin-bottom: 1.5rem;
}

.count-limit-modal__tip .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}

.count-limit-modal__button {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}

.count-limit-modal--zero .count-limit-modal__icon {
    background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%);
}

.count-limit-modal--zero .count-limit-modal__icon .material-symbols-outlined {
    color: #4f46e5;
}

.count-limit-modal--zero .count-limit-modal__tip {
    background: rgba(79, 70, 229, 0.06);
}
