/**
 * ToolsHub - Category-Specific Design Systems & Themed Layouts (category-themes.css)
 * Tailored aesthetics, custom palettes, specialized layouts, and purpose-built UI controls
 * for all 21 tool categories.
 */

/* ==========================================================================
   0. Global Themed Header & Badges
   ========================================================================== */
.tool-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: var(--transition, all 0.2s ease);
}

.tool-page-header .tool-page-icon.icon-developer {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-image-tools {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-pdf-tools {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-finance,
.tool-page-header .tool-page-icon.icon-business {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-design {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-health {
    background: linear-gradient(135deg, #0284c7, #10b981);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-calculators {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-security {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-unit-converters {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-text {
    background: linear-gradient(135deg, #334155, #64748b);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(71, 85, 105, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-audio {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-video {
    background: linear-gradient(135deg, #be123c, #e11d48);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-ai {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-seo-social {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-datetime {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-network {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #041427;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-education {
    background: linear-gradient(135deg, #4338ca, #6366f1);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(67, 56, 202, 0.35);
    border: none;
}
.tool-page-header .tool-page-icon.icon-document {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
    border: none;
}

/* ==========================================================================
   1. THEME: DEVELOPER & CODING TOOLS (Cyber Dark IDE Frame)
   ========================================================================== */
.tool-workspace.theme-developer {
    background: #0d121c;
    border: 1px solid #1e293b;
    border-radius: 16px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(56, 189, 248, 0.15);
    color: #f1f5f9;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.theme-developer .ide-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: #090d16;
    border-bottom: 1px solid #1e293b;
    font-size: 0.85rem;
}

.theme-developer .mac-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.theme-developer .mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.theme-developer .mac-dot.red { background: #ff5f56; }
.theme-developer .mac-dot.yellow { background: #ffbd2e; }
.theme-developer .mac-dot.green { background: #27c93f; }

.theme-developer .ide-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0d121c;
    padding: 0.35rem 0.95rem;
    border-radius: 6px 6px 0 0;
    font-size: 0.82rem;
    font-family: var(--font-mono, monospace);
    color: #38bdf8;
    border-top: 2px solid #38bdf8;
    border-left: 1px solid #1e293b;
    border-right: 1px solid #1e293b;
    margin-bottom: -0.75rem;
}

.theme-developer .ide-body {
    padding: 1.5rem;
}

.theme-developer .card,
.theme-developer #developer-tool-app .card {
    background: #111827 !important;
    border: 1px solid #1f2937 !important;
    color: #f3f4f6 !important;
    border-radius: 12px !important;
}

.theme-developer textarea.code-font,
.theme-developer input.code-font {
    background: #090d16 !important;
    color: #38bdf8 !important;
    border: 1px solid #1e293b !important;
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    border-radius: 8px !important;
    caret-color: #38bdf8 !important;
}

.theme-developer textarea.code-font:focus,
.theme-developer input.code-font:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
    outline: none !important;
}

.theme-developer .form-control {
    background: #090d16 !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

.theme-developer .form-label {
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

.theme-developer .btn-primary {
    background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
    color: #041427 !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35) !important;
    letter-spacing: 0.02em !important;
}

.theme-developer .btn-primary:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.theme-developer .btn-secondary {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border: 1px solid #334155 !important;
}

.theme-developer .btn-secondary:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

.theme-developer .ide-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1.25rem;
    background: #090d16;
    border-top: 1px solid #1e293b;
    font-size: 0.78rem;
    color: #64748b;
    font-family: var(--font-mono, monospace);
}

.theme-developer .ide-status-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Specific highlight for dev output */
.theme-developer #dev-output-code {
    background: #06090e !important;
    color: #34d399 !important;
    border-color: #1e293b !important;
}

.theme-developer .ide-actions-top,
.theme-developer .dev-pane-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.theme-developer .btn-xs {
    padding: 0.25rem 0.6rem !important;
    font-size: 0.76rem !important;
    border-radius: 6px !important;
}

.theme-developer .dev-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    align-items: stretch;
}

.theme-developer .dev-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.theme-developer .dev-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    min-height: 28px;
}

.theme-developer .dev-pane-meta {
    font-size: 0.75rem;
    color: #64748b;
    font-family: var(--font-mono, monospace);
}

.theme-developer .dev-controls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: 10px;
}

.theme-developer .dev-control-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-developer .dev-select-sm {
    width: auto !important;
    min-width: 120px;
    padding: 0.3rem 0.65rem !important;
    font-size: 0.82rem !important;
    height: auto !important;
}

.theme-developer .dev-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #cbd5e1;
    cursor: pointer;
    padding: 0.25rem 0.65rem;
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 999px;
}

.theme-developer .dev-regex-card {
    padding: 1rem !important;
}

.theme-developer .dev-regex-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 0.9rem;
}

.theme-developer .dev-regex-input-wrap {
    display: flex;
    align-items: center;
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0 0.65rem;
}

.theme-developer .dev-regex-input-wrap input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-developer .dev-regex-delim {
    color: #38bdf8;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
}

.theme-developer .dev-preset-strip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.theme-developer .dev-preset-label {
    font-size: 0.78rem;
    color: #64748b;
}

.theme-developer .dev-chip-btn {
    background: #090d16;
    border: 1px solid #1e293b;
    color: #93c5fd;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.theme-developer .dev-chip-btn:hover {
    border-color: #38bdf8;
    color: #ffffff;
}

.theme-developer .dev-error-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.5);
    border-radius: 10px;
    color: #fecaca;
    font-size: 0.86rem;
    font-family: var(--font-mono, monospace);
}

.theme-developer .dev-execute-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.theme-developer .dev-summary-pill {
    padding: 0.45rem 0.9rem;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
    border-radius: 999px;
    font-size: 0.82rem;
    font-family: var(--font-mono, monospace);
}

.theme-developer .dev-table-scroll {
    overflow-x: auto;
    border: 1px solid #1e293b;
    border-radius: 8px;
}

.theme-developer .dev-csv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    color: #e2e8f0;
}

.theme-developer .dev-csv-table th {
    background: #090d16;
    color: #38bdf8;
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #1e293b;
    font-weight: 700;
}

.theme-developer .dev-csv-table td {
    padding: 0.52rem 0.8rem;
    border-bottom: 1px solid #1e293b;
}

.theme-developer .dev-csv-table tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.45);
}

.theme-developer .dev-markdown-body {
    color: #e2e8f0;
    line-height: 1.7;
    font-size: 0.94rem;
}

.theme-developer .dev-markdown-body h1,
.theme-developer .dev-markdown-body h2,
.theme-developer .dev-markdown-body h3,
.theme-developer .dev-markdown-body h4 {
    color: #f8fafc;
    margin: 0.85rem 0 0.45rem;
}

.theme-developer .dev-markdown-body pre {
    background: #06090e;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    overflow-x: auto;
    color: #34d399;
}

.theme-developer .dev-markdown-body code {
    background: #090d16;
    color: #38bdf8;
    padding: 0.12rem 0.38rem;
    border-radius: 4px;
}

.theme-developer .dev-markdown-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.theme-developer .dev-markdown-body blockquote {
    border-left: 3px solid #38bdf8;
    margin: 0.75rem 0;
    padding: 0.35rem 0.9rem;
    background: rgba(56, 189, 248, 0.08);
    color: #cbd5e1;
}

.theme-developer .dev-markdown-body a {
    color: #38bdf8;
    text-decoration: underline;
}

.theme-developer .mdev-cron-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.theme-developer .mdev-3col-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.theme-developer .mdev-preview-stage {
    border-radius: 10px;
    border: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}

.theme-developer .mdev-layout-stage {
    min-height: 110px;
    padding: 1rem;
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: 10px;
}

.theme-developer .mdev-box-item {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #041427;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    text-align: center;
}

.theme-developer #mdev-output-code {
    background: #06090e !important;
    color: #34d399 !important;
    border-color: #1e293b !important;
}

/* ==========================================================================
   2. THEME: IMAGE TOOLS (Creative Darkroom Studio)
   ========================================================================== */
.tool-workspace.theme-image-tools {
    background: #090d16;
    border: 1px solid #1e1b4b;
    border-top: 4px solid #6366f1;
    border-radius: 16px;
    color: #f8fafc;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.15);
}

.theme-image-tools .tool-dropzone {
    background: rgba(99, 102, 241, 0.04) !important;
    border: 2px dashed rgba(129, 140, 248, 0.45) !important;
    color: #cbd5e1 !important;
    border-radius: 14px !important;
    transition: all 0.25s ease !important;
}

