/**
 * ScreenCapture Pro - Premium Enterprise UI/UX Design System
 * Inspired by monday.com & Modern SaaS Design Standards
 * Author: Ir. Roland MANTAMA
 */

:root {
    --cap-primary: #4f46e5;
    --cap-primary-hover: #4338ca;
    --cap-primary-light: #eef2ff;
    --cap-primary-border: #c7d2fe;
    --cap-success: #10b981;
    --cap-success-hover: #059669;
    --cap-danger: #ef4444;
    --cap-danger-hover: #dc2626;
    --cap-warning: #f59e0b;
    --cap-dark: #0f172a;
    --cap-slate-800: #1e293b;
    --cap-slate-700: #334155;
    --cap-slate-600: #475569;
    --cap-slate-500: #64748b;
    --cap-slate-400: #94a3b8;
    --cap-slate-200: #e2e8f0;
    --cap-slate-100: #f1f5f9;
    --cap-slate-50: #f8fafc;
    --cap-radius-sm: 6px;
    --cap-radius-md: 10px;
    --cap-radius-lg: 14px;
    --cap-radius-full: 9999px;
    --cap-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --cap-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --cap-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --cap-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --cap-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------
 * 1. Hero & Header Toolbar
 * ------------------------------------------------------------- */
.capture-hero-panel {
    border-radius: var(--cap-radius-lg) !important;
    border: 1px solid var(--cap-slate-200) !important;
    box-shadow: var(--cap-shadow-sm) !important;
    background: #ffffff !important;
    margin-bottom: 25px !important;
    overflow: hidden;
    position: relative;
}

.capture-hero-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #818cf8, #06b6d4);
}

.capture-hero-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

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

.capture-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--cap-radius-md);
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: var(--cap-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.capture-hero-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--cap-slate-800);
    letter-spacing: -0.02em;
    margin: 0;
}

.capture-hero-subtitle {
    font-size: 13px;
    color: var(--cap-slate-500);
    margin-top: 4px;
}

/* Toolbar Bar */
.capture-toolbar-bar {
    border-top: 1px solid var(--cap-slate-100);
}

/* Filter Pills */
.capture-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.capture-filter-pills .btn {
    border-radius: var(--cap-radius-full) !important;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid var(--cap-slate-200);
    background: #ffffff;
    color: var(--cap-slate-600);
    transition: var(--cap-transition);
}

.capture-filter-pills .btn:hover {
    background: var(--cap-slate-50);
    color: var(--cap-slate-800);
    border-color: var(--cap-slate-300);
}

.capture-filter-pills .btn.active {
    background: var(--cap-primary);
    color: #ffffff;
    border-color: var(--cap-primary);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

/* Search Box */
.capture-search-wrap {
    min-width: 260px;
    position: relative;
}

.capture-search-input {
    border-radius: var(--cap-radius-full) !important;
    padding-left: 34px !important;
    padding-right: 32px !important;
    border: 1px solid var(--cap-slate-200) !important;
    font-size: 13px !important;
    height: 36px !important;
    transition: var(--cap-transition) !important;
    box-shadow: none !important;
}

.capture-search-input:focus {
    border-color: var(--cap-primary) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.capture-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cap-slate-400);
    font-size: 13px;
    pointer-events: none;
}

.capture-search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--cap-slate-400);
    padding: 2px 6px;
    cursor: pointer;
    font-size: 12px;
}

.capture-search-clear-btn:hover {
    color: var(--cap-slate-700);
}

/* -------------------------------------------------------------
 * 2. Sections & Date Headers
 * ------------------------------------------------------------- */
.capture-section {
    margin-top: 30px;
}

.capture-section:first-child {
    margin-top: 10px;
}

.capture-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--cap-slate-200);
}

.capture-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--cap-slate-700);
    margin: 0;
    display: flex;
    align-items: center;
}

.capture-section-count {
    background: var(--cap-slate-100) !important;
    color: var(--cap-slate-600) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: var(--cap-radius-full) !important;
    margin-left: 8px;
}

/* -------------------------------------------------------------
 * 3. Modern Card Grid & Cards
 * ------------------------------------------------------------- */
.capture-grid-row {
    margin-left: -8px;
    margin-right: -8px;
}

