  :root {
    --bg: #fafcff;
    --surface: #ffffff;
    --card: #fafcff;
    --border: #e0ddd8;
    --border-focus: #3b82f6;
    --accent: #3b82f6;
    --accent-light: #eff6ff;
    --text: #1a1a1a;
    --muted: #888580;
    --mono: 'Space Mono', monospace;
    --sans: 'Syne', sans-serif;
  }
  
  .app-container {
    background: var(--surface);
    color: var(--text);
    font-family: var(--sans);
    display: grid;
    grid-template-columns: 340px 1fr;
    grid-template-rows: auto 1fr;
	border: 1px solid var(--border);
	border-radius: 16px;
  }

  .tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    padding: 0 16px;
    flex-shrink: 0;
  }

  .tab-btn {
    font-family: var(--mono);
    font-size: 0.85rem;
    padding: 10px 14px;
    border: none;
    background: none;
    color: var(--text);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.12s;
  }

  .tab-btn:hover { color: var(--text); }
  .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

  aside {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    overflow: hidden;
	border-radius:16px 0 0 16px;
  }

  .panel {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    overflow-y: auto;
    flex: 1;
  }

  .panel.active { display: flex; }

  .section-label {
    font-family: var(--mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 6px;
  }

  .preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }

  .preset-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.75rem;
    padding: 6px 9px;
    cursor: pointer;
    border-radius: 6px;
    text-align: left;
    transition: all 0.12s;
  }

  .preset-btn:hover { border-color: var(--accent); background: var(--accent-light); }
  .preset-btn.active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); font-weight: 700; }

  .control-group { display: flex; flex-direction: column; gap: 5px; }
  .app-container label { font-family: var(--mono); font-size: 0.75rem; color: var(--text); }

  .app-container input[type="text"], .app-container input[type="number"], .app-container select, .app-container textarea {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.7rem;
    padding: 6px 9px;
    border-radius: 6px;
    outline: none;
    width: 100%;
    transition: border-color 0.12s;
  }

  .app-container input:focus, .app-container select:focus, .app-container textarea:focus { border-color: var(--border-focus); }
  .app-container textarea { resize: vertical; min-height: 54px; }
  .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .divider { border: none; border-top: 1px solid var(--border); flex-shrink: 0; }

  .code-block {
	grid-column: 1 / -1;
    margin-top:20px;
  }

  .style-group { }

  .style-group-title {
    font-family: var(--mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    padding: 8px 4px 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-top: 1px solid var(--border);
  }

  .style-group-title:hover { color: var(--muted); }
  .chevron { font-size: 1rem; transition: transform 0.15s; display: inline-block; }
  .style-group.collapsed .chevron { transform: rotate(-90deg); }
  .style-group.collapsed .style-group-items { display: none; }
  .style-group-items { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; }

  .style-item-btn {
    background: none;
    border: 1px solid transparent;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text);
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: all 0.1s;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    width: 100%;
  }

  .style-item-btn:hover { background: var(--accent-light); border-color: var(--border); }
  .style-item-btn.active { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

  .item-name { flex-shrink: 0; }
  .item-preview { color: var(--muted); font-size: 0.6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
  .style-item-btn.active .item-preview { color: var(--accent); opacity: 0.7; }

  main {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--surface);
	border-radius:0 16px 16px 0;
  }

  .preview-heading-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .preview-heading {
    font-size: 0.85rem;
    font-family: var(--mono);
    color: var(--text);
    /*text-transform: uppercase;*/
    letter-spacing: 0.1em;
  }

  .mode-badge {
    font-family: var(--mono);
    font-size: 0.58rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--accent-light);
    color: var(--accent);
  }

  .lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;position:sticky;top:80px;
  }

  .list-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    transition: border-color 0.15s, box-shadow 0.15s;
  }

  .list-card:hover { 
    border-color: #bfdbfe; 
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.07); 
  }

  .list-card-title {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }

  .preview-list {
    list-style-type: decimal;
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .preview-list li, .native-list li {
    font-size: 0.86rem;
    color: var(--text);
    line-height: 1.5;
    padding-left: 3px;
  }

  .preview-list li::marker, .native-list li::marker {
    font-family: var(--mono);
    color: var(--accent);
    /*font-size: 0.85em;*/
  }

  .native-list {
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .code-card {
    grid-column: 1 / -1;
  }
  
  .about-block h4 {
	margin-bottom:5px;  
  }


  @media (max-width: 720px) {
    .app-container { grid-template-columns: 1fr; }
    aside { border-right: none; border-bottom: 1px solid var(--border); max-height: 55vh; }
    main { padding: 20px; }
  }
  
   .comparison-table {
      width: 100%;
      border-collapse: collapse;
      margin: 1.5em 0;
      font-size: 0.95em;
    }
    .comparison-table th {
      background: #4a90d9;
      color: #fff;
      padding: 10px 14px;
      text-align: left;
    }
    .comparison-table td {
      padding: 9px 14px;
      border-bottom: 1px solid #e0e0e0;
    }
    .comparison-table tr:nth-child(even) td {
      background: #f5f8fd;
    }
    .comparison-table code {
      background: #e8f0fb;
      padding: 2px 6px;
      border-radius: 3px;
    }
    .yes { color: #2a9d2a; font-weight: bold; }
    .no  { color: #c0392b; font-weight: bold; }
    .both { color: #d47c00; font-weight: bold; }
    /* --- FAQ --- */
    .faq-section {
      margin: 2em 0;
    }
    .faq-item {
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      margin-bottom: 1em;
      overflow: hidden;
    }
    .faq-item summary {
      padding: 1em 1.2em;
      font-weight: bold;
      cursor: pointer;
      background: #f8f9fa;
      list-style: none;
    }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary::before {
      content: '+ ';
      color: #4a90d9;
      font-weight: bold;
    }
    .faq-item[open] summary::before {
      content: '− ';
    }
    .faq-item p {
      padding: 1em 1.2em;
      margin: 0;
      border-top: 1px solid #e0e0e0;
    }
    .faq-item code {
      background: #e8f0fb;
      padding: 2px 6px;
      border-radius: 3px;
      font-size: 0.92em;
    }