/* ================================================================
   AnythingText Dashboard Styles — Dark Theme
   ================================================================ */

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

/* Disable iOS/iPad double-tap zoom on interactive elements.
   touch-action: manipulation keeps pinch-zoom for accessibility but removes
   the 300ms click delay and double-tap zoom behavior. */
button, a, [role="button"], input[type="button"], input[type="submit"],
input[type="checkbox"], input[type="radio"], label, select,
.cursor-pointer, [onclick] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
body {
    /* System stack first — avoids CLS when a late-loaded web font swaps metrics */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0b1a;
    color: #e2e8f0;
}

/* Dark dropdown options (browser native) */
select { background-color: #1a1625; color: #e2e8f0; }
select option { background: #1a1625; color: #e2e8f0; }

/* Fade-in animation */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step circles (How It Works) */
.step-circle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    position: relative;
}
@media (min-width: 640px) {
    .step-circle {
        width: 72px;
        height: 72px;
        font-size: 1.6rem;
    }
}
/* Step card (bento style) */
.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px 18px 18px;
    transition: all 0.3s ease;
}
@media (min-width: 640px) {
    .step-card {
        padding: 40px 28px 36px;
    }
}
.step-card .step-circle {
    margin-top: 4px;
}
@media (min-width: 640px) {
    .step-card .step-circle {
        margin-top: 8px;
    }
}
@media (hover: hover) {
    .step-card:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(99, 102, 241, 0.2);
        transform: translateY(-2px);
    }
}
/* Connector line between steps */
.step-connector {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.1));
    transform: translateY(-50%);
}
@media (max-width: 768px) {
    .step-connector { display: none; }
}

/* Drop zone active state */
.drop-zone-active {
    border-color: #6366f1 !important;
    background-color: #eef2ff !important;
}

/* Progress bar transition */
.progress-bar-animate {
    transition: width 0.4s ease;
}

/* Processing pulse border */
@keyframes pulse-border {
    0%, 100% { border-color: #6366f1; }
    50% { border-color: #a5b4fc; }
}
.processing-pulse {
    animation: pulse-border 1.5s ease-in-out infinite;
}

/* Record button pulse */
@keyframes record-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.record-pulse {
    animation: record-pulse 1.5s ease-in-out infinite;
}

/* ---- Textarea styling for light-themed tool panels ---- */
.bg-white textarea,
.bg-white .result-textarea {
    background-color: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 0.75rem;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bg-white textarea:focus,
.bg-white .result-textarea:focus {
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15) !important;
    outline: none;
}
.bg-white textarea::placeholder {
    color: #94a3b8;
}

/* Custom scrollbar for textareas */
.result-textarea::-webkit-scrollbar { width: 6px; }
.result-textarea::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 3px; }
.result-textarea::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }

/* JSON error line highlight */
.json-error-line {
    background: rgba(239, 68, 68, 0.18);
    border-left: 3px solid #ef4444;
    display: inline-block;
    width: 100%;
    margin-left: -4px;
    padding-left: 1px;
    border-radius: 2px;
}

/* Glassmorphism navbar */
.navbar-glass {
    background: rgba(15, 11, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

/* Compact nav when inside a tool page */
#mainNav.nav-compact .nav-inner {
    height: 2.25rem !important;
    transition: height 0.3s ease;
}
#mainNav .nav-inner {
    transition: height 0.3s ease;
}
#mainNav.nav-compact .nav-logo-icon {
    width: 1.5rem;
    height: 1.5rem;
    transition: all 0.3s ease;
}
#mainNav.nav-compact .nav-logo-icon i {
    font-size: 0.7rem;
}
#mainNav.nav-compact .nav-logo-text {
    font-size: 0.875rem;
    transition: font-size 0.3s ease;
}
#mainNav.nav-compact .nav-link {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}
#mainNav.nav-compact .nav-right-btn {
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}
#mainNav.nav-compact .nav-credits {
    padding: 0.15rem 0.4rem;
    transition: all 0.3s ease;
}
#mainNav.nav-compact .nav-credits span {
    font-size: 0.6rem;
}
#mainNav.nav-compact .nav-credits i {
    font-size: 0.55rem;
}
#mainNav.nav-compact .nav-user-btn {
    padding: 0.15rem 0.5rem;
    transition: all 0.3s ease;
}