.capture-card-col {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 20px;
    transition: var(--cap-transition);
}

.capture-card {
    background: #ffffff;
    border: 1px solid var(--cap-slate-200);
    border-radius: var(--cap-radius-lg);
    overflow: hidden;
    transition: var(--cap-transition);
    position: relative;
    box-shadow: var(--cap-shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.capture-card:hover {
    transform: translateY(-4px);
    border-color: var(--cap-primary-border);
    box-shadow: var(--cap-shadow-lg);
}

.capture-thumbnail {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.capture-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.capture-card:hover .capture-thumbnail img {
    transform: scale(1.05);
}

/* Badge in Thumbnail */
.capture-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: var(--cap-transition);
    z-index: 2;
}

.badge-video {
    color: var(--cap-danger);
}

.badge-image {
    color: var(--cap-primary);
}

.capture-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    z-index: 2;
    display: flex;
    align-items: center;
}

/* Quick Actions Overlay on Hover */
.capture-card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: var(--cap-transition);
    z-index: 3;
}

.capture-card:hover .capture-card-hover-overlay {
    opacity: 1;
    pointer-events: auto;
}

.capture-quick-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--cap-slate-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none !important;
    transition: var(--cap-transition);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.capture-quick-btn:hover {
    background: #ffffff;
    color: var(--cap-primary);
    transform: scale(1.12);
}

/* Card Body */
.capture-body {
    padding: 12px 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.capture-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--cap-slate-800);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.4;
    transition: var(--cap-transition);
}

.capture-card:hover .capture-title {
    color: var(--cap-primary);
}

.capture-meta {
    margin-top: 6px;
    color: var(--cap-slate-400);
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* -------------------------------------------------------------
 * 4. Empty States
 * ------------------------------------------------------------- */
.capture-empty-state {
    padding: 60px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed var(--cap-slate-200);
    border-radius: var(--cap-radius-lg);
    margin: 30px 0;
}

.capture-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--cap-primary-light);
    color: var(--cap-primary);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15);
}

.capture-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--cap-slate-800);
    margin: 0 0 6px 0;
}

.capture-empty-subtitle {
    font-size: 13px;
    color: var(--cap-slate-500);
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.capture-empty-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------
 * 5. Floating Screen Recording Widget
 * ------------------------------------------------------------- */
.capture-recording-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 16px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--cap-radius-full);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 999999;
    user-select: none;
    animation: captureWidgetIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.capture-recording-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.capture-recording-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: capturePulse 1.5s infinite;
}

@keyframes capturePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.capture-recording-badge {
    color: #ef4444;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.capture-recording-timer {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    padding: 0 4px;
}

.capture-recording-stop-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #ef4444;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: var(--cap-transition);
}

.capture-recording-stop-btn:hover {
    background: #dc2626;
    transform: scale(1.08);
}

/* -------------------------------------------------------------
 * 6. Modals & Drag & Drop Upload
 * ------------------------------------------------------------- */
.capture-modal-premium .modal-content {
    border-radius: var(--cap-radius-lg);
    border: none;
    box-shadow: var(--cap-shadow-xl);
    overflow: hidden;
}

.capture-modal-premium .modal-header {
    background: #ffffff;
    border-bottom: 1px solid var(--cap-slate-100);
    padding: 18px 24px;
}

.capture-modal-premium .modal-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--cap-slate-800);
}

.capture-dropzone {
    border: 2px dashed var(--cap-slate-200);
    border-radius: var(--cap-radius-md);
    background: var(--cap-slate-50);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: var(--cap-transition);
    cursor: pointer;
}

.capture-dropzone:hover,
.capture-dropzone.dragover {
    border-color: var(--cap-primary);
    background: var(--cap-primary-light);
}

.capture-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.capture-dropzone-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--cap-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 18px;
    box-shadow: var(--cap-shadow-sm);
}

.capture-selected-filename {
    margin-top: 10px;
    display: inline-block;
    padding: 4px 12px;
    background: #ffffff;
    border: 1px solid var(--cap-primary-border);
    border-radius: var(--cap-radius-full);
    color: var(--cap-primary);
    font-size: 12px;
    font-weight: 600;
}

.capture-upload-modal-icon {
    font-size: 40px;
    color: var(--cap-primary);
    margin-bottom: 12px;
}

