@import url('fonts/fonts.css');
    /* Base CSS Variables & Theme */
    :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-text: #16a34a;
      --status-success-bg: #f0fdf4;
      --status-success-border: #bbf7d0;
      --status-warning-text: #b45309;
      --status-warning-bg: #fffbeb;
      --status-warning-border: #fde68a;
      --status-error-text: #dc2626;
      --status-error-bg: #fef2f2;
      --status-error-border: #fecaca;
      --font-heading: "Outfit", system-ui, -apple-system, sans-serif;
      --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      --font-mono: ui-monospace, "JetBrains Mono", Menlo, Consolas, "SF Mono", monospace;
    }

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

    body {
      font-family: var(--font-body);
      color: var(--body);
      background-color: #ffffff;
      line-height: 1.5;
      min-height: 100vh;
      position: relative;
      overflow-x: hidden;
    }

    /* Ambient background mesh glow (MafLabs theme) */
    .bg-mesh {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      pointer-events: none;
      z-index: -1;
      background:
        radial-gradient(circle at 10% 20%, rgba(169, 214, 245, 0.55) 0%, rgba(169, 214, 245, 0) 55%),
        radial-gradient(circle at 90% 15%, rgba(227, 201, 243, 0.45) 0%, rgba(227, 201, 243, 0) 50%),
        radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
      filter: blur(40px);
    }

    /* Skip link */
    .skip-link {
      position: absolute;
      top: -40px;
      left: 10px;
      background: var(--heading);
      color: #fff;
      padding: 8px 14px;
      border-radius: 6px;
      z-index: 1000;
      text-decoration: none;
      font-weight: 500;
      transition: top 0.2s;
    }
    .skip-link:focus {
      top: 10px;
    }

    /* Header */
    header.site-header {
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 clamp(16px, 4vw, 40px);
      border-bottom: 1px solid rgba(226, 232, 240, 0.75);
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(12px);
      position: sticky;
      top: 0;
      z-index: 50;
    }

    .brand-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      font-family: var(--font-heading);
      font-weight: 800;
      font-size: 1.35rem;
      letter-spacing: -0.03em;
    }

    .logo-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: var(--brand-gradient);
      display: grid;
      place-items: center;
      color: white;
      font-weight: 800;
      font-size: 0.95rem;
      box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
    }

    .brand-maf {
      color: #0f172a;
    }

    .brand-labs {
      background: var(--brand-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 20px;
      list-style: none;
    }

    .nav-links a {
      color: var(--muted);
      text-decoration: none;
      font-weight: 500;
      font-size: 0.93rem;
      transition: color 0.15s ease;
    }

    .nav-links a:hover {
      color: var(--brand-blue);
    }

    .nav-links a.active {
      color: var(--brand-blue);
      font-weight: 600;
    }

    .menu-toggle {
      display: none;
      background: none;
      border: 1px solid var(--card-border);
      border-radius: 8px;
      padding: 6px 10px;
      font-size: 1.2rem;
      cursor: pointer;
      color: var(--heading);
    }

    /* Hero */
    .hero-compact {
      max-width: 1440px;
      margin: 0 auto;
      padding: 16px clamp(16px, 4vw, 40px) 12px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .hero-top-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
    }

    .pill-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 10px;
      background: var(--badge-bg);
      border: 1px solid var(--badge-border);
      color: var(--badge-text);
      font-size: 0.78rem;
      font-weight: 600;
      border-radius: 999px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .privacy-tag {
      font-size: 0.82rem;
      color: #16a34a;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-weight: 500;
      background: rgba(240, 253, 244, 0.9);
      padding: 2px 10px;
      border-radius: 999px;
      border: 1px solid var(--status-success-border);
    }

    h1.hero-title {
      font-family: var(--font-heading);
      font-size: clamp(1.4rem, 2.2vw, 1.85rem);
      font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--heading);
      line-height: 1.15;
    }

    .hero-title .gradient-text {
      background: var(--brand-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    p.hero-subtitle {
      color: var(--muted);
      font-size: 0.92rem;
      max-width: 820px;
    }

    /* Top Parameters Bar */
    .controls-strip {
      max-width: 1440px;
      margin: 0 auto;
      padding: 0 clamp(16px, 4vw, 40px) 12px;
    }

    .controls-card {
      background: var(--card-bg);
      backdrop-filter: blur(10px);
      border: 1px solid var(--card-border);
      border-radius: 12px;
      padding: 10px 14px;
      box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .control-fields {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 14px;
      flex: 1;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .form-group label {
      font-size: 0.76rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      color: var(--muted);
    }

    select.input-select, input.input-text {
      font-family: var(--font-body);
      font-size: 0.88rem;
      padding: 7px 11px;
      border: 1px solid var(--card-border);
      border-radius: 8px;
      background: #ffffff;
      color: var(--heading);
      outline: none;
      transition: border-color 0.15s, box-shadow 0.15s;
    }

    select.input-select:focus, input.input-text:focus, textarea:focus {
      border-color: var(--brand-blue);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

    .secret-input-wrapper {
      position: relative;
      display: flex;
      align-items: center;
    }

    .secret-input-wrapper input {
      padding-right: 56px;
      width: 260px;
      font-family: var(--font-mono);
      font-size: 0.82rem;
    }

    .secret-toggle-btn {
      position: absolute;
      right: 6px;
      background: none;
      border: none;
      font-size: 0.74rem;
      font-weight: 600;
      color: var(--brand-blue);
      cursor: pointer;
      padding: 4px;
    }

    /* Actions button group */
    .controls-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    button.btn-primary {
      background: var(--brand-gradient);
      color: #ffffff;
      font-weight: 600;
      font-size: 0.88rem;
      padding: 8px 18px;
      border-radius: 10px;
      border: none;
      cursor: pointer;
      box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    button.btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    }

    button.btn-secondary {
      background: #ffffff;
      color: var(--heading);
      font-weight: 600;
      font-size: 0.84rem;
      padding: 7px 13px;
      border-radius: 10px;
      border: 1px solid var(--card-border);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: border-color 0.15s, color 0.15s, background-color 0.15s;
    }

    button.btn-secondary:hover {
      border-color: var(--brand-blue);
      color: var(--brand-blue);
    }

    button:focus-visible {
      outline: none;
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    }

    /* Custom Generic HMAC Config drawer */
    .generic-config-panel {
      display: none;
      max-width: 1440px;
      margin: 0 auto 12px;
      padding: 0 clamp(16px, 4vw, 40px);
    }
    .generic-config-card {
      background: #f8fafc;
      border: 1px dashed var(--brand-blue);
      border-radius: 10px;
      padding: 10px 14px;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      font-size: 0.82rem;
    }

    /* Split Screen Workspace Container */
    .workspace-wrapper {
      max-width: 1440px;
      margin: 0 auto;
      padding: 0 clamp(16px, 4vw, 40px) 16px;
    }

    .workspace {
      display: flex;
      position: relative;
      height: calc(100vh - 240px);
      min-height: 580px;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      background: rgba(255, 255, 255, 0.85);
      border: 1px solid var(--card-border);
      backdrop-filter: blur(12px);
      overflow: hidden;
    }

    /* Fullscreen focus mode */
    .workspace.focus-mode {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      max-width: none;
      border-radius: 0;
      z-index: 1000;
      background: #ffffff;
      padding: 14px;
    }

    /* Panes */
    .pane {
      display: flex;
      flex-direction: column;
      height: 100%;
      min-width: 25%;
      overflow: hidden;
    }

    .pane-left {
      width: 50%;
    }

    .pane-right {
      width: 50%;
      background: #fafbfd;
      border-left: 1px solid var(--card-border);
    }

    /* Divider */
    .pane-divider {
      width: 8px;
      background: #f1f5f9;
      cursor: col-resize;
      position: relative;
      transition: background-color 0.15s;
      flex-shrink: 0;
      user-select: none;
    }

    .pane-divider:hover, .pane-divider.dragging {
      background: #cbd5e1;
    }

    .pane-divider::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 2px;
      height: 36px;
      background: #94a3b8;
      border-radius: 1px;
    }

    /* Pane Header */
    .pane-header {
      height: 44px;
      padding: 0 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--card-border);
      background: rgba(255, 255, 255, 0.95);
      flex-shrink: 0;
    }

    .pane-title-group {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .pane-title {
      font-family: var(--font-heading);
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--heading);
    }

    .pane-badge {
      font-size: 0.72rem;
      padding: 1px 7px;
      border-radius: 999px;
      background: #f1f5f9;
      color: var(--muted);
      font-weight: 500;
    }

    .pane-tools {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .icon-btn {
      background: none;
      border: 1px solid transparent;
      border-radius: 6px;
      padding: 4px 7px;
      font-size: 0.78rem;
      color: var(--muted);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: all 0.15s;
    }

    .icon-btn:hover {
      background: #f1f5f9;
      color: var(--heading);
      border-color: var(--card-border);
    }

    /* Left pane layout: Raw body on top, Headers below */
    .request-subdivision {
      display: flex;
      flex-direction: column;
      flex: 1;
      height: 100%;
      overflow: hidden;
    }

    .subpane {
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .subpane-body {
      flex: 6;
      border-bottom: 1px solid var(--card-border);
    }

    .subpane-headers {
      flex: 4;
    }

    .subpane-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 6px 14px;
      background: #f8fafc;
      border-bottom: 1px solid #edf2f7;
      font-size: 0.78rem;
      color: var(--muted);
    }

    .subpane-bar span.label {
      font-weight: 600;
      color: var(--heading);
    }

    .editor-container {
      position: relative;
      flex: 1;
      height: 100%;
      display: flex;
    }

    textarea.code-editor {
      width: 100%;
      height: 100%;
      border: none;
      outline: none;
      padding: 12px 14px;
      font-family: var(--font-mono);
      font-size: 0.88rem;
      line-height: 1.6;
      color: #1e293b;
      background: #ffffff;
      resize: none;
      white-space: pre-wrap;
      word-break: break-all;
    }

    textarea.code-editor::placeholder {
      color: #94a3b8;
    }

    /* Drag over highlight */
    textarea.code-editor.drag-over {
      background: #eff6ff;
      border: 2px dashed var(--brand-blue);
    }

    /* Right pane: Verification Result */
    .result-content {
      flex: 1;
      overflow-y: auto;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    /* Status card */
    .match-status-card {
      border-radius: 12px;
      padding: 16px;
      display: flex;
      align-items: flex-start;
      gap: 14px;
      transition: all 0.2s ease;
    }

    .match-status-card.status-pass {
      background: var(--status-success-bg);
      border: 1px solid var(--status-success-border);
      color: #14532d;
    }

    .match-status-card.status-fail {
      background: var(--status-error-bg);
      border: 1px solid var(--status-error-border);
      color: #7f1d1d;
    }

    .match-status-card.status-neutral {
      background: #f8fafc;
      border: 1px solid var(--card-border);
      color: var(--muted);
    }

    .status-icon-circle {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-size: 1.25rem;
      font-weight: 800;
      flex-shrink: 0;
    }

    .status-pass .status-icon-circle {
      background: #22c55e;
      color: #ffffff;
    }

    .status-fail .status-icon-circle {
      background: #ef4444;
      color: #ffffff;
    }

    .status-neutral .status-icon-circle {
      background: #cbd5e1;
      color: #475569;
    }

    .status-details {
      flex: 1;
    }

    .status-headline {
      font-family: var(--font-heading);
      font-size: 1.15rem;
      font-weight: 800;
      line-height: 1.2;
      margin-bottom: 4px;
    }

    .status-sub {
      font-size: 0.85rem;
      opacity: 0.9;
    }

    /* Signature Comparisons & Steps */
    .result-section {
      background: #ffffff;
      border: 1px solid var(--card-border);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02);
    }

    .section-header-bar {
      padding: 8px 12px;
      background: #f8fafc;
      border-bottom: 1px solid #edf2f7;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--heading);
    }

    .sig-field-row {
      padding: 10px 14px;
      border-bottom: 1px solid #f1f5f9;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .sig-field-row:last-child {
      border-bottom: none;
    }

    .sig-label-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.75rem;
      color: var(--muted);
      font-weight: 600;
    }

    .sig-code-box {
      font-family: var(--font-mono);
      font-size: 0.82rem;
      padding: 6px 10px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 6px;
      color: #0f172a;
      word-break: break-all;
      position: relative;
    }

    .invisibles-display {
      font-family: var(--font-mono);
      font-size: 0.82rem;
      padding: 8px 10px;
      background: #1e293b;
      color: #f8fafc;
      border-radius: 6px;
      white-space: pre-wrap;
      word-break: break-all;
      max-height: 140px;
      overflow-y: auto;
    }

    .invisible-char {
      display: inline-block;
      padding: 0 3px;
      border-radius: 3px;
      background: #334155;
      color: #38bdf8;
      font-size: 0.74rem;
      font-weight: bold;
      margin: 0 1px;
    }

    /* Diagnosis Panel */
    .diagnosis-panel {
      border: 1px solid #fed7aa;
      background: #fffbeb;
      border-radius: 10px;
      padding: 14px;
    }

    .diagnosis-panel h3 {
      font-family: var(--font-heading);
      font-size: 0.92rem;
      font-weight: 700;
      color: #9a3412;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .diagnosis-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .diagnosis-item {
      padding: 8px 10px;
      border-radius: 6px;
      background: #ffffff;
      border: 1px solid #fde68a;
      font-size: 0.82rem;
      line-height: 1.45;
    }

    .diagnosis-item.matched-cause {
      border-color: #f97316;
      background: #fff7ed;
    }

    .diagnosis-item strong {
      color: #9a3412;
    }

    .diagnosis-fix {
      display: block;
      margin-top: 4px;
      color: #475569;
      font-size: 0.78rem;
    }

    .diagnosis-fix code {
      font-family: var(--font-mono);
      background: #f1f5f9;
      padding: 1px 4px;
      border-radius: 3px;
      color: #0f172a;
    }

    /* Code Snippets Section */
    .snippets-container {
      background: #ffffff;
      border: 1px solid var(--card-border);
      border-radius: 10px;
      overflow: hidden;
    }

    .snippets-tabs {
      display: flex;
      background: #f8fafc;
      border-bottom: 1px solid #e2e8f0;
      overflow-x: auto;
    }

    .tab-btn {
      padding: 8px 14px;
      border: none;
      background: none;
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--muted);
      cursor: pointer;
      border-bottom: 2px solid transparent;
      white-space: nowrap;
    }

    .tab-btn.active {
      color: var(--brand-blue);
      border-bottom-color: var(--brand-blue);
      background: #ffffff;
    }

    .snippet-code-pre {
      padding: 12px;
      background: #0f172a;
      color: #e2e8f0;
      font-family: var(--font-mono);
      font-size: 0.78rem;
      line-height: 1.5;
      overflow-x: auto;
      max-height: 220px;
    }

    /* Sticky Bottom Mobile Bar */
    .mobile-action-bar {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100vw;
      background: rgba(255, 255, 255, 0.95);
      border-top: 1px solid var(--card-border);
      padding: 10px 16px;
      box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
      z-index: 100;
      gap: 10px;
    }

    /* Modal / Popover Cheat Sheet */
    .modal-backdrop {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(15, 23, 42, 0.5);
      backdrop-filter: blur(4px);
      z-index: 2000;
      place-items: center;
      padding: 16px;
    }

    .modal-card {
      background: #ffffff;
      border-radius: var(--radius);
      box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
      width: 100%;
      max-width: 500px;
      overflow: hidden;
      animation: popIn 0.15s ease-out;
    }

    @keyframes popIn {
      from { transform: scale(0.96); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    .modal-header {
      padding: 14px 18px;
      border-bottom: 1px solid var(--card-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-family: var(--font-heading);
      font-weight: 700;
      color: var(--heading);
    }

    .modal-body {
      padding: 16px 18px;
      font-size: 0.88rem;
    }

    .shortcut-table {
      width: 100%;
      border-collapse: collapse;
    }

    .shortcut-table tr {
      border-bottom: 1px solid #f1f5f9;
    }

    .shortcut-table td {
      padding: 8px 0;
    }

    kbd {
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      border-radius: 4px;
      padding: 2px 6px;
      font-family: var(--font-mono);
      font-size: 0.78rem;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    /* SEO Content Section Below the Tool */
    .content-article {
      max-width: 900px;
      margin: 40px auto 20px;
      padding: 0 clamp(16px, 4vw, 40px);
      color: #334155;
    }

    .content-article h2 {
      font-family: var(--font-heading);
      font-size: 1.55rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--heading);
      margin: 32px 0 12px;
    }

    .content-article h3 {
      font-family: var(--font-heading);
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--heading);
      margin: 20px 0 8px;
    }

    .content-article p {
      margin-bottom: 14px;
      line-height: 1.7;
      font-size: 0.95rem;
    }

    .content-article ol, .content-article ul {
      margin: 12px 0 18px 24px;
      line-height: 1.65;
      font-size: 0.95rem;
    }

    .content-article li {
      margin-bottom: 6px;
    }

    .content-article code {
      font-family: var(--font-mono);
      background: #f1f5f9;
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 0.86rem;
      color: #0f172a;
    }

    .content-article pre {
      background: #0f172a;
      color: #f8fafc;
      padding: 14px;
      border-radius: 8px;
      overflow-x: auto;
      margin: 14px 0 18px;
      font-family: var(--font-mono);
      font-size: 0.84rem;
      line-height: 1.5;
    }

    /* FAQ Accordions */
    .faq-container {
      margin: 20px 0 30px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    details.faq-item {
      background: #ffffff;
      border: 1px solid var(--card-border);
      border-radius: 10px;
      overflow: hidden;
      transition: all 0.15s ease;
    }

    details.faq-item[open] {
      border-color: var(--brand-blue);
      box-shadow: 0 4px 14px rgba(37, 99, 235, 0.05);
    }

    summary.faq-question {
      padding: 14px 16px;
      font-weight: 600;
      color: var(--heading);
      cursor: pointer;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    summary.faq-question::-webkit-details-marker {
      display: none;
    }

    summary.faq-question::after {
      content: "+";
      font-size: 1.2rem;
      color: var(--brand-blue);
      font-weight: 700;
      transition: transform 0.15s;
    }

    details[open] summary.faq-question::after {
      content: "−";
    }

    .faq-answer {
      padding: 0 16px 16px;
      color: var(--body);
      font-size: 0.92rem;
      line-height: 1.6;
    }

    /* Footer */
    footer.site-footer {
      border-top: 1px solid var(--card-border);
      background: rgba(255, 255, 255, 0.9);
      padding: 40px clamp(16px, 4vw, 40px) 30px;
      margin-top: 40px;
    }

    .footer-inner {
      max-width: 1440px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .footer-tools-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      padding-bottom: 20px;
      border-bottom: 1px solid #f1f5f9;
    }

    .footer-tools-row span {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--heading);
      margin-right: 6px;
    }

    .footer-tool-link {
      font-size: 0.82rem;
      color: var(--muted);
      text-decoration: none;
      padding: 4px 10px;
      background: #f8fafc;
      border-radius: 6px;
      border: 1px solid #e2e8f0;
      transition: all 0.15s;
    }

    .footer-tool-link:hover {
      color: var(--brand-blue);
      border-color: var(--brand-blue);
    }

    .footer-bottom {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      font-size: 0.85rem;
      color: var(--muted);
    }

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

    /* Accessibility Live Region */
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border-width: 0;
    }

    /* Responsive Queries */
    @media (max-width: 900px) {
      .workspace {
        flex-direction: column;
        height: auto;
        min-height: auto;
        overflow: visible;
      }
      .pane-divider {
        display: none !important;
      }
      .pane {
        width: 100% !important;
        min-height: 55vh;
        border-left: none;
      }
      .pane-right {
        border-top: 2px solid var(--card-border);
      }
      .mobile-action-bar {
        display: flex;
      }
      body {
        padding-bottom: 64px;
      }
      .menu-toggle {
        display: block;
      }
      .nav-links {
        display: none;
      }
      .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        right: 16px;
        background: #ffffff;
        border: 1px solid var(--card-border);
        border-radius: 10px;
        padding: 12px 18px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
      }
    }

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


/* Ambient Background Blobs (Fixed across entire viewport) */
.blob-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  -webkit-filter: blur(80px);
  opacity: 0.85;
  will-change: transform;
}

.blob-1 {
  top: -12vh;
  left: -8vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.32) 0%, rgba(59, 130, 246, 0.16) 45%, rgba(255, 255, 255, 0) 70%);
  animation: blob-float-1 20s infinite ease-in-out alternate;
}