/* K-12 logo: tighten icon↔text gap, shrink line-height, and hide the
   "by AnythingText.com" subtitle when the navbar collapses, so the
   compact nav doesn't show a disproportionately large subtitle next
   to the shrunken icon. */
.nav-k12-logo { transition: gap 0.3s ease; }
.nav-k12-stack { transition: line-height 0.3s ease; }
#mainNav.nav-compact .nav-k12-logo {
    gap: 0.5rem;
    margin-right: 1rem;
}
#mainNav.nav-compact .nav-k12-subtitle {
    display: none;
}

/* Hero gradient overlay — richer ambient glow behind search area */
.hero-bg {
    background: radial-gradient(ellipse 800px 400px at 50% 10%, rgba(99, 102, 241, 0.2) 0%, transparent 70%),
                radial-gradient(ellipse 600px 300px at 75% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse 600px 300px at 25% 25%, rgba(79, 70, 229, 0.1) 0%, transparent 60%),
                radial-gradient(ellipse 400px 200px at 50% 5%, rgba(56, 189, 248, 0.06) 0%, transparent 50%);
}

/* Search bar — glassmorphism with depth */
.search-glow {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 40px rgba(99, 102, 241, 0.06);
    transition: all 0.3s ease;
}
.search-glow:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3), 0 0 60px rgba(99, 102, 241, 0.15), 0 0 100px rgba(99, 102, 241, 0.05);
}
/* Keyboard shortcut hint — keycap style */
.search-kbd {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 500;
    font-family: system-ui, sans-serif;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}
/* Override browser autofill background */
.search-glow input:-webkit-autofill,
.search-glow input:-webkit-autofill:hover,
.search-glow input:-webkit-autofill:focus,
.search-glow input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 50px rgba(30, 27, 75, 1) inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    transition: background-color 5000s ease-in-out 0s;
}

/* Password Strength Checker — keep field dark (password inputs + autofill love white) */
.passcheck-input:-webkit-autofill,
.passcheck-input:-webkit-autofill:hover,
.passcheck-input:-webkit-autofill:focus,
.passcheck-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgb(24 24 27) inset !important;
    -webkit-text-fill-color: #f4f4f5 !important;
    caret-color: #f4f4f5;
    transition: background-color 5000s ease-in-out 0s;
}

/* Grid container — reserve space to reduce CLS (do not toggle min-height on search; that caused large shifts) */
#toolCardsGrid {
    min-height: 80vh;
    align-content: start;
    /* Isolate grid layout recalculations when cards mount (avoid minmax rows — group headers are shorter than cards) */
    contain: layout;
}

/* Desktop navbar strips: stable width while icons/fonts settle (paired with flex-shrink-0 in HTML) */
@media (min-width: 768px) {
    .nav-desktop-links {
        min-width: 15rem;
    }
    .nav-desktop-actions {
        min-width: 22rem;
        justify-content: flex-end;
    }
    /* Reserve icon width before FA webfont paints (navbar CLS) */
    .nav-desktop-links .fa-solid,
    .nav-desktop-links .fab,
    .nav-desktop-actions .fa-solid,
    .nav-desktop-actions .fab {
        display: inline-block;
        min-width: 1.15em;
        text-align: center;
    }
}

