    /* CSS Variables & Theme System */
    :root {
      --bg: #f5f4f0;
      --surface: #ffffff;
      --surface2: #f0efe9;
      --border: rgba(0,0,0,0.08);
      --border-strong: rgba(0,0,0,0.16);
      --text: #1a1917;
      --text-muted: #6b6a65;
      --text-faint: #9e9d97;
      --accent: #1d5fa8;
      --accent-bg: #e8f0fb;
      --accent-hover: #174d8a;
      --green: #2d7d46;
      --green-bg: #e6f4ec;
      --red: #b83232;
      --red-bg: #fce8e8;
      --amber: #926209;
      --amber-bg: #fdf3d8;
      --radius: 10px;
      --radius-sm: 6px;
      --radius-md: 10px;
      --radius-lg: 14px;
      --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.05);

      /* Highlight Variables */
      --line-active-bg: rgba(29, 95, 168, 0.06);
      --diff-ins: #dfebd5;
      --diff-del: #f9d7d7;

      /* JSON Syntax Colors (Light) */
      --json-key: #1d5fa8;
      --json-str: #2d7d46;
      --json-num: #b55300;
      --json-bool: #7e3ff2;
      --json-null: #6b6a65;
      --json-brace: #4a4944;
    }

    [data-theme="dark"] {
      --bg: #141412;
      --surface: #1e1d1b;
      --surface2: #272522;
      --border: rgba(255,255,255,0.08);
      --border-strong: rgba(255,255,255,0.16);
      --text: #f0ede8;
      --text-muted: #9a9890;
      --text-faint: #5e5c57;
      --accent: #5b9de8;
      --accent-bg: #162035;
      --accent-hover: #7cb3f2;
      --green: #48a665;
      --green-bg: #162a1e;
      --red: #e05353;
      --red-bg: #301919;
      --amber: #cca043;
      --amber-bg: #2d2410;
      --shadow: 0 1px 3px rgba(0,0,0,0.2), 0 6px 18px rgba(0,0,0,0.3);

      /* Highlight Variables (Dark) */
      --line-active-bg: rgba(91, 157, 232, 0.08);
      --diff-ins: #1b3822;
      --diff-del: #441a1a;

      /* JSON Syntax Colors (Dark) */
      --json-key: #6cb2ff;
      --json-str: #5cdb84;
      --json-num: #ff9b42;
      --json-bool: #b085ff;
      --json-null: #9a9890;
      --json-brace: #bfbbb5;
    }

    /* Base Styling */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    body {
      font-family: 'DM Sans', sans-serif;
      background-color: var(--bg);
      color: var(--text);
      line-height: 1.5;
      transition: background-color .15s ease, color .15s ease;
    }
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 20px;
    }

    /* Common Components */
    button, select {
      font-family: inherit;
      cursor: pointer;
      border: none;
      background: none;
      outline: none;
      transition: all .15s ease;
    }
    .icon-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      color: var(--text);
    }
    .icon-btn:hover {
      background-color: var(--surface2);
    }

    /* Sticky Header */
    header {
      position: sticky;
      top: 0;
      z-index: 1000;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 20px;
      background-color: var(--bg);
      border-bottom: 1px solid var(--border);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      transition: background-color .15s ease, box-shadow .15s ease;
    }
    header.scrolled {
      background-color: color-mix(in srgb, var(--bg) 88%, transparent);
      box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    }
    [data-theme="dark"] header.scrolled {
      box-shadow: 0 2px 16px rgba(0,0,0,0.35);
    }

    /* Nav Menu */
    .nav-menu {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-right: 12px;
    }
    .nav-link {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-muted);
      padding: 7px 14px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      border: none;
      background: none;
      font-family: inherit;
      transition: all .15s ease;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
    }
    .nav-link:hover {
      background-color: var(--surface2);
      color: var(--text);
    }
    .nav-link.active {
      background-color: var(--accent-bg);
      color: var(--accent);
      font-weight: 600;
    }
    .header-right {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    /* Section Anchors — offset for sticky header (~68px) */
    .section-anchor {
      scroll-margin-top: 80px;
    }

    /* Tools Guide Section */
    .tools-guide-section {
      margin-top: 40px;
    }
    .tools-guide-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 20px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 16px;
    }
    .tools-guide-title svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
    .tools-guide-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .tool-guide-card {
      background-color: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 24px 28px;
      display: flex;
      align-items: flex-start;
      gap: 24px;
      transition: border-color .15s ease, box-shadow .15s ease;
    }
    /* .tool-guide-card:hover {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-bg);
    } */
    .tool-guide-card-left {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
      width: 60px;
    }
    .tool-guide-icon {
      width: 44px;
      height: 44px;
      border-radius: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 800;
      flex-shrink: 0;
    }
    .tool-guide-card-body {
      flex: 1;
      min-width: 0;
    }
    .tool-guide-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
      gap: 16px;
      flex-wrap: wrap;
    }
    .tool-guide-card-title {
      font-size: 16px;
      font-weight: 700;
      color: var(--text);
    }
    .tool-guide-card-desc {
      margin-bottom: 1.25rem;
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 14px;
    }
    .tool-guide-card-steps {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .tool-guide-step {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 12.5px;
      color: var(--text-muted);
      background-color: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 4px 10px 4px 5px;
      line-height: 1.4;
    }
    .tool-guide-step-num {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background-color: var(--accent-bg);
      color: var(--accent);
      font-size: 10px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .go-to-tool-btn {
      font-size: 12px;
      font-weight: 600;
      color: var(--accent);
      background-color: var(--accent-bg);
      border: none;
      border-radius: var(--radius-sm);
      padding: 6px 14px;
      cursor: pointer;
      font-family: inherit;
      transition: all .15s ease;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .go-to-tool-btn:hover {
      background-color: var(--accent);
      color: #fff;
    }
    @media (max-width: 600px) {
      .tool-guide-card { flex-direction: column; gap: 12px; padding: 18px; }
      .tool-guide-card-left { flex-direction: row; width: auto; }
      .tool-guide-card-header { flex-direction: column; align-items: flex-start; }
    }
    .tool-guide-example {
      background-color: var(--surface2);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 10px 14px;
      margin-bottom: 14px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12.5px;
      line-height: 1.6;
      color: var(--text-muted);
    }
    .tool-guide-example-label {
      font-family: inherit;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 4px;
    }
    .tool-guide-example-row { display: flex; gap: 8px; }
    .tool-guide-example-row + .tool-guide-example-row { margin-top: 8px; }
    .tool-guide-example pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-family: inherit; }
    .tool-guide-example-arrow { color: var(--text-muted); flex-shrink: 0; }
    .tool-guide-example-changed { color: var(--accent); font-weight: 700; }
    .tool-guide-example-diff-line { display: block; padding: 1px 4px; border-radius: 4px; }
    .tool-guide-example-diff-line.ins { background-color: var(--diff-ins); }
    .tool-guide-example-diff-line.del { background-color: var(--diff-del); }

    /* Support / Donate Section */
    .support-section {
      margin-top: 40px;
    }
    .support-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 20px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 16px;
    }
    .support-title svg { width: 14px; height: 14px; fill: currentColor; }
    .support-card {
      background-color: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 32px 36px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
    }
    .support-card-text h3 {
      font-size: 18px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 8px;
    }
    .support-card-text p {
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.6;
      max-width: 480px;
    }
    .donate-options {
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-width: 200px;
    }
    .donate-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 11px 20px;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      border: none;
      transition: all .15s ease;
      text-decoration: none;
    }
    .donate-btn-primary {
      background-color: var(--accent);
      color: #fff;
    }
    .donate-btn-primary:hover { background-color: var(--accent-hover); }
    .donate-btn-secondary {
      background-color: var(--surface2);
      color: var(--text);
      border: 1px solid var(--border-strong);
    }
    .donate-btn-secondary:hover {
      background-color: var(--accent-bg);
      color: var(--accent);
      border-color: var(--accent);
    }

    /* Contact Section */
    .contact-section {
      margin-top: 40px;
    }
    .contact-title {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 20px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 16px;
    }
    .contact-title svg { width: 14px; height: 14px; fill: currentColor; }
    .contact-card {
      background-color: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 28px 32px;
      max-width: 600px;
      margin: 0 auto;
    }
    .contact-card h3 {
      font-size: 16px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 6px;
    }
    .contact-card .contact-subtitle {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 20px;
    }
    .privacy-section {
      margin-top: 40px;
    }
    .privacy-title {
      font-size: 20px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: 0.08em;
      text-align: center;
      text-transform: uppercase;
      margin-bottom: 16px;
    }
    .privacy-card {
      background-color: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 28px 32px;
      color: var(--text-muted);
      font-size: 14px;
      line-height: 1.7;
    }
    .privacy-card h3 {
      color: var(--text);
      font-size: 15px;
      margin: 20px 0 6px;
    }
    .privacy-card h3:first-child {
      margin-top: 0;
    }
    .privacy-card p + p {
      margin-top: 8px;
    }
    .privacy-card ul {
      padding-left: 22px;
    }
    .privacy-card a {
      color: var(--accent);
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    @media (max-width: 600px) {
      .privacy-card { padding: 20px; }
    }
    .contact-form-group {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 16px;
    }
    .contact-form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .contact-field {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    .contact-field label {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-faint);
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }
    .contact-input {
      background-color: var(--surface2);
      border: 1px solid var(--border-strong);
      border-radius: var(--radius-sm);
      padding: 9px 12px;
      font-size: 13px;
      color: var(--text);
      font-family: inherit;
      outline: none;
      transition: border-color .15s ease, box-shadow .15s ease;
      width: 100%;
    }
    .contact-input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(29, 95, 168, 0.15);
    }
    [data-theme="dark"] .contact-input:focus {
      box-shadow: 0 0 0 3px rgba(91, 157, 232, 0.15);
    }
    textarea.contact-input {
      resize: vertical;
      min-height: 110px;
      line-height: 1.5;
    }
    .contact-send-btn {
      background-color: var(--accent);
      color: #fff;
      padding: 10px 22px;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 600;
      border: none;
      cursor: pointer;
      font-family: inherit;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      transition: all .15s ease;
    }
    .contact-send-btn:hover { background-color: var(--accent-hover); }
    .contact-send-btn svg { width: 14px; height: 14px; fill: currentColor; }
    .contact-send-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
    .contact-success {
      display: none;
      align-items: center;
      gap: 10px;
      padding: 12px 16px;
      background-color: var(--green-bg);
      border: 1px solid var(--green);
      border-radius: var(--radius-sm);
      font-size: 13px;
      color: var(--green);
      font-weight: 500;
      margin-top: 12px;
    }
    .contact-success.show { display: flex; }

    @media (max-width: 600px) {
      .nav-menu { display: none; }
      .contact-form-row { grid-template-columns: 1fr; }
      .support-card { flex-direction: column; }
    }
    .logo-container h1 {
      font-size: 24px;
      font-weight: 400;
    }
    .logo-container h1 span {
      color: var(--accent);
      font-weight: 800;
    }
    .logo-subtitle {
      font-size: 12px;
      color: var(--text-faint);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-top: 2px;
    }
    #theme-toggle {
      width: 36px;
      height: 36px;
      border: 1px solid var(--border);
    }

    /* Tab Bar */
    .tab-bar {
      display: flex;
      background-color: var(--surface2);
      padding: 4px;
      border-radius: var(--radius-lg);
      margin-bottom: 24px;
      gap: 2px;
    }
    .tab-btn {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 16px;
      border-radius: var(--radius-md);
      color: var(--text-muted);
      font-size: 14px;
      font-weight: 500;
    }
    .tab-btn svg {
      width: 16px;
      height: 16px;
      fill: none;
      stroke: currentColor;
      flex-shrink: 0;
    }
    .tab-btn[aria-selected="true"] {
      background-color: var(--accent);
      color: #ffffff;
      box-shadow: var(--shadow);
    }
    .tab-btn[aria-selected="true"] svg {
      stroke: #ffffff;
    }
    .tab-btn:not([aria-selected="true"]):hover {
      background-color: var(--surface);
      color: var(--text);
    }

    /* Main Tool Card */
    .main-card {
      background-color: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow);
      overflow: hidden;
      margin-bottom: 32px;
    }
    .section-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-faint);
      letter-spacing: 0.08em;
      padding: 14px 20px 8px 20px;
      display: block;
    }

    /* Advanced Textarea with Line Numbers UI */
    .input-wrapper {
      padding: 0 20px 16px 20px;
    }
    .editor-container-wrapper {
      display: flex;
      gap: 16px;
    }
    .editor-container {
      flex: 1;
      display: flex;
      position: relative;
      background-color: var(--surface2);
      border: 1px solid var(--border-strong);
      border-radius: var(--radius-md);
      overflow: hidden;
      height: 320px;
    }
    .editor-container.focused {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(29, 95, 168, 0.15);
    }
    [data-theme="dark"] .editor-container.focused {
      box-shadow: 0 0 0 3px rgba(91, 157, 232, 0.15);
    }

    .line-numbers-col {
      width: 42px;
      background-color: rgba(0,0,0,0.02);
      border-right: 1px solid var(--border);
      padding: 14px 8px 14px 0;
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      color: var(--text-faint);
      text-align: right;
      user-select: none;
      overflow: hidden;
      line-height: 1.6;
    }
    .ln-line {
      height: 20.8px;
      padding-right: 4px;
      transition: color .1s ease, background-color .1s ease;
    }
    .ln-line.active-ln {
      color: var(--accent);
      font-weight: bold;
      background-color: var(--line-active-bg);
      border-radius: 2px;
    }

    .textarea-spacer {
      flex: 1;
      position: relative;
    }
    textarea {
      width: 100%;
      height: 100%;
      resize: none;
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      line-height: 1.6;
      background: transparent;
      border: none;
      color: var(--text);
      padding: 14px;
      outline: none;
      overflow-y: auto;
      white-space: pre;
    }

    /* Toolbar */
    .toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 20px;
      border-top: 1px solid var(--border);
      background-color: var(--surface);
    }
    .toolbar-left, .toolbar-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    /* Buttons */
    .btn-primary {
      background-color: var(--accent);
      color: #ffffff;
      padding: 8px 16px;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .btn-primary:hover {
      background-color: var(--accent-hover);
    }
    .btn-primary svg {
      width: 14px;
      height: 14px;
      fill: currentColor;
    }
    
    .select-indent {
      background-color: var(--surface2);
      border: 1px solid var(--border-strong);
      border-radius: var(--radius-sm);
      padding: 7px 12px;
      font-size: 13px;
      color: var(--text);
      outline: none;
    }
    
    .btn-ghost {
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 500;
      padding: 8px 12px;
      border-radius: var(--radius-sm);
    }
    .btn-ghost:hover {
      background-color: var(--surface2);
      color: var(--text);
    }
    .btn-ghost-danger:hover {
      background-color: var(--red-bg);
      color: var(--red);
    }

    /* Output Header & Badges */
    .output-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid var(--border);
      padding-right: 14px;
    }
    .output-header-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .badge {
      font-size: 10px;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 4px;
      letter-spacing: 0.02em;
    }
    .badge-valid { background-color: var(--green-bg); color: var(--green); }
    .badge-invalid { background-color: var(--red-bg); color: var(--red); }
    .badge-info { background-color: var(--accent-bg); color: var(--accent); }
    
    .output-actions {
      display: flex;
      gap: 4px;
    }
    .action-btn {
      width: 30px;
      height: 30px;
      color: var(--text-muted);
    }
    .action-btn:hover { color: var(--text); }
    .action-btn svg { width: 16px; height: 16px; fill: currentColor; }

    /* Output Box Layout */
    .output-box {
      background-color: var(--surface2);
      border-top: 1px solid var(--border);
      min-height: 100px;
      max-height: 500px;
      overflow: hidden;
      display: flex;
    }
    .output-ln-col {
      width: 42px;
      min-width: 42px;
      background-color: rgba(0,0,0,0.02);
      border-right: 1px solid var(--border);
      padding: 16px 8px 16px 0;
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      color: var(--text-faint);
      text-align: right;
      user-select: none;
      overflow: hidden;
      line-height: 1.6;
      flex-shrink: 0;
    }
    .output-ln-col .ln-line {
      height: 20.8px;
      padding-right: 4px;
    }
    .output-content-scroll {
      flex: 1;
      overflow: auto;
      padding: 16px 20px;
    }
    .output-placeholder {
      font-style: italic;
      color: var(--text-faint);
    }
    .output-render-wrapper {
      position: relative;
    }
    .output-pre {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      line-height: 1.6;
      white-space: pre;
    }

    /* Compare Text Specific Views */
    .compare-row {
      display: flex;
      min-height: 20.8px;
    }
    .compare-row.ins { background-color: var(--diff-ins); }
    .compare-row.del { background-color: var(--diff-del); }
    .compare-mark {
      width: 24px;
      user-select: none;
      color: var(--text-faint);
      font-weight: bold;
      padding-left: 4px;
    }

    /* JSON Interactive Tree Structure */
    .jt-node {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      line-height: 1.6;
    }
    .jt-row {
      display: flex;
      align-items: flex-start;
      transition: background-color 0.1s ease;
      min-height: 20.8px;
    }
    .jt-row:hover {
      background-color: var(--line-active-bg);
    }
    .jt-spacer {
      width: 20px;
      flex-shrink: 0;
    }
    .jt-toggle {
      width: 14px;
      height: 14px;
      margin-right: 6px;
      border-radius: 3px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: monospace;
      font-size: 11px;
      font-weight: bold;
      border: 1px solid var(--border-strong);
      background-color: var(--surface);
      color: var(--text-muted);
      flex-shrink: 0;
      margin-top: 3px;
    }
    .jt-toggle:hover {
      background-color: var(--accent);
      color: #ffffff;
      border-color: var(--accent);
    }
    .jt-children {
      margin-left: 8px;
      border-left: 1.5px solid var(--border);
      padding-left: 12px;
    }
    .jt-children.collapsed {
      display: none;
    }
    
    /* JSON Syntax Colors Styling */
    .j-key { color: var(--json-key); font-weight: bold; margin-right: 4px; }
    .j-str { color: var(--json-str); }
    .j-num { color: var(--json-num); }
    .j-bool { color: var(--json-bool); font-weight: bold; }
    .j-null { color: var(--json-null); font-style: italic; }
    .j-brace, .j-comma { color: var(--json-brace); }

    /* Stats Bar */
    .stats-bar {
      display: flex;
      gap: 12px;
      padding: 10px 20px;
      background-color: var(--surface);
      border-top: 1px solid var(--border);
      font-size: 12px;
      color: var(--text-muted);
    }
    .stats-bar span strong {
      color: var(--text);
    }

    /* Fullscreen Overlay */
    .fullscreen-overlay {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background-color: var(--surface2);
      display: flex;
      flex-direction: column;
    }
    .fs-header {
      background-color: var(--surface);
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 24px;
    }
    .fs-content {
      flex: 1;
      overflow: hidden;
      background-color: var(--surface2);
      display: flex;
    }
    .fs-ln-col {
      width: 52px;
      min-width: 52px;
      background-color: rgba(0,0,0,0.02);
      border-right: 1px solid var(--border);
      padding: 24px 8px 24px 0;
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      color: var(--text-faint);
      text-align: right;
      user-select: none;
      overflow: hidden;
      line-height: 1.6;
      flex-shrink: 0;
    }
    .fs-ln-col .ln-line {
      height: 20.8px;
      padding-right: 4px;
    }
    .fs-content-scroll {
      flex: 1;
      padding: 24px 32px;
      overflow: auto;
    }
    .fs-footer {
      background-color: var(--surface);
      border-top: 1px solid var(--border);
      padding: 12px 24px;
    }
    .btn-exit-fs {
      border: 1px solid var(--border-strong);
      padding: 6px 12px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 500;
      color: var(--text-muted);
      margin-left: 12px;
    }
    .btn-exit-fs:hover {
      background-color: var(--red-bg);
      color: var(--red);
      border-color: var(--red);
    }

    /* Recent History Section */
    .history-section {
      margin-top: 32px;
    }
    .history-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      font-weight: 700;
      color: var(--text-faint);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 12px;
    }
    .history-title svg { width: 14px; height: 14px; fill: currentColor; }
    .history-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .history-item {
      background-color: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 18px 20px;
      min-height: 120px;
      display: flex;
      align-items: flex-start;
      gap: 16px;
      cursor: pointer;
      transition: border .15s ease, box-shadow .15s ease;
    }
    .history-item:hover {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-bg);
    }
    .history-badge {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 800;
      flex-shrink: 0;
    }
    .hb-json { background-color: var(--accent-bg); color: var(--accent); }
    .hb-up { background-color: var(--amber-bg); color: var(--amber); }
    .hb-lc { background-color: var(--green-bg); color: var(--green); }
    .hb-min { background-color: var(--red-bg); color: var(--red); }
    .hb-comp { background-color: rgba(29, 95, 168, 0.15); color: var(--accent); }
    
    .history-center {
      flex: 1;
      min-width: 0;
    }
    .history-top-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }
    .history-tab-pill {
      font-size: 11px;
      font-weight: 700;
      padding: 2px 10px;
      border-radius: 999px;
    }
    .history-ts {
      font-size: 12px;
      color: var(--text-faint);
    }
    .history-preview {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      line-height: 1.55;
      color: var(--text-muted);
      white-space: pre-wrap;
      word-break: break-all;
      display: -webkit-box;
      -webkit-line-clamp: 5;
      line-clamp: 5;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-bottom: 6px;
    }
    .history-hint {
      font-size: 11px;
      color: var(--text-faint);
    }
    .btn-trash {
      width: 28px;
      height: 28px;
      color: var(--text-faint);
    }
    .btn-trash:hover {
      background-color: var(--red-bg);
      color: var(--red);
    }
    .btn-trash svg { width: 14px; height: 14px; fill: currentColor; }
    
    .history-empty {
      text-align: center;
      padding: 32px;
      color: var(--text-faint);
      border: 1px dashed var(--border-strong);
      border-radius: var(--radius-lg);
      font-style: italic;
      font-size: 14px;
    }

    /* ---- UX additions: label row, mini buttons, JSON errors, tree tools, drag & drop ---- */
    .input-labels { display: flex; gap: 16px; padding: 0 20px; }
    .label-cell {
      flex: 1;
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .label-cell .section-label { padding-left: 0; padding-right: 0; }
    .label-cell .btn-mini { margin-top: 6px; }
    .btn-mini {
      background: none;
      cursor: pointer;
      font-family: inherit;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      padding: 4px 10px;
      border: 1px solid var(--border-strong);
      border-radius: var(--radius-sm);
      white-space: nowrap;
    }
    .btn-mini:hover { background-color: var(--surface2); color: var(--text); }
    .opt-check {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: var(--text-muted);
      cursor: pointer;
      user-select: none;
    }
    .output-header { flex-wrap: wrap; row-gap: 4px; }
    .output-actions { align-items: center; }
    .stats-bar { flex-wrap: wrap; }
    .stats-bar .diff-add { color: var(--green); font-weight: 600; }
    .stats-bar .diff-del { color: var(--red); font-weight: 600; }

    /* Drag & drop file loading */
    .editor-container.drag-over {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-bg);
    }
    .editor-container.drag-over::after {
      content: 'Drop file to load';
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: var(--accent-bg);
      color: var(--accent);
      font-weight: 700;
      font-size: 14px;
      opacity: 0.94;
      pointer-events: none;
    }

    /* JSON error details */
    .ln-line.err-ln {
      color: var(--red);
      font-weight: bold;
      background-color: var(--red-bg);
      border-radius: 2px;
    }
    .jerr { font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6; }
    .jerr-title { color: var(--red); font-weight: 700; font-size: 14px; margin-bottom: 4px; }
    .jerr-msg { color: var(--text); margin-bottom: 10px; white-space: normal; }
    .jerr-snippet {
      background-color: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 10px 12px;
      margin: 0 0 10px 0;
      overflow-x: auto;
      white-space: pre;
      font-family: inherit;
      font-size: 13px;
      line-height: 1.6;
    }
    .jerr-snippet .sn-ln { color: var(--text-faint); }
    .jerr-snippet .sn-bad { background-color: var(--red-bg); }
    .jerr-caret { color: var(--red); font-weight: 700; }
    .jerr-hint { color: var(--text-muted); margin-bottom: 10px; white-space: normal; }

    /* Tree tools (search / expand / collapse) and copy-path */
    .tree-tools {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      margin: 0 8px 0 auto;
    }
    .tree-search {
      width: 170px;
      font-family: inherit;
      font-size: 12px;
      padding: 5px 8px;
      border: 1px solid var(--border-strong);
      border-radius: var(--radius-sm);
      background-color: var(--surface2);
      color: var(--text);
      outline: none;
    }
    .tree-search:focus { border-color: var(--accent); }
    .tree-search-count { font-size: 12px; color: var(--text-muted); min-width: 52px; text-align: center; }
    .jt-row.jt-match { background-color: rgba(255, 200, 0, 0.20); }
    .jt-row.jt-match-current { background-color: rgba(255, 160, 0, 0.42); outline: 1px solid var(--amber); }
    .jt-path-btn {
      opacity: 0;
      margin-left: 8px;
      margin-top: 2px;
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      border-radius: 3px;
      color: var(--text-faint);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: none;
      cursor: pointer;
    }
    .jt-row:hover .jt-path-btn, .jt-path-btn:focus-visible { opacity: 1; }
    .jt-path-btn:hover { background-color: var(--accent); color: #ffffff; }
    .jt-path-btn svg { width: 11px; height: 11px; fill: currentColor; }
    @media (hover: none) { .jt-path-btn { opacity: 0.6; } }

    /* History extras */
    .history-count { font-weight: 600; letter-spacing: 0; }
    .history-clear-btn {
      margin-left: auto;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0;
      text-transform: none;
      color: var(--text-faint);
      padding: 4px 10px;
      border-radius: var(--radius-sm);
      background: none;
      cursor: pointer;
    }
    .history-clear-btn:hover, .history-clear-btn.confirm { background-color: var(--red-bg); color: var(--red); }

    /* Toast Notification */
    .toast {
      position: fixed;
      bottom: 28px;
      right: 28px;
      background-color: var(--text);
      color: var(--bg);
      padding: 10px 18px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 500;
      box-shadow: var(--shadow);
      z-index: 10000;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .2s ease, transform .2s ease;
      pointer-events: none;
    }
    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    .hidden { display: none !important; }

    /* Footer */
    footer {
      background-color: var(--accent);
      color: #ffffff;
      margin-top: 56px;
      padding: 28px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }
    .footer-brand {
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.02em;
      opacity: 1;
    }
    .footer-brand span {
      opacity: 0.7;
      font-weight: 400;
    }
    .footer-note {
      font-size: 12px;
      opacity: 0.75;
      text-align: right;
    }
    .footer-policy-link {
      color: #ffffff;
      font-size: 13px;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .footer-policy-link:hover {
      opacity: 0.8;
    }
    @media (max-width: 600px) {
      footer { flex-direction: column; align-items: flex-start; }
      .footer-note { text-align: left; }
    }

    /* Responsive Design */
    @media (max-width: 600px) {
      .tab-bar { flex-wrap: wrap; }
      .tab-btn { font-size: 12px; padding: 8px 10px; min-width: 90px; }
      .editor-container-wrapper { flex-direction: column; }
      .toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
      .toolbar-left, .toolbar-right { justify-content: space-between; flex-wrap: wrap; }
      .input-labels { flex-direction: column; gap: 0; }
      .tree-tools { margin-left: 0; padding: 0 14px 8px 20px; width: 100%; }
      .tree-search { flex: 1; min-width: 120px; }
    }
.page{max-width:860px;margin:0 auto;padding:8px 4px 40px;color:var(--text);line-height:1.7;font-size:16px}
.page h1{font-size:32px;line-height:1.2;margin:18px 0 10px}.page h2{font-size:22px;margin:32px 0 8px}.page h3{font-size:17px;margin:20px 0 4px}
.page p,.page li{color:var(--text)}.page a{color:var(--accent)}.page .lead{font-size:18px;color:var(--text-muted)}
.page code,.page pre{font-family:'JetBrains Mono',monospace;font-size:13.5px;background:var(--surface2);border-radius:6px}.page code{padding:1px 5px}
.page pre{padding:12px 14px;overflow-x:auto;border:1px solid var(--border)}
.crumbs{font-size:13px;color:var(--text-muted);margin:6px 0}.crumbs a{color:var(--text-muted)}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:16px 0}
.card{display:block;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:16px;text-decoration:none!important;color:var(--text)!important;box-shadow:var(--shadow)}
.card b{display:block;margin-bottom:4px;color:var(--accent)}.card span{font-size:14px;color:var(--text-muted)}
.faq h3{margin-top:16px}.related{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.related a{background:var(--accent-bg);padding:5px 12px;border-radius:99px;text-decoration:none;font-size:14px}
.nav-a{font:inherit;font-size:15px;color:var(--text-muted);text-decoration:none;padding:6px 10px;border-radius:var(--radius-sm)}.nav-a:hover{color:var(--text);background:var(--surface2)}
.nav-menu{display:flex;gap:2px;flex-wrap:wrap}.logo-container a{text-decoration:none;color:inherit}
.footer-links{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:center;margin:6px 0}.footer-links a{color:var(--text-muted);font-size:14px}
.tool-wrap{margin-top:8px}
body{min-height:100vh;display:flex;flex-direction:column}
.container{flex:1 0 auto;width:100%}
footer{margin-top:auto;flex-shrink:0}
.footer-links a{color:#fff;opacity:.9}.footer-links a:hover{opacity:1}