.blob-2 {
  top: -10vh;
  right: -10vw;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.28) 0%, rgba(168, 85, 247, 0.15) 45%, rgba(255, 255, 255, 0) 70%);
  animation: blob-float-2 24s infinite ease-in-out alternate;
}

.blob-3 {
  bottom: -15vh;
  left: -10vw;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(14, 165, 233, 0.14) 45%, rgba(255, 255, 255, 0) 70%);
  animation: blob-float-3 22s infinite ease-in-out alternate;
}

.blob-4 {
  bottom: -10vh;
  right: -8vw;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(236, 72, 153, 0.15) 45%, rgba(255, 255, 255, 0) 70%);
  animation: blob-float-4 26s infinite ease-in-out alternate;
}

@keyframes blob-float-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5vw, 6vh) scale(1.06); }
  100% { transform: translate(-3vw, 10vh) scale(0.96); }
}

@keyframes blob-float-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6vw, 8vh) scale(1.08); }
  100% { transform: translate(4vw, 5vh) scale(0.94); }
}

@keyframes blob-float-3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, -8vh) scale(1.06); }
  100% { transform: translate(-4vw, -4vh) scale(0.95); }
}

@keyframes blob-float-4 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5vw, -6vh) scale(1.08); }
  100% { transform: translate(6vw, -10vh) scale(0.95); }
}

/* Ensure foreground content stacks above blobs */
header, main, footer, .container, .site-header, .site-footer, .workspace, article {
  position: relative;
  z-index: 1;
}