/* Feature card — minimal, tight */
.tool-card {
    position: relative;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    contain: layout style;
    /* CSS Grid: icon left (col 1), title+desc stacked right (col 2) */
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0;
    overflow: hidden;
}
/* Inner flex wrapper becomes contents so icon+title participate in grid */
.tool-card > div:first-child {
    display: contents !important;
}
.tool-card-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: center;
    width: 2.5rem !important;
    height: 2.5rem !important;
    flex-shrink: 0;
}
.tool-card-title {
    grid-column: 2;
    grid-row: 1;
    transition: color 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
/* Description in column 2, row 2 */
.tool-card > p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Extra elements (badges, drop hints) — hide from grid flow */
.tool-card > div:not(:first-child) {
    grid-column: 2;
    display: none;
}
@media (hover: hover) {
    .tool-card:hover {
        background: rgba(255, 255, 255, 0.055);
        border-color: rgba(255, 255, 255, 0.12);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }
    .tool-card:hover .tool-card-icon {
        transform: scale(1.05);
    }
    .tool-card:hover .tool-card-title {
        color: #fff;
    }
}

/* Church Booking grid — drag-select + hover */
.cb-drag-selected {
    background: rgba(139, 92, 246, 0.3) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.4);
}
.cb-hover-booked {
    background: rgba(239, 68, 68, 0.35) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

/* Home tabs */
.home-tab {
    color: rgba(255, 255, 255, 0.4);
}
.home-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Card left accent — disabled, using icon color instead */
.border-top-indigo, .border-top-purple, .border-top-pink, .border-top-rose,
.border-top-blue, .border-top-emerald, .border-top-amber, .border-top-teal,
.border-top-green, .border-top-orange, .border-top-cyan, .border-top-sky,
.border-top-red, .border-top-violet, .border-top-fuchsia, .border-top-lime,
.border-top-gray, .border-top-slate, .border-top-zinc {
    border-left: none;
    border-top: none;
}
.border-top-yellow { border-left: none; border-top: none; }

/* Featured full-width tool card (e.g. PDF Workshop) */
.tool-card.col-span-full { display: flex !important; align-items: center; gap: 1rem; }
.tool-card.col-span-full > * { display: flex !important; grid-column: unset; grid-row: unset; }
.tool-card.col-span-full > div:not(:first-child) { display: flex !important; }
.tool-card.col-span-full > div:first-child { display: flex !important; }
.tool-card.col-span-full .tool-card-icon { width: 3rem !important; height: 3rem !important; }
.tool-card.col-span-full .tool-card-title { white-space: normal; overflow: visible; }
.tool-card.col-span-full > p { display: none; }

/* K-12 scope (route /k12/*) — hide AnythingText bazaar bleed-through so /k12
 * reads like a standalone product. Applied on <body class="k12-scope">. */
body.k12-scope form[role="search"],
body.k12-scope #searchHistoryChips,
body.k12-scope #aiSearchIndicator,
body.k12-scope #topToolsSection,
body.k12-scope #gamesSection,
body.k12-scope #statsStrip,
body.k12-scope #recentToolsBar,
body.k12-scope #feedbackCta,
body.k12-scope #stickySearch,
body.k12-scope #categorySidebar,
body.k12-scope #categoryFilterBtnsMobile,
body.k12-scope #toolToolbar,
body.k12-scope #toolCardsGrid,
body.k12-scope .group-header,
body.k12-scope #pinnedSeparator,
body.k12-scope #noToolsFound,
body.k12-scope #browsePrompt,
body.k12-scope #featuredTools,
body.k12-scope #view-cards > div > .mt-6 > .flex.items-center.justify-center.border-b { display: none !important; }

/* K-12 scope — emerald/teal ambient glow instead of indigo */
body.k12-scope .hero-bg {
    background:
        radial-gradient(ellipse 800px 400px at 50% 10%, rgba(16, 185, 129, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 600px 300px at 75% 20%, rgba(20, 184, 166, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 600px 300px at 25% 25%, rgba(5, 150, 105, 0.10) 0%, transparent 60%);
}

/* K-12 tab: hide sidebar/toolbar, hide the generic grid, show custom K-12 grid */
.k12-tab-active #categorySidebar,
.k12-tab-active #categoryFilterBtnsMobile,
.k12-tab-active #toolToolbar,
.k12-tab-active #toolCardsGrid,
.k12-tab-active .group-header,
.k12-tab-active #pinnedSeparator,
.k12-tab-active #noToolsFound,
.k12-tab-active #browsePrompt { display: none !important; }

/* Show custom grid only in K-12 tab */
#k12CustomGrid { display: none; }
.k12-tab-active #k12CustomGrid { display: grid; }

/* Card hover lift + border glow */
.k12-grid-card { transition: transform .25s cubic-bezier(.4,0,.2,1), border-color .25s ease, box-shadow .25s ease; }
@media (hover: hover) {
    .k12-grid-card:hover { box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35); }
}

/* Footer */
.footer-bg {
    background: rgba(15, 11, 26, 1);
    border-top: 1px solid rgba(99, 102, 241, 0.08);
    position: relative;
    z-index: 0;
    flex-shrink: 0;
}

/* User dropdown — dark */
.dropdown-dark {
    background: rgba(30, 27, 75, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Mobile menu slide-down */
.mobile-menu-enter { animation: slideDown 0.2s ease-out; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pin button on tool cards */
.pin-btn {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 2;
}
@media (hover: hover) {
    .tool-card:hover .pin-btn {
        opacity: 1;
    }
}
.pin-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}
.pin-btn.pinned {
    opacity: 1;
    color: #facc15;
    background: rgba(250, 204, 21, 0.1);
    transform: rotate(-45deg);
}
.pin-btn.pinned:hover {
    background: rgba(250, 204, 21, 0.2);
    color: #fde047;
}

/* Pinned card indicator */
.tool-card.is-pinned {
    border-color: rgba(250, 204, 21, 0.2);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.05);
}

/* Pinned / unpinned separator */
.pinned-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    grid-column: 1 / -1;
}
.pinned-separator .sep-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.25), transparent);
}
.pinned-separator .sep-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(250, 204, 21, 0.5);
    white-space: nowrap;
    letter-spacing: 0.03em;
}