.theme-image-tools .tool-dropzone:hover {
    border-color: #818cf8 !important;
    background: rgba(99, 102, 241, 0.1) !important;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.25) !important;
}

.theme-image-tools .tool-dropzone i {
    color: #818cf8 !important;
}

.theme-image-tools .tool-dropzone h3 {
    color: #f8fafc !important;
}

.theme-image-tools .tool-dropzone p {
    color: #94a3b8 !important;
}

.theme-image-tools .darkroom-canvas-box {
    background-color: #0b0f19;
    background-image: 
        linear-gradient(45deg, #131b2e 25%, transparent 25%), 
        linear-gradient(-45deg, #131b2e 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #131b2e 75%), 
        linear-gradient(-45deg, transparent 75%, #131b2e 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    margin: 1.25rem 0;
}

.theme-image-tools .form-control {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

.theme-image-tools #img-options-panel {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
}

.theme-image-tools #img-preview-container {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

.theme-image-tools .btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4) !important;
    border: none !important;
    font-weight: 700 !important;
}

.theme-image-tools .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
}

.theme-image-tools .btn-secondary {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

/* ==========================================================================
   2B. IMAGE STUDIO TAILORED LAYOUTS & INTERACTIVE COMPONENTS
   ========================================================================== */
.img-flow-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.img-flow-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
}

.img-format-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    font-size: 0.78rem;
}

.img-format-chip.target {
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(129, 140, 248, 0.6);
    color: #c7d2fe;
}

.img-studio-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.img-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #0f172a;
    border: 1px solid #334155;
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 600;
}

.img-chip.accent {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(129, 140, 248, 0.5);
    color: #c7d2fe;
}

.img-chip.warn {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fcd34d;
}

.theme-image-tools #img-options-panel.img-split-studio {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

#image-tool-app .img-split-studio,
.img-split-studio {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.img-panel-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 1.15rem;
    color: #f8fafc;
}

.img-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.85rem;
}

.img-panel-title i {
    color: #818cf8;
    margin-right: 0.3rem;
}

.img-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    display: block;
}

.img-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}

.img-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

#image-tool-app .img-select-chip,
.img-select-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.48rem 0.7rem;
    border-radius: 9px;
    background: #131c31 !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

#image-tool-app .img-select-chip:hover,
.img-select-chip:hover {
    border-color: #818cf8 !important;
    background: #1e293b !important;
    color: #ffffff !important;
}

#image-tool-app .img-select-chip.active,
.img-select-chip.active {
    background: rgba(99, 102, 241, 0.28) !important;
    border-color: #818cf8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.35);
}

.img-seg-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    background: #090d16;
    padding: 0.35rem;
    border-radius: 10px;
    border: 1px solid #1e293b;
}

.img-seg-tab {
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.img-seg-tab.active {
    background: #6366f1;
    color: #ffffff;
}

.img-preset-grid {
    display: grid;
    gap: 0.65rem;
}

#image-tool-app .img-preset-card,
.img-preset-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.8rem 0.85rem;
    border-radius: 11px;
    background: #131c31 !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease;
}

#image-tool-app .img-preset-card.active,
.img-preset-card.active {
    background: rgba(99, 102, 241, 0.24) !important;
    border-color: #818cf8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.22);
}

.img-preset-card i {
    color: #818cf8;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.img-preset-card strong {
    font-size: 0.86rem;
    color: #f8fafc;
}

.img-preset-card span {
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.35;
}

/* Interactive Visual Crop Canvas */
.img-crop-stage-wrap {
    margin: 0 !important;
    padding: 0.75rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.img-crop-stage {
    position: relative;
    display: inline-block;
    max-width: 100%;
    user-select: none;
    touch-action: none;
}

.img-crop-stage img {
    display: block;
    max-width: 100%;
    max-height: 310px;
    object-fit: contain;
    pointer-events: none;
}

.img-crop-box {
    position: absolute;
    border: 2px solid #818cf8;
    box-shadow: 0 0 0 9999px rgba(9, 13, 22, 0.62);
    cursor: move;
    box-sizing: border-box;
}

.img-crop-grid-h::before,
.img-crop-grid-h::after,
.img-crop-grid-v::before,
.img-crop-grid-v::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.28);
    pointer-events: none;
}

.img-crop-grid-h::before { left: 0; right: 0; top: 33.33%; height: 1px; }
.img-crop-grid-h::after  { left: 0; right: 0; top: 66.66%; height: 1px; }
.img-crop-grid-v::before { top: 0; bottom: 0; left: 33.33%; width: 1px; }
.img-crop-grid-v::after  { top: 0; bottom: 0; left: 66.66%; width: 1px; }

.img-crop-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #818cf8;
    border: 2px solid #ffffff;
    border-radius: 3px;
}

.img-crop-handle[data-handle="nw"] { top: -6px; left: -6px; cursor: nwse-resize; }
.img-crop-handle[data-handle="ne"] { top: -6px; right: -6px; cursor: nesw-resize; }
.img-crop-handle[data-handle="sw"] { bottom: -6px; left: -6px; cursor: nesw-resize; }
.img-crop-handle[data-handle="se"] { bottom: -6px; right: -6px; cursor: nwse-resize; }

/* Live Watermark Stage */
.img-wm-stage {
    margin: 0 !important;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.img-wm-overlay {
    position: absolute;
    font-weight: 800;
    pointer-events: none;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
}

.swatch-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: inline-block;
}

.swatch-checker {
    background-image: linear-gradient(45deg, #64748b 25%, transparent 25%),
        linear-gradient(-45deg, #64748b 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #64748b 75%),
        linear-gradient(-45deg, transparent 75%, #64748b 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0;
}

.img-print-calc {
    padding: 0.62rem 0.85rem;
    border-radius: 8px;
    background: #131c31;
    border: 1px solid #334155;
    color: #c7d2fe;
    font-size: 0.86rem;
    font-weight: 600;
}

/* Contact Sheet Deck & Favicon Grid */
.img-contact-deck {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 0.75rem;
}

.img-cs-card {
    background: #131c31;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 0.5rem;
    position: relative;
    text-align: center;
}

.img-cs-card img {
    width: 100%;
    height: 76px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.35rem;
}

.img-cs-card .cs-name {
    font-size: 0.72rem;
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.img-cs-card .cs-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.85);
    color: #f87171;
    cursor: pointer;
    font-size: 0.72rem;
}

.img-fav-preview-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.img-fav-tab-mock {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: #1e293b;
    border-radius: 10px 10px 0 0;
    border-bottom: 2px solid #818cf8;
    font-size: 0.8rem;
    color: #f8fafc;
}

.img-fav-tab-mock img {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
}

.img-fav-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.img-fav-tile {
    background: #131c31;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: #cbd5e1;
}

/* EXIF Telemetry Groups */
.img-meta-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.img-meta-group-card {
    background: #131c31;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 0.8rem;
}

.img-meta-group-card h5 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #818cf8;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.img-meta-kv {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.28rem 0;
    border-bottom: 1px dashed rgba(51, 65, 85, 0.6);
    font-size: 0.8rem;
}

.img-meta-kv:last-child { border-bottom: none; }
.img-meta-kv span { color: #94a3b8; }
.img-meta-kv strong { color: #f1f5f9; text-align: right; word-break: break-word; }

/* Before / After Interactive Comparison Slider */
.img-compare-wrap {
    margin: 1rem auto;
    max-width: 520px;
}

.img-compare-stage {
    position: relative;
    width: 100%;
    height: 270px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #334155;
    background: #0b0f19;
    user-select: none;
}

.img-compare-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.img-compare-after {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(0 0 0 50%);
}

.img-compare-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #818cf8;
    pointer-events: none;
}

.img-compare-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #6366f1;
    border: 2px solid #ffffff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.img-compare-range {
    width: 100%;
    margin-top: 0.5rem;
    cursor: ew-resize;
}

.img-compare-badges {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

@media (max-width: 768px) {
    .img-split-studio {
        grid-template-columns: 1fr;
    }
    .img-preset-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .img-chip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .img-seg-tabs {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   3. THEME: PDF TOOLS (Acrobat Pro Document Suite)
   ========================================================================== */
.tool-workspace.theme-pdf-tools {
    border-top: 4px solid #ef4444;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.08);
}

.theme-pdf-tools .tool-dropzone {
    border: 2px dashed rgba(239, 68, 68, 0.35) !important;
    background: rgba(239, 68, 68, 0.02) !important;
    border-radius: 14px !important;
}

.theme-pdf-tools .tool-dropzone:hover {
    border-color: #dc2626 !important;
    background: rgba(239, 68, 68, 0.06) !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.15) !important;
}

.theme-pdf-tools .tool-dropzone i {
    color: #ef4444 !important;
}

.theme-pdf-tools .pdf-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.75rem;
}

.theme-pdf-tools .btn-primary {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35) !important;
    border: none !important;
    font-weight: 700 !important;
}

.theme-pdf-tools .btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626) !important;
}

