@import url('fonts/fonts.css');

    /* Reset & Base */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --heading: #0f172a;
      --body: #475569;
      --muted: #64748b;
      --brand-blue: #2563eb;
      --brand-violet: #7c3aed;
      --brand-gradient: linear-gradient(90deg, #2563eb, #7c3aed);
      --badge-bg: #eff6ff;
      --badge-border: #bfdbfe;
      --badge-text: #1d4ed8;
      --card-bg: rgba(255, 255, 255, 0.88);
      --card-border: #e2e8f0;
      --radius: 14px;
      --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
      --status-success: #16a34a;
      --status-success-bg: #f0fdf4;
      --status-warning: #b45309;
      --status-warning-bg: #fffbeb;
      --status-error: #dc2626;
      --status-error-bg: #fef2f2;
      --font-heading: "Outfit", system-ui, -apple-system, sans-serif;
      --font-body: "Inter", system-ui, -apple-system, sans-serif;
      --font-mono: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
    }

    body {
      background-color: #ffffff;
      color: var(--body);
      font-family: var(--font-body);
      font-size: 15px;
      line-height: 1.5;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      position: relative;
      overflow-x: hidden;
    }

    /* Soft mesh background glow */
    .bg-mesh {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      pointer-events: none;
      z-index: -1;
      background:
        radial-gradient(circle at 10% 15%, rgba(169, 214, 245, 0.55) 0%, rgba(255, 255, 255, 0) 55%),
        radial-gradient(circle at 90% 12%, rgba(227, 201, 243, 0.45) 0%, rgba(255, 255, 255, 0) 55%);
      filter: blur(45px);
    }

    /* Accessibility focus */
    a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
      outline: none;
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    }

    /* Global Header */
    header.site-header {
      height: 60px;
      border-bottom: 1px solid var(--card-border);
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(10px);
      position: sticky;
      top: 0;
      z-index: 50;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
    }
    .logo-container {
      display: flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
    }
    .logo-svg {
      width: 28px;
      height: 28px;
    }
    .logo-text {
      font-family: var(--font-heading);
      font-weight: 800;
      font-size: 20px;
      letter-spacing: -0.03em;
    }
    .logo-text .navy { color: #0f172a; }
    .logo-text .grad {
      background: var(--brand-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .header-nav {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    .header-nav a {
      color: var(--muted);
      text-decoration: none;
      font-weight: 500;
      font-size: 14px;
      transition: color 0.15s;
    }
    .header-nav a:hover { color: var(--heading); }
    .nav-toggle-btn {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
      color: var(--heading);
    }

    /* Compact Hero */
    .compact-hero {
      padding: 16px 24px 12px;
      text-align: center;
      max-width: 900px;
      margin: 0 auto;
    }
    .badge-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--badge-bg);
      border: 1px solid var(--badge-border);
      color: var(--badge-text);
      font-size: 12px;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 999px;
      margin-bottom: 6px;
      letter-spacing: 0.02em;
    }
    .badge-pill svg { width: 12px; height: 12px; }
    h1.hero-title {
      font-family: var(--font-heading);
      font-weight: 800;
      font-size: clamp(22px, 3.5vw, 32px);
      letter-spacing: -0.03em;
      color: var(--heading);
      line-height: 1.15;
      margin-bottom: 4px;
    }
    h1.hero-title .gradient-text {
      background: var(--brand-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .hero-subtitle {
      font-size: 14px;
      color: var(--body);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .privacy-tag {
      color: var(--status-success);
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    /* Toolbar */
    .workspace-toolbar {
      max-width: 1440px;
      margin: 0 auto;
      width: 100%;
      padding: 8px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }
    .toolbar-left, .toolbar-right {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 600;
      border-radius: 10px;
      padding: 8px 14px;
      cursor: pointer;
      transition: all 0.15s ease;
      border: 1px solid transparent;
      min-height: 38px;
      white-space: nowrap;
      text-decoration: none;
    }
    .btn-primary {
      background: var(--brand-gradient);
      color: #ffffff;
      box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
    }
    .btn-primary:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
    }
    .btn-secondary {
      background: #ffffff;
      border-color: var(--card-border);
      color: var(--heading);
    }
    .btn-secondary:hover:not(:disabled) {
      border-color: var(--brand-blue);
      color: var(--brand-blue);
    }
    .btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none !important;
      box-shadow: none !important;
    }
    .btn-sm {
      padding: 5px 10px;
      font-size: 12px;
      min-height: 30px;
      border-radius: 8px;
    }
    .btn-icon {
      padding: 6px;
      min-height: 34px;
      min-width: 34px;
      border-radius: 8px;
    }

    /* Split Screen Workspace */
    .workspace-container {
      max-width: 1440px;
      margin: 0 auto;
      width: 100%;
      padding: 0 24px 16px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .split-workspace {
      display: flex;
      flex: 1;
      min-height: 560px;
      height: calc(100vh - 200px);
      background: var(--card-bg);
      backdrop-filter: blur(10px);
      border: 1px solid var(--card-border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
    }

    /* Focus Mode Overlay */
    .split-workspace.focus-mode {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      width: 100vw; height: 100vh;
      z-index: 100;
      border-radius: 0;
      margin: 0;
      padding: 12px;
      background: #ffffff;
    }

    .pane {
      display: flex;
      flex-direction: column;
      height: 100%;
      overflow: hidden;
      min-width: 25%;
    }
    .pane-left { width: 40%; }
    .pane-right { flex: 1; }

    .pane-resizer {
      width: 8px;
      background: transparent;
      cursor: col-resize;
      position: relative;
      user-select: none;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s;
    }
    .pane-resizer::after {
      content: "";
      width: 2px;
      height: 36px;
      background: #cbd5e1;
      border-radius: 2px;
      transition: background 0.15s;
    }
    .pane-resizer:hover, .pane-resizer.resizing {
      background: rgba(37, 99, 235, 0.08);
    }
    .pane-resizer:hover::after, .pane-resizer.resizing::after {
      background: var(--brand-blue);
      width: 3px;
    }

    .pane-header {
      padding: 10px 16px;
      border-bottom: 1px solid var(--card-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(255, 255, 255, 0.6);
      gap: 8px;
    }
    .pane-title-group {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .pane-title {
      font-family: var(--font-heading);
      font-size: 15px;
      font-weight: 700;
      color: var(--heading);
    }
    .pane-badge {
      font-size: 11px;
      font-weight: 600;
      background: #f1f5f9;
      color: var(--muted);
      padding: 2px 7px;
      border-radius: 12px;
    }

    .pane-body {
      flex: 1;
      overflow-y: auto;
      position: relative;
      display: flex;
      flex-direction: column;
    }

    /* Left Pane: Dropzone, Image List, Preview */
    .drop-zone {
      border: 2px dashed #cbd5e1;
      border-radius: 10px;
      margin: 12px;
      padding: 20px 16px;
      text-align: center;
      background: rgba(248, 250, 252, 0.6);
      cursor: pointer;
      transition: all 0.15s;
    }
    .drop-zone.dragover {
      border-color: var(--brand-blue);
      background: rgba(239, 246, 255, 0.7);
    }
    .drop-zone svg {
      width: 32px;
      height: 32px;
      color: var(--brand-blue);
      margin-bottom: 6px;
    }
    .drop-zone-text {
      font-size: 13px;
      font-weight: 600;
      color: var(--heading);
    }
    .drop-zone-sub {
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }

    .image-list-container {
      flex: 1;
      overflow-y: auto;
      padding: 0 12px 12px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .image-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      background: #ffffff;
      border: 1px solid var(--card-border);
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.15s;
      position: relative;
    }
    .image-item:hover {
      border-color: #93c5fd;
      background: #f8fafc;
    }
    .image-item.active {
      border-color: var(--brand-blue);
      background: #eff6ff;
      box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    }
    .image-thumb {
      width: 44px;
      height: 44px;
      object-fit: cover;
      border-radius: 6px;
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      flex-shrink: 0;
    }
    .image-meta {
      flex: 1;
      min-width: 0;
    }
    .image-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--heading);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .image-subinfo {
      font-size: 11px;
      color: var(--muted);
      display: flex;
      gap: 6px;
      margin-top: 2px;
    }
    .chip {
      display: inline-flex;
      align-items: center;
      padding: 1px 6px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .chip-high { background: #fee2e2; color: #b91c1c; }
    .chip-med { background: #fef3c7; color: #b45309; }
    .chip-low { background: #f1f5f9; color: #475569; }
    .chip-clean { background: #dcfce7; color: #15803d; }

    .selected-preview-box {
      border-top: 1px solid var(--card-border);
      padding: 10px 12px;
      background: #f8fafc;
      display: flex;
      align-items: center;
      gap: 12px;
      max-height: 120px;
    }
    .preview-large-thumb {
      max-height: 90px;
      max-width: 110px;
      object-fit: contain;
      border-radius: 6px;
      background: #fff;
      border: 1px solid var(--card-border);
    }
    .preview-stats {
      font-size: 12px;
      line-height: 1.4;
      flex: 1;
      min-width: 0;
    }
    .preview-stats strong { color: var(--heading); }

    /* Right Pane: Navigation Tabs & Panels */
    .tabs-bar {
      display: flex;
      align-items: center;
      gap: 2px;
      padding: 0 12px;
      background: #f8fafc;
      border-bottom: 1px solid var(--card-border);
      overflow-x: auto;
      scrollbar-width: none;
    }
    .tabs-bar::-webkit-scrollbar { display: none; }
    .tab-btn {
      padding: 9px 12px;
      background: transparent;
      border: none;
      border-bottom: 2px solid transparent;
      color: var(--muted);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.15s;
    }
    .tab-btn:hover { color: var(--heading); }
    .tab-btn.active {
      color: var(--brand-blue);
      border-bottom-color: var(--brand-blue);
      background: rgba(255, 255, 255, 0.7);
    }
    .tab-content {
      padding: 16px;
      flex: 1;
      overflow-y: auto;
      display: none;
    }
    .tab-content.active { display: block; }

    /* Summary Tab Styling */
    .risk-banner {
      border-radius: 10px;
      padding: 12px 14px;
      margin-bottom: 16px;
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }
    .risk-banner.high { background: var(--status-error-bg); border: 1px solid #fecaca; color: #991b1b; }
    .risk-banner.medium { background: var(--status-warning-bg); border: 1px solid #fde68a; color: #92400e; }
    .risk-banner.clean { background: var(--status-success-bg); border: 1px solid #bbf7d0; color: #166534; }
    .risk-title { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
    .risk-desc { font-size: 12px; opacity: 0.95; }

    .risk-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 12px;
      margin-bottom: 16px;
    }
    .risk-card {
      background: #ffffff;
      border: 1px solid var(--card-border);
      border-radius: 8px;
      padding: 12px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    }
    .risk-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
    }
    .risk-card-label {
      font-weight: 600;
      font-size: 13px;
      color: var(--heading);
    }
    .risk-card-val {
      font-size: 12px;
      color: var(--body);
      word-break: break-all;
    }
    .risk-card-why {
      font-size: 11px;
      color: var(--muted);
      margin-top: 6px;
      border-top: 1px dashed #f1f5f9;
      padding-top: 4px;
    }

    /* Embedded Thumbnail Preview Box */
    .embedded-thumb-box {
      background: #fff;
      border: 1px solid var(--card-border);
      border-radius: 8px;
      padding: 10px;
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 10px;
    }
    .embedded-thumb-img {
      max-width: 90px;
      max-height: 70px;
      border-radius: 4px;
      border: 1px solid #cbd5e1;
    }

    /* Key-Value Tables */
    .table-container {
      background: #ffffff;
      border: 1px solid var(--card-border);
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 16px;
    }
    table.meta-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
      text-align: left;
    }
    table.meta-table th, table.meta-table td {
      padding: 8px 12px;
      border-bottom: 1px solid var(--card-border);
    }
    table.meta-table th {
      background: #f8fafc;
      color: var(--heading);
      font-weight: 600;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    table.meta-table tr:last-child td { border-bottom: none; }
    table.meta-table tr:hover td { background: #fafafa; }
    .tag-key {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--heading);
      font-weight: 600;
      width: 220px;
      word-break: break-all;
    }
    .tag-val {
      word-break: break-word;
      font-family: var(--font-body);
    }
    .tag-val.code {
      font-family: var(--font-mono);
      font-size: 12px;
    }

    /* AI Parameters Card */
    .ai-card {
      background: #ffffff;
      border: 1px solid var(--card-border);
      border-radius: 10px;
      padding: 14px;
      margin-bottom: 16px;
    }
    .ai-prompt-box {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 10px;
      font-family: var(--font-mono);
      font-size: 12.5px;
      line-height: 1.5;
      color: var(--heading);
      margin: 6px 0 12px;
      position: relative;
      white-space: pre-wrap;
      word-break: break-word;
    }
    .copy-corner-btn {
      position: absolute;
      top: 6px;
      right: 6px;
    }

    /* Provenance / C2PA Box */
    .provenance-banner {
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      border-radius: 10px;
      padding: 14px;
      margin-bottom: 16px;
    }
    .provenance-disclaimer {
      font-size: 12px;
      color: #1e40af;
      margin-top: 8px;
      padding: 8px;
      background: rgba(255,255,255,0.7);
      border-radius: 6px;
      border-left: 3px solid #2563eb;
    }

    /* Raw View */
    .raw-code {
      font-family: var(--font-mono);
      font-size: 12px;
      background: #0f172a;
      color: #f8fafc;
      padding: 14px;
      border-radius: 8px;
      overflow-x: auto;
      max-height: 480px;
      white-space: pre-wrap;
      word-break: break-all;
      line-height: 1.6;
    }

    /* Options Popover / Modal */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.4);
      backdrop-filter: blur(4px);
      z-index: 120;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
    }
    .modal-backdrop.open {
      opacity: 1;
      pointer-events: auto;
    }
    .modal-dialog {
      background: #ffffff;
      border-radius: var(--radius);
      border: 1px solid var(--card-border);
      box-shadow: 0 10px 40px rgba(0,0,0,0.15);
      max-width: 520px;
      width: 100%;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .modal-header {
      padding: 14px 18px;
      border-bottom: 1px solid var(--card-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .modal-title {
      font-family: var(--font-heading);
      font-weight: 700;
      font-size: 16px;
      color: var(--heading);
    }
    .modal-body {
      padding: 18px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .option-group-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--heading);
      margin-bottom: 6px;
    }
    .checkbox-label {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 13px;
      color: var(--body);
      cursor: pointer;
      user-select: none;
    }
    .checkbox-label input[type="checkbox"] {
      margin-top: 3px;
      width: 16px;
      height: 16px;
      accent-color: var(--brand-blue);
    }
    .modal-footer {
      padding: 12px 18px;
      border-top: 1px solid var(--card-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #f8fafc;
    }

    /* Progress bar */
    .progress-wrap {
      width: 100%;
      height: 6px;
      background: #e2e8f0;
      border-radius: 999px;
      overflow: hidden;
      margin: 8px 0;
      display: none;
    }
    .progress-bar {
      height: 100%;
      background: var(--brand-gradient);
      width: 0%;
      transition: width 0.2s ease;
    }

    /* Sticky Bottom Bar for Mobile */
    .mobile-sticky-bar {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-top: 1px solid var(--card-border);
      padding: 10px 16px;
      z-index: 45;
      gap: 10px;
    }

    /* Toast Notification (aria-live) */
    .toast-msg {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: #0f172a;
      color: #ffffff;
      padding: 10px 18px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
      box-shadow: 0 4px 16px rgba(0,0,0,0.15);
      z-index: 200;
      display: flex;
      align-items: center;
      gap: 8px;
      transform: translateY(60px);
      opacity: 0;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      pointer-events: none;
    }
    .toast-msg.show {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
    .toast-msg.success { background: #15803d; }

    /* SEO Section */
    .seo-section {
      max-width: 1000px;
      margin: 40px auto 60px;
      padding: 0 24px;
      color: var(--body);
      line-height: 1.7;
    }
    .seo-section h2 {
      font-family: var(--font-heading);
      font-weight: 800;
      font-size: 24px;
      color: var(--heading);
      margin: 32px 0 12px;
      letter-spacing: -0.02em;
    }
    .seo-section h3 {
      font-family: var(--font-heading);
      font-weight: 700;
      font-size: 18px;
      color: var(--heading);
      margin: 20px 0 8px;
    }
    .seo-section p { margin-bottom: 16px; }
    .seo-section ol, .seo-section ul {
      margin: 0 0 16px 20px;
      padding: 0;
    }
    .seo-section li { margin-bottom: 8px; }
    .code-diff {
      background: #f8fafc;
      border: 1px solid var(--card-border);
      border-radius: 8px;
      padding: 14px;
      font-family: var(--font-mono);
      font-size: 13px;
      margin: 16px 0;
      overflow-x: auto;
    }
    .diff-del { color: #dc2626; background: #fee2e2; display: block; padding: 2px 4px; border-radius: 4px; }
    .diff-add { color: #16a34a; background: #dcfce7; display: block; padding: 2px 4px; border-radius: 4px; }

    /* Accordion FAQ */
    .faq-item {
      border: 1px solid var(--card-border);
      border-radius: 10px;
      margin-bottom: 10px;
      background: #ffffff;
      overflow: hidden;
    }
    .faq-item summary {
      padding: 14px 18px;
      font-family: var(--font-heading);
      font-weight: 700;
      font-size: 15px;
      color: var(--heading);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      list-style: none;
    }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary::after {
      content: "+";
      font-size: 20px;
      color: var(--brand-blue);
      font-weight: 400;
    }
    .faq-item[open] summary::after { content: "−"; }
    .faq-answer {
      padding: 0 18px 16px;
      font-size: 14px;
      color: var(--body);
      border-top: 1px solid #f1f5f9;
      padding-top: 12px;
    }

    /* Footer */
    footer.site-footer {
      border-top: 1px solid var(--card-border);
      background: #ffffff;
      padding: 40px 24px;
      margin-top: auto;
    }
    .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 24px;
    }
    .footer-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }
    .tools-row {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      font-size: 13px;
    }
    .tools-row a {
      color: var(--muted);
      text-decoration: none;
    }
    .tools-row a:hover { color: var(--brand-blue); }
    .footer-bottom {
      border-top: 1px solid var(--card-border);
      padding-top: 20px;
      font-size: 13px;
      color: var(--muted);
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }

    /* Responsive under 900px */
    @media (max-width: 900px) {
      .split-workspace {
        flex-direction: column;
        height: auto;
        min-height: auto;
      }
      .pane-resizer { display: none; }
      .pane {
        width: 100% !important;
        min-height: 55vh;
      }
      .pane-left { border-bottom: 1px solid var(--card-border); }
      .mobile-sticky-bar { display: flex; }
      .workspace-container { padding-bottom: 70px; }
      .header-nav { display: none; }
      .header-nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px; left: 0; right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--card-border);
        padding: 16px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
      }
      .nav-toggle-btn { display: block; }
    }

    @media (prefers-reduced-motion: reduce) {
      * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }


/* Ambient Viewport Floating Mesh Blobs */
.blob-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  transition: all 0.5s ease;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(168, 85, 247, 0) 70%);
  top: -100px;
  left: -100px;
  animation: blob-float-1 25s infinite alternate ease-in-out;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(14, 165, 233, 0) 70%);
  bottom: -150px;
  right: -150px;
  animation: blob-float-2 28s infinite alternate ease-in-out;
}

.blob-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, rgba(244, 63, 94, 0) 70%);
  top: 40%;
  right: 15%;
  animation: blob-float-3 22s infinite alternate ease-in-out;
}

.blob-4 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(20, 184, 166, 0) 70%);
  bottom: 10%;
  left: 20%;
  animation: blob-float-4 30s infinite alternate ease-in-out;
}

@keyframes blob-float-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 80px) scale(1.1); }
  100% { transform: translate(50px, 150px) scale(0.95); }
}

@keyframes blob-float-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, -90px) scale(1.08); }
  100% { transform: translate(-140px, -40px) scale(0.92); }
}

@keyframes blob-float-3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 110px) scale(1.15); }
  100% { transform: translate(-120px, -60px) scale(0.9); }
}

@keyframes blob-float-4 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(90px, -120px) scale(1.05); }
  100% { transform: translate(140px, 60px) scale(0.95); }
}