/* ---- Sort & Group Toolbar ---- */
.toolbar-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}
.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    color: rgba(255, 255, 255, 0.9);
}
.toolbar-btn-active {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    color: #818cf8 !important;
}

/* Sort dropdown active item */
.sort-active {
    color: #818cf8 !important;
    background: rgba(99, 102, 241, 0.08);
}

/* ---- Group Headers ---- */
.group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 8px;
    grid-column: 1 / -1;
}
.group-header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}
.group-header-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}
.group-header-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    background: rgba(99, 102, 241, 0.15);
    color: rgba(99, 102, 241, 0.7);
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    padding: 0 6px;
    margin-left: 8px;
}

/* Docs "?" button on tool cards */
.docs-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 2;
    text-decoration: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
@media (hover: hover) {
    .tool-card:hover .docs-btn {
        opacity: 1;
    }
}
.docs-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    transform: scale(1.15);
}

/* Client-side tool badge - small "Free" label (lower-right) */
.client-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    z-index: 2;
}
@media (hover: hover) {
    .tool-card:hover .client-badge {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* ---- File Drop Zone on Tool Cards ---- */
.tool-card .drop-hint {
    margin-top: 8px;
    padding: 4px 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.12);
    text-align: center;
    transition: all 0.3s ease;
    pointer-events: none;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}
@media (hover: hover) {
    .tool-card:hover .drop-hint {
        color: rgba(245, 158, 11, 0.4);
        border-top-color: rgba(245, 158, 11, 0.15);
    }
}
.tool-card.drag-over {
    border: 2px dashed rgba(245, 158, 11, 0.7) !important;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15), inset 0 0 30px rgba(245, 158, 11, 0.05) !important;
    background: rgba(245, 158, 11, 0.04) !important;
    transform: translateY(-4px) scale(1.01);
}
.tool-card.drag-over .drop-hint {
    color: rgba(245, 158, 11, 0.9);
    font-weight: 600;
    border-top-color: rgba(245, 158, 11, 0.3);
}
.tool-card .drop-toast {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    font-weight: 700;
    font-size: 13px;
    border-radius: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}
.tool-card .drop-toast.show { opacity: 1; }

/* Disabled tool (under repair) */
.tool-card.tool-disabled {
    opacity: 0.5;
    filter: grayscale(0.4);
}
@media (hover: hover) {
    .tool-card.tool-disabled:hover {
        transform: none;
        box-shadow: none;
        cursor: not-allowed;
    }
}

/* SPA view hidden utility */
.view-hidden { display: none !important; }