/* ==========================================================================
   3B. PDF STUDIO TAILORED LAYOUTS & INTERACTIVE COMPONENTS
   ========================================================================== */
.pdf-studio-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pdf-flow-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.15rem;
    background: linear-gradient(135deg, #fff5f5 0%, #f8fafc 100%);
    border: 1px solid #fecaca;
    border-radius: 12px;
    flex-wrap: wrap;
}

.pdf-flow-pills {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: #0f172a;
}

.pdf-format-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.pdf-chip-pdf { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.pdf-chip-word { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.pdf-chip-excel { background: #d1fae5; color: #047857; border: 1px solid #6ee7b7; }
.pdf-chip-ppt { background: #ffedd5; color: #c2410c; border: 1px solid #fdba74; }
.pdf-chip-img { background: #e0e7ff; color: #4338ca; border: 1px solid #a5b4fc; }
.pdf-chip-sec { background: #ccfbf1; color: #0f766e; border: 1px solid #5eead4; }
.pdf-chip-text { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }

.pdf-trust-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: #475569;
    flex-wrap: wrap;
}
.pdf-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
}

/* Segmented Mode Tabs */
.pdf-mode-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.65rem;
    background: #f8fafc;
    padding: 0.45rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.pdf-mode-tab {
    border: 1px solid transparent;
    background: transparent;
    padding: 0.7rem 0.9rem;
    border-radius: 9px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.pdf-mode-tab strong { font-size: 0.88rem; color: #0f172a; display: flex; align-items: center; gap: 0.45rem; }
.pdf-mode-tab small { font-size: 0.76rem; color: #64748b; }
.pdf-mode-tab:hover { background: #ffffff; border-color: #e2e8f0; }
.pdf-mode-tab.active {
    background: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
}
.pdf-mode-tab.active strong { color: #dc2626; }

/* Selectable Preset Cards (Compress, Page Size, Formats) */
.pdf-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.85rem;
}
.pdf-preset-card {
    border: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: left;
}
.pdf-preset-card:hover {
    border-color: #fca5a5;
    transform: translateY(-2px);
}
.pdf-preset-card.active {
    border-color: #dc2626;
    background: #fff5f5;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.12);
}
.pdf-preset-card .preset-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}
.pdf-preset-card.active .preset-badge {
    background: #dc2626;
    color: #ffffff;
}

/* Split Studio Panes (Typesetter, Watermark, Form Filler, Add Pages) */
.pdf-split-studio {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.25rem;
    align-items: start;
}
.pdf-split-studio.form-layout {
    grid-template-columns: 1.35fr 0.65fr;
}

.pdf-panel-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.15rem;
}
.pdf-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Sortable File Queue (Merge PDF & Image-to-PDF) */
.pdf-file-deck {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.pdf-deck-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    cursor: grab;
    transition: all 0.18s ease;
}
.pdf-deck-item:hover {
    border-color: #fca5a5;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}
.pdf-deck-item.dragging {
    opacity: 0.5;
    border-style: dashed;
    border-color: #dc2626;
}
.pdf-deck-thumb {
    width: 44px;
    height: 54px;
    border-radius: 6px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.pdf-deck-thumb img,
.pdf-deck-thumb canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Visual Page Thumbnail Grid (Organizer, Split, Extractor, Delete, Rotator) */
.pdf-pages-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.pdf-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.9rem;
    padding: 1rem;
    background: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 16px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    max-height: 540px;
    overflow-y: auto;
}
.pdf-page-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    position: relative;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}
.pdf-page-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}
.pdf-page-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}
.pdf-page-card.marked-delete {
    border-color: #ef4444;
    background: #fef2f2;
    opacity: 0.72;
}
.pdf-page-card.marked-delete .pdf-page-thumb::after {
    content: "\f2ed";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(239, 68, 68, 0.45);
    color: #ffffff;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdf-page-thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdf-page-thumb canvas,
.pdf-page-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.pdf-page-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    z-index: 2;
}
.pdf-page-card.selected .pdf-page-badge { background: #2563eb; }
.pdf-page-card.marked-delete .pdf-page-badge { background: #dc2626; }
.pdf-page-actions {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}
.pdf-page-actions button {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    border-radius: 6px;
    padding: 0.22rem 0.42rem;
    font-size: 0.72rem;
    cursor: pointer;
}
.pdf-page-actions button:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Live Canvas Preview Stage (Watermark, Page Numbering, Text-to-PDF, Form Filler) */
.pdf-preview-stage {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    position: relative;
    overflow: auto;
}
.pdf-paper-mock {
    background: #ffffff;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 210 / 297;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdf-paper-mock canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pdf-watermark-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 800;
    font-family: Helvetica, Arial, sans-serif;
    user-select: none;
}
.pdf-pagenum-overlay {
    position: absolute;
    pointer-events: none;
    font-weight: 600;
    font-family: Helvetica, Arial, sans-serif;
    padding: 0.45rem 0.75rem;
}

/* 6-Point Position Matrix */
.pdf-pos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}
.pdf-pos-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 8px;
    padding: 0.55rem 0.4rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}
.pdf-pos-btn.active {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

/* Interactive Form & Annotation Canvas */
.pdf-form-canvas-wrap {
    position: relative;
    display: inline-block;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    cursor: crosshair;
    max-width: 100%;
}
.pdf-form-canvas-wrap canvas {
    display: block;
    max-width: 100%;
    height: auto;
}
.pdf-ann-pin {
    position: absolute;
    transform: translate(-4px, -50%);
    background: rgba(254, 242, 242, 0.9);
    border: 1px dashed #dc2626;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    z-index: 5;
}
.pdf-ann-pin:hover {
    background: #fee2e2;
}

/* Compression Comparison Meter & Password Strength Bar */
.pdf-compare-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin: 0.65rem 0;
}
.pdf-compare-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.pdf-pwd-meter {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.45rem;
}
.pdf-pwd-meter-fill {
    height: 100%;
    width: 0%;
    transition: all 0.25s ease;
}

/* Image Output Gallery */
.pdf-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
    text-align: left;
}
.pdf-gallery-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.pdf-gallery-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 6px;
    background: #f8fafc;
}

/* Quick Chip Pills */
.pdf-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.pdf-chip-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.pdf-chip-btn:hover,
.pdf-chip-btn.active {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

@media (max-width: 900px) {
    .pdf-split-studio,
    .pdf-split-studio.form-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .pdf-pages-grid {
        grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
        padding: 0.65rem;
    }
    .pdf-flow-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   4. THEME: FINANCE & BUSINESS (Fintech Wealth Cockpit)
   ========================================================================== */
.tool-workspace.theme-finance,
.tool-workspace.theme-business {
    border-top: 4px solid #10b981;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
}

.theme-finance .fin-hero-stat,
.theme-business .fin-hero-stat {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.14));
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08);
}

.theme-finance .fin-hero-stat-val,
.theme-business .fin-hero-stat-val {
    font-size: 2.25rem;
    font-weight: 800;
    color: #065f46;
    letter-spacing: -0.03em;
}

.theme-finance .fin-hero-stat-label,
.theme-business .fin-hero-stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.theme-finance .fin-breakdown-bar,
.theme-business .fin-breakdown-bar {
    height: 14px;
    border-radius: 9999px;
    background: #e2e8f0;
    display: flex;
    overflow: hidden;
    margin: 1rem 0;
}

.theme-finance .fin-bar-principal,
.theme-business .fin-bar-principal {
    background: #2563eb;
    height: 100%;
    transition: width 0.4s ease;
}

.theme-finance .fin-bar-interest,
.theme-business .fin-bar-interest {
    background: #10b981;
    height: 100%;
    transition: width 0.4s ease;
}

.theme-finance .btn-primary,
.theme-business .btn-primary {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35) !important;
    border: none !important;
    font-weight: 700 !important;
}