.capture-progress-bar-wrap {
    height: 10px !important;
    border-radius: var(--cap-radius-full) !important;
    background: var(--cap-slate-100) !important;
    overflow: hidden;
}

.capture-progress-bar-wrap .progress-bar {
    background: linear-gradient(90deg, var(--cap-primary), #818cf8);
    font-size: 9px;
    line-height: 10px;
}

/* -------------------------------------------------------------
 * 7. Editors (Video & Screenshot Editor Styles)
 * ------------------------------------------------------------- */
.capture-hub-editor {
    min-height: 100vh;
    background: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.capture-editor-navbar {
    background: #0f172a !important;
    border: none !important;
    border-bottom: 1px solid #1e293b !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    padding: 6px 16px;
}

.capture-editor-brand {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.capture-editor-brand i {
    color: #818cf8;
}

.capture-editor-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
}

.capture-editor-actions .btn {
    border-radius: var(--cap-radius-sm);
    font-weight: 600;
    font-size: 12px;
    padding: 6px 14px;
    transition: var(--cap-transition);
}

.capture-editor-actions .btn-default {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f1f5f9;
}

.capture-editor-actions .btn-default:hover {
    background: #334155;
    color: #ffffff;
}

.capture-editor-actions .btn-success {
    background: #10b981;
    border-color: #10b981;
}

.capture-editor-actions .btn-success:hover {
    background: #059669;
}

.capture-editor-actions .btn-primary {
    background: var(--cap-primary);
    border-color: var(--cap-primary);
}

.capture-editor-actions .btn-primary:hover {
    background: var(--cap-primary-hover);
}

/* Tool Buttons in Screenshot Editor */
.capture-tool-panel {
    background: #ffffff;
    border-radius: var(--cap-radius-lg);
    border: 1px solid var(--cap-slate-200);
    box-shadow: var(--cap-shadow-sm);
    padding: 8px;
}

.tool-btn {
    border-radius: var(--cap-radius-md) !important;
    width: 100% !important;
    height: 38px !important;
    margin-bottom: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    border: 1px solid transparent !important;
    color: var(--cap-slate-600) !important;
    background: #ffffff !important;
    transition: var(--cap-transition) !important;
}

.tool-btn:hover {
    background: var(--cap-slate-100) !important;
    color: var(--cap-slate-800) !important;
    transform: scale(1.05);
}

.tool-btn.btn-primary {
    background: var(--cap-primary) !important;
    color: #ffffff !important;
    border-color: var(--cap-primary) !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35) !important;
}

/* Canvas Area */
#capture-hub-canvas-wrapper {
    height: calc(100vh - 120px) !important;
    background: #f1f5f9 !important;
    border-radius: var(--cap-radius-lg) !important;
    border: 1px solid var(--cap-slate-200) !important;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.capture-video-player-wrap {
    border-radius: var(--cap-radius-lg);
    overflow: hidden;
    background: #000000;
    box-shadow: var(--cap-shadow-lg);
}

/* -------------------------------------------------------------
 * 8. Responsive Adaptations
 * ------------------------------------------------------------- */
@media (max-width: 991px) {
    .capture-hero-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .capture-hero-row > div {
        width: 100%;
    }
    
    .capture-toolbar-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .capture-search-wrap {
        width: 100%;
    }

    #capture-hub-canvas-wrapper {
        height: 60vh !important;
    }
}

@media (max-width: 767px) {
    .capture-hero-header {
        gap: 12px;
    }

    .capture-hero-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .capture-hero-title {
        font-size: 17px;
    }

    .capture-recording-widget {
        bottom: 16px;
        right: 16px;
        padding: 6px 12px 6px 14px;
    }

    .capture-editor-actions {
        flex-wrap: wrap;
    }
}
/* -------------------------------------------------------------
 * 9. v1.1.2 — Share link block (inspector)
 * ------------------------------------------------------------- */