.theme-finance .btn-primary:hover,
.theme-business .btn-primary:hover {
    background: linear-gradient(135deg, #047857, #059669) !important;
}

.fin-desk { display: flex; flex-direction: column; gap: 1rem; }

.fin-desk-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #a7f3d0;
}

.fin-desk-badges { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.fin-domain-pill {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 0.24rem 0.65rem;
    border-radius: 999px;
}
.fin-desk-name { font-size: 0.95rem; color: #0f172a; }
.fin-desk-actions { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.fin-currency-sel { width: auto !important; min-width: 82px; font-weight: 700; padding: 0.3rem 0.6rem !important; font-size: 0.82rem !important; border-color: #a7f3d0 !important; background: #ecfdf5 !important; color: #065f46 !important; }

.fin-input-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
}

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

.fin-chip-row { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.75rem; }
.fin-chip-label { font-size: 0.76rem; font-weight: 700; color: #64748b; text-transform: uppercase; }
.fin-chip { background: #ffffff; border: 1px solid #cbd5e1; color: #0f172a; border-radius: 999px; padding: 0.22rem 0.65rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.fin-chip:hover { border-color: #10b981; color: #047857; background: #ecfdf5; }

.fin-error-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 10px;
    color: #991b1b;
    font-weight: 600;
    font-size: 0.9rem;
}

.fin-execute-btn { font-size: 1.02rem; padding: 0.85rem 1.4rem; border-radius: 10px; }

.fin-results-shell {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.06);
}
.fin-results-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.7rem; margin-bottom: 1rem; border-bottom: 1px solid #e2e8f0; flex-wrap: wrap; gap: 0.5rem; }
.fin-results-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: #0f172a; }

.theme-finance .fin-hero-stat.fin-hero-left { text-align: left; padding: 1rem 1.15rem; margin-bottom: 1rem; }
.theme-finance .fin-hero-stat.fin-hero-left .fin-hero-stat-val { font-size: 1.4rem; margin-top: 0.2rem; }

.fin-split-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 1rem; }
.fin-split-legend { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.82rem; color: #334155; }
.fin-dot-a, .fin-dot-b { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.3rem; }
.fin-dot-a { background: #2563eb; }
.fin-dot-b { background: #10b981; }
.fin-split-card .fin-breakdown-bar { margin: 0.5rem 0 0; }

.fin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 0.75rem; }
.fin-stat-tile { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 9px; padding: 0.75rem 0.9rem; }
.fin-stat-k { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; margin-bottom: 0.25rem; }
.fin-stat-v { font-size: 1.04rem; font-weight: 800; color: #0f172a; font-family: var(--font-mono, monospace); word-break: break-word; }

.fin-ledger-wrap { margin-top: 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.9rem 1rem; }
.fin-ledger-title { font-size: 0.84rem; font-weight: 700; color: #0f172a; margin-bottom: 0.55rem; }
.fin-table-scroll { overflow-x: auto; max-height: 250px; overflow-y: auto; border: 1px solid #cbd5e1; border-radius: 8px; background: #ffffff; }
.fin-ledger-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; font-family: var(--font-mono, monospace); }
.fin-ledger-table th { background: #ecfdf5; color: #065f46; text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #a7f3d0; font-size: 0.72rem; position: sticky; top: 0; }
.fin-ledger-table td { padding: 0.45rem 0.75rem; border-bottom: 1px solid #f1f5f9; color: #1e293b; }

.biz-suite { display: flex; flex-direction: column; gap: 1rem; }
.biz-suite-topbar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.65rem;
    padding-bottom: 0.75rem; border-bottom: 1px dashed #a7f3d0;
}
.biz-suite-badges { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.biz-domain-pill {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; padding: 0.24rem 0.65rem; border-radius: 999px;
}
.biz-suite-name { font-size: 0.95rem; color: #0f172a; }
.biz-suite-actions { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.biz-currency-sel { width: auto !important; min-width: 82px; font-weight: 700; padding: 0.3rem 0.6rem !important; font-size: 0.82rem !important; border-color: #a7f3d0 !important; background: #ecfdf5 !important; color: #065f46 !important; }

.biz-input-panel { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.15rem 1.25rem; }
.biz-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.biz-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }

.biz-party-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.85rem; }
.biz-party-title { font-size: 0.82rem; font-weight: 700; color: #0f172a; margin-bottom: 0.55rem; }

.biz-items-block { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px dashed #cbd5e1; }
.biz-items-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.65rem; flex-wrap: wrap; gap: 0.5rem; }
.biz-item-row { display: grid; grid-template-columns: 3fr 85px 115px 34px; gap: 0.45rem; align-items: center; margin-bottom: 0.5rem; }
.biz-del-item {
    height: 36px; border: 1px solid #fecaca; background: #fef2f2; color: #dc2626;
    border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.biz-del-item:hover { background: #fee2e2; }

.biz-timesheet-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.45rem; }
.biz-timesheet-grid div span { display: block; font-size: 0.74rem; font-weight: 700; color: #475569; margin-bottom: 0.25rem; text-align: center; }

.biz-chip-row { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.75rem; }
.biz-chip-label { font-size: 0.76rem; font-weight: 700; color: #64748b; text-transform: uppercase; }
.biz-chip { background: #ffffff; border: 1px solid #cbd5e1; color: #0f172a; border-radius: 999px; padding: 0.22rem 0.65rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.biz-chip:hover { border-color: #10b981; color: #047857; background: #ecfdf5; }

.biz-error-banner {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem;
    background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid #dc2626;
    border-radius: 10px; color: #991b1b; font-weight: 600; font-size: 0.9rem;
}
.biz-execute-btn { font-size: 1.02rem; padding: 0.85rem 1.4rem; border-radius: 10px; }

.biz-results-shell { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 12px; padding: 1.25rem; box-shadow: 0 8px 24px rgba(16, 185, 129, 0.06); }
.biz-results-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.7rem; margin-bottom: 1rem; border-bottom: 1px solid #e2e8f0; flex-wrap: wrap; gap: 0.5rem; }
.biz-results-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: #0f172a; }

.theme-business .fin-hero-stat.biz-hero-left { text-align: left; padding: 1rem 1.15rem; margin-bottom: 1rem; }
.theme-business .fin-hero-stat.biz-hero-left .fin-hero-stat-val { font-size: 1.4rem; margin-top: 0.2rem; }

.biz-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 0.75rem; }
.biz-stat-tile { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 9px; padding: 0.75rem 0.9rem; }
.biz-stat-k { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; margin-bottom: 0.25rem; }
.biz-stat-v { font-size: 1.04rem; font-weight: 800; color: #0f172a; font-family: var(--font-mono, monospace); word-break: break-word; }

.biz-names-panel { margin-top: 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.9rem 1rem; }
.biz-names-title { font-size: 0.84rem; font-weight: 700; color: #0f172a; margin-bottom: 0.6rem; }
.biz-names-chips { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.biz-name-chip { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0.38rem 0.75rem; font-weight: 700; font-size: 0.86rem; color: #0f172a; cursor: pointer; }
.biz-name-chip:hover { border-color: #10b981; background: #ecfdf5; color: #065f46; }

.biz-preview-wrap { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed #cbd5e1; }
.biz-preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; flex-wrap: wrap; gap: 0.5rem; }
.biz-preview-title { margin: 0; font-size: 1rem; font-weight: 700; color: #0f172a; }

/* ==========================================================================
   5. THEME: DESIGN & COLOR (Colorist Creative Studio)
   ========================================================================== */
.tool-workspace.theme-design {
    border-top: 4px solid #ec4899;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
}

.theme-design .design-swatch-hero {
    height: 110px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.25rem;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.theme-design .btn-primary {
    background: linear-gradient(135deg, #ec4899, #8b5cf6) !important;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.35) !important;
    border: none !important;
    font-weight: 700 !important;
}

.theme-design .btn-primary:hover {
    background: linear-gradient(135deg, #db2777, #7c3aed) !important;
}

.theme-design .des-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

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

.theme-design .des-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.theme-design .des-panel {
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    border-radius: 12px;
    padding: 1.15rem;
}

.theme-design .des-swatch-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.theme-design .des-swatch-pill {
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(15, 23, 42, 0.15);
    cursor: pointer;
}

/* ==========================================================================
   6. THEME: HEALTH & FITNESS (Vitality & Medical Lab)
   ========================================================================== */
.tool-workspace.theme-health {
    border-top: 4px solid #0284c7;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
}

.theme-health .hlt-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.theme-health .health-unit-pills {
    display: inline-flex;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.theme-health .health-unit-pill {
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-health .health-unit-pill.active {
    background: #ffffff;
    color: #0284c7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.theme-health .health-gauge-container {
    padding: 1rem 0;
    margin: 1rem 0;
}

.theme-health .health-gauge-bar {
    height: 16px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #38bdf8 0%, #10b981 35%, #f59e0b 70%, #ef4444 100%);
    position: relative;
    margin-bottom: 0.5rem;
}

.theme-health .health-gauge-pointer {
    position: absolute;
    top: -8px;
    width: 4px;
    height: 32px;
    background: #0f172a;
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-health .health-gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.theme-health .btn-primary {
    background: linear-gradient(135deg, #0284c7, #10b981) !important;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35) !important;
    border: none !important;
    font-weight: 700 !important;
}

.theme-health .btn-primary:hover {
    background: linear-gradient(135deg, #0369a1, #059669) !important;
}

/* ==========================================================================
   7. THEME: CALCULATORS (Precision Math)
   ========================================================================== */
.tool-workspace.theme-calculators {
    border-top: 4px solid #2563eb;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

.theme-calculators .calc-formula-banner {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-left: 4px solid #2563eb;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-family: var(--font-mono, monospace);
    font-size: 0.95rem;
    color: #1e40af;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-calculators .calc-hero-answer {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: -0.02em;
}

.theme-calculators .btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
    border: none !important;
    font-weight: 700 !important;
}

.calc-bench {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc-bench-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #cbd5e1;
}

.calc-bench-title-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.calc-domain-pill {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.calc-bench-name {
    font-size: 0.95rem;
    color: #0f172a;
}

.calc-bench-actions {
    display: flex;
    gap: 0.45rem;
}

.calc-panel {
    background: #f8fafc;
    background-image: radial-gradient(#cbd5e1 0.65px, transparent 0.65px);
    background-size: 16px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
}

.calc-pill-tabs {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.calc-pill-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.calc-pill-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.calc-equation-strip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.calc-eq-word { font-size: 0.92rem; color: #334155; font-weight: 600; }
.calc-eq-sym { font-size: 1.2rem; font-weight: 800; color: #1d4ed8; font-family: var(--font-mono, monospace); }
.calc-num-xs { width: 82px !important; }
.calc-num-sm { width: 110px !important; }
.calc-num-md { width: 145px !important; }

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

.calc-chip-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}

.calc-chip-label { font-size: 0.78rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }

.calc-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.calc-chip:hover { border-color: #2563eb; color: #1d4ed8; background: #eff6ff; }

.calc-helper-note { font-size: 0.86rem; color: #475569; margin: 0 0 0.9rem; }

.calc-fraction-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.calc-frac-stack { display: flex; flex-direction: column; gap: 0.4rem; width: 96px; }
.calc-frac-bar { height: 2px; background: #1e3a8a; border-radius: 2px; }
.calc-frac-op-wrap { width: 76px; }
.calc-frac-op-wrap select { font-size: 1.25rem; font-weight: 800; color: #1d4ed8; }

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

.calc-lcd-tag { font-size: 0.74rem; font-weight: 700; color: #1e40af; letter-spacing: 0.05em; }
.calc-angle-switch { display: flex; gap: 0.75rem; font-size: 0.82rem; font-weight: 700; color: #334155; }
.calc-angle-switch label { display: flex; align-items: center; gap: 0.3rem; cursor: pointer; }

.calc-lcd-screen {
    background: #0f172a !important;
    color: #93c5fd !important;
    border: 2px solid #1e3a8a !important;
    border-radius: 10px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    padding: 0.85rem 1rem !important;
    letter-spacing: 0.02em;
}

.calc-keypad-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.calc-key {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.6rem 0.25rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 1px 0 #cbd5e1;
}

.calc-key:hover { background: #eff6ff; border-color: #93c5fd; }
.calc-key-fn { background: #eff6ff; color: #1e40af; font-size: 0.84rem; }
.calc-key-op { background: #dbeafe; color: #1d4ed8; }
.calc-key-warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.calc-key-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.calc-key-eq { background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #ffffff; border: none; }
.calc-key-wide { grid-column: span 2; }

.calc-system-rows { display: flex; flex-direction: column; gap: 0.7rem; }
.calc-coeff-field { width: 92px; }
.calc-coeff-field label { display: block; font-size: 0.75rem; font-weight: 700; color: #64748b; margin-bottom: 0.2rem; text-align: center; }

.calc-checkbox-row { display: flex; gap: 1.4rem; margin-top: 0.8rem; flex-wrap: wrap; }
.calc-check-label { display: flex; align-items: center; gap: 0.45rem; font-size: 0.86rem; font-weight: 600; color: #334155; cursor: pointer; }

.calc-dataset-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.45rem; flex-wrap: wrap; gap: 0.4rem; }
.calc-dataset-count { font-size: 0.76rem; font-weight: 700; background: #dbeafe; color: #1e40af; padding: 0.2rem 0.6rem; border-radius: 999px; }

.calc-input-group { display: flex; align-items: stretch; }
.calc-currency-sel { width: 64px !important; flex: 0 0 64px; border-right: none !important; border-radius: var(--radius-sm, 8px) 0 0 var(--radius-sm, 8px) !important; font-weight: 700; text-align: center; }
.calc-input-group input { border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0 !important; }

.calc-error-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 10px;
    color: #991b1b;
    font-size: 0.9rem;
    font-weight: 600;
}

.calc-execute-btn { font-size: 1.02rem; padding: 0.85rem 1.4rem; border-radius: 10px; }

.calc-results-shell {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.calc-results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.calc-results-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: #0f172a; }

.theme-calculators .calc-hero-answer.calc-hero-left {
    text-align: left;
    font-size: 1.25rem;
    padding: 0.95rem 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    color: #1e3a8a;
}

.calc-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 0.75rem; }
.calc-stat-tile { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 9px; padding: 0.75rem 0.9rem; }
.calc-stat-k { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; margin-bottom: 0.25rem; }
.calc-stat-v { font-size: 1.02rem; font-weight: 700; color: #0f172a; font-family: var(--font-mono, monospace); word-break: break-word; }

.calc-visual-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.9rem; margin-bottom: 1rem; }
.calc-visual-title { font-size: 0.82rem; font-weight: 700; color: #334155; margin-bottom: 0.6rem; }
.calc-parabola-svg { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; }
.calc-visual-legend { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; font-size: 0.78rem; color: #475569; margin-top: 0.5rem; }
.dot-blue, .dot-green { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.3rem; }
.dot-blue { background: #2563eb; }
.dot-green { background: #16a34a; }

.calc-split-bar { display: flex; height: 28px; border-radius: 8px; overflow: hidden; font-size: 0.78rem; font-weight: 700; color: #ffffff; }
.calc-split-net { background: #2563eb; display: flex; align-items: center; justify-content: center; }
.calc-split-tax { background: #0ea5e9; display: flex; align-items: center; justify-content: center; }

.calc-subblock { margin-top: 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.9rem 1rem; }
.calc-subblock-title { font-size: 0.84rem; font-weight: 700; color: #0f172a; margin-bottom: 0.6rem; }
.calc-steps-list { margin: 0; padding-left: 1.2rem; font-size: 0.88rem; color: #334155; line-height: 1.65; }

.calc-rng-chips { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.calc-rng-chip { background: #2563eb; color: #ffffff; font-family: var(--font-mono, monospace); font-weight: 700; font-size: 0.95rem; padding: 0.35rem 0.75rem; border-radius: 8px; }

.calc-table-wrap { overflow-x: auto; max-height: 240px; overflow-y: auto; border: 1px solid #cbd5e1; border-radius: 8px; background: #ffffff; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; font-family: var(--font-mono, monospace); }
.calc-table th { background: #eff6ff; color: #1e40af; text-align: left; padding: 0.5rem 0.7rem; font-size: 0.72rem; border-bottom: 1px solid #cbd5e1; position: sticky; top: 0; }
.calc-table td { padding: 0.45rem 0.7rem; border-bottom: 1px solid #f1f5f9; color: #1e293b; }

/* ==========================================================================
   8. THEME: SECURITY & PRIVACY (Cyber Shield Vault)
   ========================================================================== */
.tool-workspace.theme-security {
    background: #090d16;
    border: 1px solid #1e293b;
    border-top: 4px solid #14b8a6;
    border-radius: 16px;
    color: #f1f5f9;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(20, 184, 166, 0.12);
}

.theme-security .form-control {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

.theme-security .card {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

.theme-security .cyber-password-display {
    background: #020617;
    border: 1px solid #14b8a6;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-family: var(--font-mono, monospace);
    font-size: 1.35rem;
    font-weight: 700;
    color: #2dd4bf;
    word-break: break-all;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.15);
}

.theme-security .btn-primary {
    background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.35) !important;
    border: none !important;
    color: #042f2e !important;
    font-weight: 700 !important;
}

.theme-security .btn-secondary {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

/* ==========================================================================
   9. THEME: UNIT CONVERTERS (Exchange Cockpit)
   ========================================================================== */
.tool-workspace.theme-unit-converters {
    border-top: 4px solid #f59e0b;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.08);
}

.theme-unit-converters .converter-cockpit-box {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.75rem;
}

.theme-unit-converters .converter-swap-orb {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    transition: transform 0.3s ease;
}

.theme-unit-converters .converter-swap-orb:hover {
    transform: rotate(180deg) scale(1.1);
}

.theme-unit-converters .btn-primary {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35) !important;
    border: none !important;
    font-weight: 700 !important;
}

.conv-studio { display: flex; flex-direction: column; gap: 1rem; }

.conv-studio-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #fed7aa;
}

.conv-studio-badges { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.conv-domain-pill {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
    padding: 0.24rem 0.65rem;
    border-radius: 999px;
}

.conv-formula-chip {
    font-size: 0.8rem;
    font-family: var(--font-mono, monospace);
    color: #78350f;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 0.22rem 0.6rem;
    border-radius: 8px;
}

.conv-studio-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.conv-storage-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.conv-unit-selectors { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 0.75rem; flex: 1; }

.conv-std-toggle { display: inline-flex; background: #ffffff; border: 1px solid #fcd34d; border-radius: 9px; padding: 0.2rem; gap: 0.25rem; }
.conv-std-btn { border: none; background: transparent; color: #78350f; font-size: 0.78rem; font-weight: 700; padding: 0.35rem 0.7rem; border-radius: 7px; cursor: pointer; }
.conv-std-btn.active { background: #d97706; color: #ffffff; }

.conv-field-card { min-width: 0; }
.conv-unit-label { font-weight: 700; color: #1e293b; font-size: 0.85rem; margin-bottom: 0.4rem; display: block; }
.conv-big-input, .conv-big-output {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    padding: 0.75rem 0.95rem !important;
    border-radius: 10px !important;
}
.conv-big-output {
    background: #ffffff !important;
    border: 2px solid #fcd34d !important;
    color: #b45309 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.converter-swap-orb.is-reversed { transform: rotate(180deg); }

.conv-preset-row { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.conv-preset-label { font-size: 0.76rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }
.conv-preset-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 999px;
    padding: 0.24rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}
.conv-preset-chip:hover { border-color: #d97706; color: #b45309; background: #fffbeb; }

.conv-thermal-card { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 0.85rem 1rem; }
.conv-thermal-labels { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; font-weight: 600; color: #334155; margin-bottom: 0.45rem; flex-wrap: wrap; gap: 0.35rem; }
.conv-thermal-badge { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; padding: 0.15rem 0.55rem; border-radius: 999px; font-weight: 700; }
.conv-thermal-track { height: 10px; background: linear-gradient(90deg, #38bdf8, #34d399, #f59e0b, #ef4444); border-radius: 999px; overflow: hidden; position: relative; }
.conv-thermal-fill { height: 100%; background: rgba(15, 23, 42, 0.2); border-right: 3px solid #0f172a; transition: width 0.25s ease; }

.conv-error-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 10px;
    color: #991b1b;
    font-weight: 600;
    font-size: 0.9rem;
}

.conv-execute-btn { font-size: 1.02rem; padding: 0.85rem 1.4rem; border-radius: 10px; }

.conv-results-shell, .conv-ref-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.2rem;
}
.conv-results-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.7rem; margin-bottom: 0.9rem; border-bottom: 1px solid #e2e8f0; flex-wrap: wrap; gap: 0.5rem; }
.conv-results-title, .conv-ref-title { margin: 0 0 0.7rem; font-size: 1.02rem; font-weight: 700; color: #0f172a; }
.conv-results-head .conv-results-title { margin: 0; }

.conv-hero-answer {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #d97706;
    border-radius: 9px;
    padding: 0.95rem 1.1rem;
    font-size: 1.22rem;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.conv-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 0.75rem; }
.conv-stat-tile { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 9px; padding: 0.75rem 0.9rem; }
.conv-stat-k { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; margin-bottom: 0.25rem; }
.conv-stat-v { font-size: 1rem; font-weight: 700; color: #0f172a; font-family: var(--font-mono, monospace); word-break: break-word; }

.conv-table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.conv-ref-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.conv-ref-table th { background: #fffbeb; color: #92400e; text-align: left; padding: 0.55rem 0.85rem; border-bottom: 1px solid #fde68a; font-size: 0.78rem; text-transform: uppercase; }
.conv-ref-table td { padding: 0.5rem 0.85rem; border-bottom: 1px solid #f1f5f9; }
.conv-ref-in { font-weight: 600; color: #334155; }
.conv-ref-out { font-weight: 700; color: #b45309; font-family: var(--font-mono, monospace); }

/* ==========================================================================
   10. THEME: TEXT & WRITING (Editorial Ivory & Indigo Studio)
   ========================================================================== */
.tool-workspace.theme-text {
    border-top: 4px solid #4338ca;
    background: #fffdf9;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(67, 56, 202, 0.08);
    color: #0f172a;
}

.theme-text .btn-primary {
    background: linear-gradient(135deg, #4338ca, #4f46e5) !important;
    box-shadow: 0 4px 16px rgba(67, 56, 202, 0.28) !important;
    border: none !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.theme-text .btn-primary:hover {
    background: linear-gradient(135deg, #3730a3, #4338ca) !important;
}

.txt-flow-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    background: linear-gradient(135deg, #eef2ff, #fffbeb);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    margin-bottom: 1.15rem;
}

.txt-flow-pills,
.txt-live-kpis {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    font-size: 0.84rem;
    color: #334155;
}

.txt-live-kpis strong {
    color: #4338ca;
    font-weight: 800;
}

.txt-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
}

.txt-chip.accent {
    background: #4338ca;
    border-color: #4338ca;
    color: #ffffff;
}

.txt-chip.warn {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.txt-panel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 1.1rem;
    margin-top: 0.85rem;
}

.txt-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.txt-panel-title i {
    color: #4338ca;
    margin-right: 0.3rem;
}

.txt-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
    display: block;
}

.txt-editor-pad {
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0.95rem 1.1rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.txt-hint {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

.txt-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

#text-tool-app .txt-select-chip,
.txt-select-chip {
    padding: 0.46rem 0.78rem;
    border-radius: 8px;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

#text-tool-app .txt-select-chip:hover {
    border-color: #4338ca !important;
    color: #4338ca !important;
}

#text-tool-app .txt-select-chip.active {
    background: #4338ca !important;
    border-color: #4338ca !important;
    color: #ffffff !important;
}

.txt-preset-grid {
    display: grid;
    gap: 0.6rem;
}

#text-tool-app .txt-preset-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.78rem 0.85rem;
    border-radius: 10px;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    text-align: left;
    cursor: pointer;
}

#text-tool-app .txt-preset-card span {
    font-size: 0.76rem;
    color: #64748b;
}

#text-tool-app .txt-preset-card.active {
    background: #eef2ff !important;
    border-color: #4338ca !important;
    box-shadow: 0 0 0 1px #4338ca;
}

.txt-slug-preview-bar {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 9px;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    word-break: break-all;
}

.txt-slug-preview-bar span { color: #64748b; }
.txt-slug-preview-bar strong { color: #4338ca; }

.txt-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem;
    font-size: 0.86rem;
    color: #1e293b;
}

.txt-check-grid label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.txt-diff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.txt-diff-output {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    margin-top: 0.5rem;
}

.txt-diff-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-bottom: 1px solid #e2e8f0;
}

.txt-diff-cell {
    display: flex;
    gap: 0.45rem;
    padding: 0.35rem 0.6rem;
    border-right: 1px solid #e2e8f0;
    word-break: break-word;
    line-height: 1.5;
}

.txt-diff-cell.diff-del { background: #fef2f2; color: #991b1b; }
.txt-diff-cell.diff-add { background: #f0fdf4; color: #166534; }
.txt-diff-cell .diff-ln { min-width: 24px; color: #94a3b8; user-select: none; text-align: right; }
.txt-diff-cell .diff-sig { font-weight: 800; }

.txt-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.txt-kpi-tile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.9rem;
    text-align: center;
}

.txt-kpi-tile div { font-size: 0.78rem; color: #64748b; margin-bottom: 0.2rem; }
.txt-kpi-tile strong { font-size: 1.45rem; font-weight: 800; color: #0f172a; }

/* ==========================================================================
   11. THEME: AUDIO TOOLS (Sound Studio DAW)
   ========================================================================== */
.tool-workspace.theme-audio {
    background: #09090f;
    border: 1px solid #1e1b4b;
    border-top: 4px solid #8b5cf6;
    border-radius: 16px;
    color: #f8fafc;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(139, 92, 246, 0.15);
}

.theme-audio .form-control {
    background: #0f172a !important;
    border-color: #1e1b4b !important;
    color: #f1f5f9 !important;
}

.theme-audio .card,
.theme-audio .aud-card {
    background: #0f0e1c !important;
    border: 1px solid #1e1b4b !important;
    color: #f8fafc !important;
}

.theme-audio .aud-top-bar {
    background: #0f0e1c !important;
    border-color: #1e1b4b !important;
}

.theme-audio .btn-primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35) !important;
    border: none !important;
    font-weight: 700 !important;
}

.theme-audio .aud-dark-panel {
    background: #141229 !important;
    border: 1px solid #2e2559 !important;
    border-radius: 10px;
    color: #f8fafc !important;
}

/* ==========================================================================
   12. THEME: VIDEO TOOLS (Cinema Deck Studio)
   ========================================================================== */
.tool-workspace.theme-video {
    background: #09090b;
    border: 1px solid #27272a;
    border-top: 4px solid #e11d48;
    border-radius: 16px;
    color: #fafafa;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(225, 29, 72, 0.15);
}

.theme-video .form-control {
    background: #18181b !important;
    border-color: #27272a !important;
    color: #f4f4f5 !important;
}

.theme-video .card {
    background: #18181b !important;
    border-color: #27272a !important;
    color: #fafafa !important;
}

.theme-video .btn-primary {
    background: linear-gradient(135deg, #be123c, #e11d48) !important;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35) !important;
    border: none !important;
    font-weight: 700 !important;
}

.theme-video .vid-grid-2,
.theme-security .sec-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

/* ==========================================================================
   UNIFIED HIGH-CONTRAST DARK THEME POLISH & SECTION CENTERING
   Ensures all labels, descriptions, cards, file inputs, and headings are crisp
   across all dark studio themes (Video, Audio, AI, Security, Network, Image, Dev).
   ========================================================================== */
.tool-workspace.theme-developer,
.tool-workspace.theme-image-tools,
.tool-workspace.theme-security,
.tool-workspace.theme-audio,
.tool-workspace.theme-video,
.tool-workspace.theme-ai,
.tool-workspace.theme-network {
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-card: #111827;
    --bg-subtle: #0f172a;
    --border-color: #273248;
}

.theme-audio .form-label,
.theme-video .form-label,
.theme-ai .form-label,
.theme-security .form-label,
.theme-image-tools .form-label,
.theme-network .form-label,
.theme-developer .form-label,
.theme-audio label,
.theme-video label,
.theme-ai label,
.theme-security label,
.theme-network label {
    color: #e2e8f0 !important;
    font-weight: 600;
}

.theme-audio .text-muted,
.theme-video .text-muted,
.theme-ai .text-muted,
.theme-security .text-muted,
.theme-image-tools .text-muted,
.theme-network .text-muted,
.theme-developer .text-muted,
.theme-audio .form-text,
.theme-video .form-text,
.theme-ai .form-text,
.theme-security .form-text,
.theme-network .form-text,
.theme-video p,
.theme-audio p,
.theme-security p,
.theme-network p {
    color: #94a3b8 !important;
}

.theme-video .card,
.theme-audio .card,
.theme-audio .aud-card,
.theme-ai .card,
.theme-ai .ai-card,
.theme-security .card,
.theme-network .card {
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 14px !important;
    padding: 1.6rem !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32) !important;
}

.theme-video .card {
    background: #141419 !important;
    border-color: #27272f !important;
}

.theme-video .form-control {
    background: #0a0a0e !important;
    border-color: #2e2e38 !important;
    color: #f4f4f5 !important;
}

.theme-audio .card,
.theme-audio .aud-card {
    background: #111022 !important;
    border-color: #26204d !important;
}

.theme-audio .form-control {
    background: #090913 !important;
    border-color: #26204d !important;
    color: #f1f5f9 !important;
}

.theme-security .card {
    background: #111827 !important;
    border-color: #243044 !important;
}

.theme-security .form-control {
    background: #080c15 !important;
    border-color: #243044 !important;
}

.theme-network .card {
    background: #0b1220 !important;
    border-color: #1e293b !important;
}

.theme-network .form-control {
    background: #050914 !important;
    border-color: #1e293b !important;
}

.theme-ai .card,
.theme-ai .ai-card {
    background: #15122b !important;
    border-color: #322469 !important;
}

.theme-ai .form-control {
    background: #0c0a1a !important;
    border-color: #322469 !important;
}

.theme-video select.form-control option,
.theme-audio select.form-control option,
.theme-ai select.form-control option,
.theme-security select.form-control option,
.theme-network select.form-control option,
.theme-developer select.form-control option,
.theme-image-tools select.form-control option {
    background: #111827;
    color: #f8fafc;
}

.theme-video input[type="file"].form-control,
.theme-audio input[type="file"].form-control,
.theme-security input[type="file"].form-control,
.theme-image-tools input[type="file"].form-control {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1.5px dashed rgba(148, 163, 184, 0.35) !important;
    color: #e2e8f0 !important;
}

.theme-video input[type="file"].form-control::file-selector-button {
    background: linear-gradient(135deg, #be123c, #e11d48);
    color: #ffffff;
}

.theme-audio input[type="file"].form-control::file-selector-button {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #ffffff;
}

.theme-security input[type="file"].form-control::file-selector-button {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #042f2e;
}

.theme-video #vid-media-preview,
.theme-audio #aud-waveform-img-box {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   13. THEME: AI & SMART TOOLS (Neural AI Studio)
   ========================================================================== */
.tool-workspace.theme-ai {
    background: #0d0f1a;
    border: 1px solid #2e1065;
    border-top: 4px solid #8b5cf6;
    border-radius: 16px;
    color: #f8fafc;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(139, 92, 246, 0.2);
}

.theme-ai .form-control {
    background: #141126 !important;
    border-color: #2e1065 !important;
    color: #f8fafc !important;
}

.theme-ai .card,
.theme-ai .ai-card {
    background: #141126 !important;
    border: 1px solid #2e1065 !important;
    color: #f8fafc !important;
}

.theme-ai .ai-top-bar {
    background: #141126 !important;
    border-color: #2e1065 !important;
}

.theme-ai .ai-prompt-chip {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-ai .ai-prompt-chip:hover {
    background: rgba(139, 92, 246, 0.35);
    color: #ffffff;
}

.theme-ai .btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4) !important;
    border: none !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   14. THEME: SEO & SOCIAL MEDIA (Growth SERP Lab)
   ========================================================================== */
.tool-workspace.theme-seo-social {
    border-top: 4px solid #2563eb;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

.theme-seo-social .serp-preview-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
    max-width: 640px;
}

.theme-seo-social .serp-preview-title {
    color: #1a0dab;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.2rem;
    cursor: pointer;
}

.theme-seo-social .serp-preview-url {
    color: #202124;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.theme-seo-social .serp-preview-desc {
    color: #4d5156;
    font-size: 0.88rem;
    line-height: 1.5;
}

.theme-seo-social .btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
    border: none !important;
    font-weight: 700 !important;
}

.theme-seo-social .seo-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.theme-seo-social .seo-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.15rem;
}

.theme-seo-social .seo-social-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    max-width: 520px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.theme-seo-social .seo-social-banner {
    height: 120px;
    background: linear-gradient(135deg, #1d4ed8, #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
}

.theme-seo-social .seo-social-body {
    padding: 0.9rem 1.1rem;
}

.theme-seo-social .seo-faq-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.65rem;
    align-items: start;
    margin-bottom: 0.65rem;
}

.theme-seo-social .soc-panel {
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    border-radius: 12px;
    padding: 1.15rem;
}

.theme-seo-social .soc-canvas-stage {
    background: #0f172a;
    border-radius: 12px;
    padding: 1.25rem;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.theme-seo-social .soc-safe-box {
    position: relative;
    border: 2px dashed #ec4899;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(59, 130, 246, 0.14));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.theme-seo-social .soc-bio-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.65rem;
}

.theme-seo-social .soc-bio-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
}

/* ==========================================================================
   15. THEME: DATETIME & PLANNING (Chronos Time Station)
   ========================================================================== */
.tool-workspace.theme-datetime {
    border-top: 4px solid #f97316;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.08);
}

.theme-datetime .chronos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.theme-datetime .chronos-card {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 12px;
    padding: 1.25rem 0.75rem;
    text-align: center;
}

.theme-datetime .chronos-val {
    font-size: 2rem;
    font-weight: 800;
    color: #c2410c;
    line-height: 1.1;
}

.theme-datetime .chronos-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9a3412;
    text-transform: uppercase;
    margin-top: 0.35rem;
}

.theme-datetime .btn-primary {
    background: linear-gradient(135deg, #ea580c, #f97316) !important;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35) !important;
    border: none !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   16. THEME: NETWORK & INTERNET (NetOps NOC Console)
   ========================================================================== */
.tool-workspace.theme-network {
    background: #020617;
    border: 1px solid #1e293b;
    border-top: 4px solid #0284c7;
    border-radius: 16px;
    color: #f8fafc;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(2, 132, 199, 0.15);
}

.theme-network .form-control {
    background: #090d16 !important;
    border-color: #1e293b !important;
    color: #38bdf8 !important;
    font-family: var(--font-mono, monospace) !important;
}

.theme-network .card {
    background: #090d16 !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
}

.theme-network .btn-primary {
    background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
    color: #041427 !important;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35) !important;
    border: none !important;
    font-weight: 700 !important;
}

.theme-network .form-label,
.theme-network label,
.theme-network .text-muted {
    color: #cbd5e1 !important;
}

.theme-network .net-grid-2,
.theme-datetime .dt-grid-2,
.theme-education .edu-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

/* ==========================================================================
   17. THEME: EDUCATION & RESEARCH (Scholarly Campus)
   ========================================================================== */
.tool-workspace.theme-education {
    border-top: 4px solid #4338ca;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(67, 56, 202, 0.08);
}

.theme-education .btn-primary {
    background: linear-gradient(135deg, #4338ca, #6366f1) !important;
    box-shadow: 0 4px 16px rgba(67, 56, 202, 0.35) !important;
    border: none !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   18. THEME: DOCUMENT & FILE TOOLS (Editorial Mint-Teal Desk)
   ========================================================================== */
.tool-workspace.theme-document {
    border-top: 4px solid #0f766e;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 118, 110, 0.08);
    color: #0f172a;
}

.theme-document .btn-primary {
    background: linear-gradient(135deg, #0f766e, #0d9488) !important;
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.28) !important;
    border: none !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.theme-document .btn-primary:hover {
    background: linear-gradient(135deg, #115e59, #0f766e) !important;
}

/* 18B. Document & File Studio Layouts */
.doc-flow-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
    border: 1px solid #99f6e4;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.doc-flow-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.doc-format-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.78rem;
}

.doc-format-chip.target {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

.doc-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.doc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 600;
}

.doc-chip.teal {
    background: #ccfbf1;
    border-color: #5eead4;
    color: #115e59;
}

.doc-workbench-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.doc-panel-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    padding: 1.15rem;
    color: #0f172a;
}

.doc-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.8rem;
}

.doc-panel-title i {
    color: #0f766e;
    margin-right: 0.3rem;
}

.doc-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
    display: block;
}

.doc-code-editor {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    font-size: 0.84rem;
    line-height: 1.5;
}

.doc-editor-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.doc-compact-drop {
    padding: 1.25rem 1rem !important;
}

.doc-compact-drop i {
    font-size: 1.7rem !important;
    color: #0f766e !important;
}

.doc-compact-drop h3 {
    font-size: 0.95rem !important;
}

.doc-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
}

#doc-tool-app .doc-select-chip,
.doc-select-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
}

#doc-tool-app .doc-select-chip:hover {
    border-color: #0f766e !important;
    color: #0f766e !important;
}

#doc-tool-app .doc-select-chip.active {
    background: #0f766e !important;
    border-color: #0f766e !important;
    color: #ffffff !important;
}

.doc-preset-grid {
    display: grid;
    gap: 0.65rem;
}

#doc-tool-app .doc-preset-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.85rem;
    border-radius: 10px;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    text-align: left;
    cursor: pointer;
}

#doc-tool-app .doc-preset-card i {
    color: #0f766e;
    margin-bottom: 0.15rem;
}

#doc-tool-app .doc-preset-card span {
    font-size: 0.76rem;
    color: #64748b;
}

#doc-tool-app .doc-preset-card.active {
    background: #ecfdf5 !important;
    border-color: #0f766e !important;
    box-shadow: 0 0 0 1px #0f766e;
}

.doc-rendered-preview,
.doc-visual-preview-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 1rem;
    min-height: 220px;
    max-height: 360px;
    overflow: auto;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #0f172a;
}

.doc-mini-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #334155;
}

.doc-mini-checklist i {
    color: #0f766e;
    margin-right: 0.35rem;
}

.doc-hint {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.doc-file-deck {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.doc-file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 0.55rem 0.8rem;
}

.doc-rename-preview {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.8rem;
}

.doc-rename-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.doc-verify-ok {
    padding: 0.7rem 1rem;
    background: #dcfce7;
    border: 1px solid #16a34a;
    color: #166534;
    border-radius: 9px;
    font-weight: 700;
    font-size: 0.86rem;
}

.doc-verify-fail {
    padding: 0.7rem 1rem;
    background: #fee2e2;
    border: 1px solid #dc2626;
    color: #991b1b;
    border-radius: 9px;
    font-weight: 700;
    font-size: 0.86rem;
}

.doc-out-tab.active {
    background: #0f766e !important;
    border-color: #0f766e !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Responsive Refinements for all Themed Workspaces
   ========================================================================== */
@media (max-width: 768px) {
    .biz-grid-2,
    .biz-grid-3,
    .fin-grid-2,
    .fin-grid-3,
    .calc-grid-2,
    .calc-grid-3,
    .doc-workbench-grid,
    .txt-diff-grid,
    .txt-diff-row {
        grid-template-columns: 1fr;
    }
    .biz-item-row {
        grid-template-columns: 1fr 70px 85px 32px;
    }
    .biz-timesheet-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .calc-stat-grid,
    .fin-stat-grid,
    .biz-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .calc-panel,
    .fin-input-panel,
    .biz-input-panel {
        padding: 0.9rem;
    }
    .doc-preset-grid,
    .txt-preset-grid {
        grid-template-columns: 1fr !important;
    }
    .theme-unit-converters .converter-cockpit-box {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    .conv-unit-selectors {
        grid-template-columns: 1fr;
    }
    .conv-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .theme-unit-converters .converter-swap-orb {
        margin: 0 auto;
    }
    .theme-developer .ide-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }
    .theme-developer .ide-tab {
        margin-bottom: 0;
        border-radius: 6px;
    }
    .theme-developer .ide-body {
        padding: 1rem;
    }
    .theme-developer .dev-split-grid,
    .theme-developer .dev-regex-grid,
    .theme-developer .mdev-3col-grid {
        grid-template-columns: 1fr;
    }
    .theme-developer .mdev-cron-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .theme-seo-social .seo-grid-2,
    .theme-seo-social .seo-faq-row,
    .theme-design .des-grid-2,
    .theme-design .des-grid-3 {
        grid-template-columns: 1fr;
    }
    .theme-design .des-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .theme-video .vid-grid-2,
    .theme-security .sec-grid-2,
    .theme-network .net-grid-2,
    .theme-datetime .dt-grid-2,
    .theme-education .edu-grid-2,
    .theme-health .hlt-grid-2 {
        grid-template-columns: 1fr;
    }
    .theme-developer .ide-status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }
    .theme-video .card,
    .theme-audio .card,
    .theme-audio .aud-card,
    .theme-ai .card,
    .theme-ai .ai-card,
    .theme-security .card,
    .theme-network .card {
        padding: 1rem !important;
    }
}

@media (max-width: 540px) {
    .theme-developer .mdev-cron-grid,
    .theme-design .des-grid-4 {
        grid-template-columns: 1fr;
    }
    .tool-workspace [id$="-tool-app"] .btn-sm {
        flex: 1 1 auto;
        justify-content: center;
    }
}