.scp-share-block {
    border: 1px solid var(--cap-slate-200);
    border-radius: var(--cap-radius-lg);
    background: var(--cap-slate-50);
    padding: 14px;
    margin: 0 0 16px;
}
.scp-share-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.scp-share-heading { font-weight: 700; font-size: 13px; color: var(--cap-slate-800); }
.scp-share-pill { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: var(--cap-radius-full); white-space: nowrap; }
.scp-share-pill-active { background: #d1fae5; color: #047857; }
.scp-share-pill-expired { background: #fef3c7; color: #b45309; }
.scp-share-pill-none { background: var(--cap-slate-100); color: var(--cap-slate-500); }
.scp-share-url { display: flex; gap: 6px; margin-bottom: 10px; }
.scp-share-url .form-control { flex: 1; min-width: 0; height: 40px; font-size: 12px; background: #ffffff; }
.scp-share-url .btn { flex: none; width: 44px; height: 40px; border-radius: var(--cap-radius-md); }
.scp-share-facts { list-style: none; padding: 0; margin: 0 0 10px; font-size: 12px; color: var(--cap-slate-600); }
.scp-share-facts li { display: flex; align-items: baseline; gap: 8px; padding: 2px 0; }
.scp-share-facts i { width: 14px; color: var(--cap-slate-400); text-align: center; }
.scp-share-actions { margin-bottom: 6px; }
.scp-share-actions .btn { min-height: 40px; border-radius: var(--cap-radius-md); }
.scp-share-form summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--cap-primary); padding: 6px 0; list-style-position: inside; }
.scp-share-form[open] summary { margin-bottom: 8px; }
.scp-share-label { display: block; font-size: 12px; font-weight: 600; color: var(--cap-slate-700); margin-bottom: 10px; }
.scp-share-label .form-control { margin-top: 4px; height: auto; min-height: 40px; padding-top: 7px; padding-bottom: 7px; line-height: 1.5; font-weight: 400; }
.scp-share-create { min-height: 44px; border-radius: var(--cap-radius-md) !important; }
.scp-share-hint { font-size: 11px; color: var(--cap-slate-500); margin: 8px 0 0; }

/* -------------------------------------------------------------
 * 10. v1.1.2 — Editors on phones: bottom toolbar, icon actions
 * ------------------------------------------------------------- */
#capture-hub-canvas-wrapper { touch-action: none; }

/* .tool-btn forces display with !important: keep jQuery .hide()/inline display:none effective (apply-crop button). */
.tool-btn[style*="display: none"],
.tool-btn[style*="display:none"] { display: none !important; }

@media (max-width: 767px) {
    .capture-hub-editor:has(.capture-tool-panel) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

    .capture-editor-navbar { padding: 6px 12px; }
    .capture-editor-navbar .container-fluid { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0; }
    .capture-editor-navbar .container-fluid::before,
    .capture-editor-navbar .container-fluid::after { display: none; }
    .capture-editor-navbar .navbar-header { margin: 0 !important; float: none; }
    .capture-editor-brand { padding: 0 !important; height: auto !important; font-size: 18px !important; }
    .capture-editor-brand span { display: none; }
    .capture-editor-actions { flex-wrap: nowrap !important; gap: 6px; padding-top: 0; margin: 0 !important; float: none !important; }
    .capture-editor-actions .btn { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
    .capture-editor-actions .btn i { margin: 0 !important; }
    .scp-btn-label { display: none; }

    .capture-editor-body-wrap { padding: 10px 8px; }
    .capture-editor-body-wrap > .row { margin-left: -8px; margin-right: -8px; }
    .capture-editor-body-wrap > .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }

    .capture-tool-panel {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
        display: flex; align-items: center; gap: 4px;
        overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none;
        border-radius: 16px 16px 0 0; border-width: 1px 0 0;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    }
    .capture-tool-panel::-webkit-scrollbar { display: none; }
    .capture-tool-panel .btn,
    .capture-tool-panel .tool-btn {
        flex: none; width: 44px !important; height: 44px !important; margin: 0 !important;
        display: inline-flex !important; align-items: center; justify-content: center; padding: 0;
    }
    .capture-tool-panel .tool-btn:hover { transform: none; }
    .capture-tool-panel hr { flex: none; width: 1px; height: 28px; margin: 0 4px !important; border: 0; background: var(--cap-slate-200); }

    #capture-hub-canvas-wrapper { height: calc(100vh - 200px) !important; height: calc(100dvh - 200px) !important; min-height: 280px; }

    .capture-video-player-wrap video { max-height: 50vh; }
}
