/* ============================================================
   Theme Variables
   ============================================================ */

/* --- GitHub Light (default) --- */
:root,
[data-theme="github"] {
  --bg:              #f6f8fa;
  --surface:         #ffffff;
  --border:          #d0d7de;
  --text:            #24292f;
  --text-muted:      #57606a;
  --link:            #0969da;

  --nav-bg:          #24292f;
  --nav-text:        #ffffff;
  --nav-link:        #e6edf3;
  --nav-link-hover:  #ffffff;

  --btn-bg:          #f6f8fa;
  --btn-text:        #24292f;
  --btn-border:      rgba(31,35,40,0.15);
  --btn-hover-bg:    #eaeef2;

  --input-bg:        #ffffff;
  --input-border:    #d0d7de;
  --input-text:      #24292f;
  --input-focus:     #0969da;
  --input-focus-shadow: rgba(9,105,218,0.15);

  --flash-notice-bg:     #dafbe1;
  --flash-notice-border: #82e6a4;
  --flash-notice-text:   #116329;
  --flash-alert-bg:      #ffebe9;
  --flash-alert-border:  #ffb8b0;
  --flash-alert-text:    #82071e;

  --lang-badge-bg:   #ddf4ff;
  --lang-badge-text: #0550ae;

  --code-bg:         #f6f8fa;
  --inline-code-bg:  #eaeef2;
  --card-title:      #0969da;
  --heading-border:  #d0d7de;

  --form-err-bg:     #ffebe9;
  --form-err-border: #ffb8b0;
  --form-err-text:   #82071e;

  --hl-bg:       #f6f8fa;
  --hl-text:     #24292f;
  --hl-keyword:  #cf222e;
  --hl-constant: #0550ae;
  --hl-string:   #0a3069;
  --hl-comment:  #6e7781;
  --hl-function: #8250df;
  --hl-class:    #953800;
  --hl-operator: #0550ae;
  --hl-tag:      #116329;
  --hl-interp:   #24292f;
  --hl-del-bg:   #ffebe9;
  --hl-del-text: #82071e;
  --hl-add-bg:   #dafbe1;
  --hl-add-text: #116329;
  --hl-err-bg:   #82071e;
  --hl-err-text: #f6f8fa;
}

/* --- Gruvbox Light --- */
[data-theme="gruvbox-light"] {
  --bg:              #f2e5bc;
  --surface:         #fbf1c7;
  --border:          #d5c4a1;
  --text:            #3c3836;
  --text-muted:      #665c54;
  --link:            #076678;

  --nav-bg:          #3c3836;
  --nav-text:        #fbf1c7;
  --nav-link:        #d5c4a1;
  --nav-link-hover:  #fbf1c7;

  --btn-bg:          #f2e5bc;
  --btn-text:        #3c3836;
  --btn-border:      rgba(60,56,54,0.25);
  --btn-hover-bg:    #ebdbb2;

  --input-bg:        #fbf1c7;
  --input-border:    #d5c4a1;
  --input-text:      #3c3836;
  --input-focus:     #076678;
  --input-focus-shadow: rgba(7,102,120,0.2);

  --flash-notice-bg:     #e0e5b6;
  --flash-notice-border: #98971a;
  --flash-notice-text:   #427b58;
  --flash-alert-bg:      #f9d8b4;
  --flash-alert-border:  #d65d0e;
  --flash-alert-text:    #9d0006;

  --lang-badge-bg:   #ebdbb2;
  --lang-badge-text: #076678;

  --code-bg:         #f2e5bc;
  --inline-code-bg:  #ebdbb2;
  --card-title:      #076678;
  --heading-border:  #d5c4a1;

  --form-err-bg:     #f9d8b4;
  --form-err-border: #d65d0e;
  --form-err-text:   #9d0006;

  --hl-bg:       #f2e5bc;
  --hl-text:     #3c3836;
  --hl-keyword:  #9d0006;
  --hl-constant: #8f3f71;
  --hl-string:   #79740e;
  --hl-comment:  #928374;
  --hl-function: #b57614;
  --hl-class:    #af3a03;
  --hl-operator: #af3a03;
  --hl-tag:      #427b58;
  --hl-interp:   #3c3836;
  --hl-del-bg:   #f9d8b4;
  --hl-del-text: #9d0006;
  --hl-add-bg:   #e0e5b6;
  --hl-add-text: #427b58;
  --hl-err-bg:   #9d0006;
  --hl-err-text: #fbf1c7;
}

/* --- Tango Light --- */
[data-theme="tango-light"] {
  --bg:              #f3f3f3;
  --surface:         #ffffff;
  --border:          #d3d0c8;
  --text:            #2e3436;
  --text-muted:      #555753;
  --link:            #204a87;

  --nav-bg:          #2e3436;
  --nav-text:        #eeeeec;
  --nav-link:        #d3d0c8;
  --nav-link-hover:  #eeeeec;

  --btn-bg:          #eeeeec;
  --btn-text:        #2e3436;
  --btn-border:      rgba(46,52,54,0.2);
  --btn-hover-bg:    #d3d0c8;

  --input-bg:        #ffffff;
  --input-border:    #babdb6;
  --input-text:      #2e3436;
  --input-focus:     #3465a4;
  --input-focus-shadow: rgba(52,101,164,0.2);

  --flash-notice-bg:     #d5f5c8;
  --flash-notice-border: #73d216;
  --flash-notice-text:   #4e9a06;
  --flash-alert-bg:      #ffd7d5;
  --flash-alert-border:  #cc0000;
  --flash-alert-text:    #a40000;

  --lang-badge-bg:   #daeeff;
  --lang-badge-text: #204a87;

  --code-bg:         #f8f8f8;
  --inline-code-bg:  #eeeeec;
  --card-title:      #204a87;
  --heading-border:  #d3d0c8;

  --form-err-bg:     #ffd7d5;
  --form-err-border: #cc0000;
  --form-err-text:   #a40000;

  --hl-bg:       #f8f8f8;
  --hl-text:     #2e3436;
  --hl-keyword:  #a40000;
  --hl-constant: #204a87;
  --hl-string:   #4e9a06;
  --hl-comment:  #888a85;
  --hl-function: #5c3566;
  --hl-class:    #8f5902;
  --hl-operator: #ce5c00;
  --hl-tag:      #4e9a06;
  --hl-interp:   #2e3436;
  --hl-del-bg:   #ffd7d5;
  --hl-del-text: #a40000;
  --hl-add-bg:   #d5f5c8;
  --hl-add-text: #4e9a06;
  --hl-err-bg:   #a40000;
  --hl-err-text: #eeeeec;
}

/* --- Tango Dark --- */
[data-theme="tango-dark"] {
  --bg:              #2e3436;
  --surface:         #3a4144;
  --border:          #555753;
  --text:            #eeeeec;
  --text-muted:      #888a85;
  --link:            #729fcf;

  --nav-bg:          #1c2022;
  --nav-text:        #eeeeec;
  --nav-link:        #babdb6;
  --nav-link-hover:  #eeeeec;

  --btn-bg:          #555753;
  --btn-text:        #eeeeec;
  --btn-border:      rgba(255,255,255,0.1);
  --btn-hover-bg:    #6a6e6c;

  --input-bg:        #1c2022;
  --input-border:    #555753;
  --input-text:      #eeeeec;
  --input-focus:     #729fcf;
  --input-focus-shadow: rgba(114,159,207,0.25);

  --flash-notice-bg:     #1c3320;
  --flash-notice-border: #4e9a06;
  --flash-notice-text:   #8ae234;
  --flash-alert-bg:      #3a1c1c;
  --flash-alert-border:  #cc0000;
  --flash-alert-text:    #ef2929;

  --lang-badge-bg:   #1a2a3f;
  --lang-badge-text: #729fcf;

  --code-bg:         #242a2c;
  --inline-code-bg:  #3a4144;
  --card-title:      #729fcf;
  --heading-border:  #555753;

  --form-err-bg:     #3a1c1c;
  --form-err-border: #cc0000;
  --form-err-text:   #ef2929;

  --hl-bg:       #2e3436;
  --hl-text:     #eeeeec;
  --hl-keyword:  #ef2929;
  --hl-constant: #729fcf;
  --hl-string:   #8ae234;
  --hl-comment:  #888a85;
  --hl-function: #ad7fa8;
  --hl-class:    #fcaf3e;
  --hl-operator: #f57900;
  --hl-tag:      #73d216;
  --hl-interp:   #eeeeec;
  --hl-del-bg:   #3a1c1c;
  --hl-del-text: #ef2929;
  --hl-add-bg:   #1c3320;
  --hl-add-text: #8ae234;
  --hl-err-bg:   #cc0000;
  --hl-err-text: #eeeeec;
}

/* --- Twilight --- */
[data-theme="twilight"] {
  --bg:              #1e2431;
  --surface:         #252d3d;
  --border:          #374151;
  --text:            #e2e8f4;
  --text-muted:      #8892a4;
  --link:            #7ca3d4;

  --nav-bg:          #141921;
  --nav-text:        #e2e8f4;
  --nav-link:        #a8b8cc;
  --nav-link-hover:  #e2e8f4;

  --btn-bg:          #2d3748;
  --btn-text:        #e2e8f4;
  --btn-border:      rgba(255,255,255,0.1);
  --btn-hover-bg:    #374151;

  --input-bg:        #1a2232;
  --input-border:    #374151;
  --input-text:      #e2e8f4;
  --input-focus:     #7ca3d4;
  --input-focus-shadow: rgba(124,163,212,0.2);

  --flash-notice-bg:     #1a3a2a;
  --flash-notice-border: #2d6a4f;
  --flash-notice-text:   #74c69d;
  --flash-alert-bg:      #3a1a1a;
  --flash-alert-border:  #6d2828;
  --flash-alert-text:    #fca5a5;

  --lang-badge-bg:   #1e3a5f;
  --lang-badge-text: #7ca3d4;

  --code-bg:         #1a2232;
  --inline-code-bg:  #2d3748;
  --card-title:      #7ca3d4;
  --heading-border:  #374151;

  --form-err-bg:     #3a1a1a;
  --form-err-border: #6d2828;
  --form-err-text:   #fca5a5;

  --hl-bg:       #1a2232;
  --hl-text:     #e2e8f4;
  --hl-keyword:  #c792ea;
  --hl-constant: #82aaff;
  --hl-string:   #c3e88d;
  --hl-comment:  #546e7a;
  --hl-function: #82aaff;
  --hl-class:    #ffcb6b;
  --hl-operator: #89ddff;
  --hl-tag:      #f07178;
  --hl-interp:   #89ddff;
  --hl-del-bg:   #3a1a1a;
  --hl-del-text: #f07178;
  --hl-add-bg:   #1a3a2a;
  --hl-add-text: #c3e88d;
  --hl-err-bg:   #f07178;
  --hl-err-text: #1a2232;
}

/* --- Monokai --- */
[data-theme="monokai"] {
  --bg:              #272822;
  --surface:         #2d2d27;
  --border:          #49483e;
  --text:            #f8f8f2;
  --text-muted:      #75715e;
  --link:            #66d9e8;

  --nav-bg:          #1a1a15;
  --nav-text:        #f8f8f2;
  --nav-link:        #cfcfc2;
  --nav-link-hover:  #f8f8f2;

  --btn-bg:          #3e3d32;
  --btn-text:        #f8f8f2;
  --btn-border:      rgba(255,255,255,0.1);
  --btn-hover-bg:    #49483e;

  --input-bg:        #1a1a15;
  --input-border:    #49483e;
  --input-text:      #f8f8f2;
  --input-focus:     #66d9e8;
  --input-focus-shadow: rgba(102,217,232,0.2);

  --flash-notice-bg:     #1a2d15;
  --flash-notice-border: #a6e22e;
  --flash-notice-text:   #a6e22e;
  --flash-alert-bg:      #2d1818;
  --flash-alert-border:  #f92672;
  --flash-alert-text:    #f92672;

  --lang-badge-bg:   #1d2521;
  --lang-badge-text: #a6e22e;

  --code-bg:         #272822;
  --inline-code-bg:  #3e3d32;
  --card-title:      #66d9e8;
  --heading-border:  #49483e;

  --form-err-bg:     #2d1818;
  --form-err-border: #f92672;
  --form-err-text:   #f92672;

  --hl-bg:       #272822;
  --hl-text:     #f8f8f2;
  --hl-keyword:  #f92672;
  --hl-constant: #ae81ff;
  --hl-string:   #e6db74;
  --hl-comment:  #75715e;
  --hl-function: #a6e22e;
  --hl-class:    #66d9e8;
  --hl-operator: #f92672;
  --hl-tag:      #f92672;
  --hl-interp:   #f8f8f2;
  --hl-del-bg:   #2d1818;
  --hl-del-text: #f92672;
  --hl-add-bg:   #1a2d15;
  --hl-add-text: #a6e22e;
  --hl-err-bg:   #f92672;
  --hl-err-text: #272822;
}

/* ============================================================
   Reset + Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  margin: 0;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 8px; font-weight: 600; }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  background: var(--nav-bg);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.navbar-brand {
  color: var(--nav-text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
}
.navbar-brand:hover { text-decoration: none; color: var(--nav-link-hover); }

.navbar-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.navbar-links a { color: var(--nav-link); font-size: 14px; }
.navbar-links a:hover { color: var(--nav-link-hover); text-decoration: none; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: 980px;
  margin: 28px auto;
  padding: 0 16px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.page-header h1 { font-size: 20px; }

/* ============================================================
   Flash messages
   ============================================================ */
.flash {
  padding: 10px 24px;
  font-size: 14px;
  border-bottom: 1px solid transparent;
}
.flash-notice {
  background: var(--flash-notice-bg);
  border-color: var(--flash-notice-border);
  color: var(--flash-notice-text);
}
.flash-alert {
  background: var(--flash-alert-bg);
  border-color: var(--flash-alert-border);
  color: var(--flash-alert-text);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid var(--btn-border);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-text);
}
.btn:hover { background: var(--btn-hover-bg); text-decoration: none; color: var(--btn-text); }

.btn-primary {
  background: #1f883d;
  border-color: rgba(31,35,40,0.15);
  color: #fff;
}
.btn-primary:hover { background: #1a7f37; color: #fff; }

.btn-danger {
  background: #cf222e;
  border-color: rgba(31,35,40,0.15);
  color: #fff;
}
.btn-danger:hover { background: #a40e26; color: #fff; }

.btn-link {
  background: none;
  border: none;
  color: var(--nav-link);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}
.btn-link:hover { color: var(--nav-link-hover); }

.btn-full { width: 100%; }

/* ============================================================
   Forms
   ============================================================ */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 0;
}
.form-group-grow { flex: 1; }

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--input-text);
  outline: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--input-focus-shadow);
}

.language-select { width: 160px; }

.code-textarea {
  width: 100%;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  resize: vertical;
  background: var(--input-bg);
  color: var(--input-text);
  tab-size: 2;
  outline: none;
}
.code-textarea:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--input-focus-shadow);
}

.form-errors {
  background: var(--form-err-bg);
  border: 1px solid var(--form-err-border);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
  color: var(--form-err-text);
  font-size: 13px;
}
.form-errors p { margin: 0 0 4px; }
.form-errors p:last-child { margin: 0; }

/* ============================================================
   Auth page
   ============================================================ */
.auth-container {
  max-width: 360px;
  margin: 60px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}
.auth-title {
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text);
}
.auth-form .btn { margin-top: 8px; }

/* ============================================================
   Snip show page
   ============================================================ */
.snip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}
.snip-title {
  font-size: 20px;
  margin-bottom: 6px;
}
.snip-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.snip-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.snip-meta-text {
  font-size: 12px;
  color: var(--text-muted);
}

.snip-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.snip-body .highlight {
  margin: 0;
  border-radius: 0;
}
.snip-body pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: var(--code-bg);
}
.snip-body code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  background: none;
}

/* Markdown rendered output */
.snip-body .markdown-body {
  padding: 20px 24px;
  line-height: 1.6;
  color: var(--text);
}
.snip-body .markdown-body h1,
.snip-body .markdown-body h2,
.snip-body .markdown-body h3 {
  border-bottom: 1px solid var(--heading-border);
  padding-bottom: 6px;
  margin: 20px 0 12px;
}
.snip-body .markdown-body code {
  background: var(--inline-code-bg);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 12px;
}
.snip-body .markdown-body pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  overflow-x: auto;
}
.snip-body .markdown-body pre code {
  background: none;
  padding: 0;
}
.snip-body .markdown-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
}
.snip-body .markdown-body th,
.snip-body .markdown-body td {
  border: 1px solid var(--border);
  padding: 6px 12px;
  text-align: left;
}
.snip-body .markdown-body th { background: var(--bg); font-weight: 600; }
.snip-body .markdown-body blockquote {
  margin: 0;
  padding-left: 16px;
  border-left: 4px solid var(--border);
  color: var(--text-muted);
}
.snip-body .markdown-body img {
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
  border-radius: 4px;
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}
.lightbox-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  cursor: default;
}

/* ============================================================
   Lang badge
   ============================================================ */
.lang-badge {
  display: inline-block;
  background: var(--lang-badge-bg);
  color: var(--lang-badge-text);
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================================
   Snips index
   ============================================================ */
.snips-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.snip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.snip-card-header {
  padding: 12px 16px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.snip-card-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--card-title);
}
.snip-card-preview {
  background: var(--code-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 100px;
}
.snip-card-preview pre {
  margin: 0;
  padding: 10px 16px;
  overflow: hidden;
}
.snip-card-preview code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text);
}
.snip-card-footer {
  padding: 8px 16px;
}

/* ============================================================
   Empty state
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}
.empty-state p { font-size: 16px; margin-bottom: 12px; }

/* ============================================================
   Settings page
   ============================================================ */
.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  max-width: 640px;
}

.settings-section-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: block;
}

.settings-section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.theme-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.theme-option {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 0.15s;
  display: flex;
  flex-direction: column;
}
.theme-option:hover { border-color: var(--link); }
.theme-option--active { border-color: var(--link); }

.theme-radio { display: none; }

.theme-preview {
  height: 84px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.theme-preview-nav {
  height: 14px;
  background: var(--nav-bg);
  flex-shrink: 0;
}

.theme-preview-body {
  background: var(--hl-bg);
  flex: 1;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.theme-preview-line {
  height: 7px;
  border-radius: 3px;
}
.tp-keyword  { background: var(--hl-keyword);  width: 45%; }
.tp-string   { background: var(--hl-string);   width: 70%; }
.tp-comment  { background: var(--hl-comment);  width: 55%; opacity: 0.7; }
.tp-function { background: var(--hl-function); width: 60%; }

.theme-label {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 4px;
  color: var(--text);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ============================================================
   Syntax highlighting (variable-driven, works for all themes)
   ============================================================ */
.highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight, .highlight .w {
  color: var(--hl-text);
  background-color: var(--hl-bg);
}
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt, .highlight .kv {
  color: var(--hl-keyword);
}
.highlight .gr { color: var(--hl-bg); }
.highlight .gd { color: var(--hl-del-text); background-color: var(--hl-del-bg); }
.highlight .nb, .highlight .nc, .highlight .no, .highlight .nn { color: var(--hl-class); }
.highlight .sr, .highlight .na, .highlight .nt { color: var(--hl-tag); }
.highlight .gi { color: var(--hl-add-text); background-color: var(--hl-add-bg); }
.highlight .ges { font-weight: bold; font-style: italic; }
.highlight .kc { color: var(--hl-constant); }
.highlight .l, .highlight .ld, .highlight .m, .highlight .mb, .highlight .mf,
.highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx { color: var(--hl-constant); }
.highlight .sb, .highlight .bp, .highlight .ne, .highlight .nl,
.highlight .py, .highlight .nv, .highlight .vc, .highlight .vg,
.highlight .vi, .highlight .vm { color: var(--hl-constant); }
.highlight .o, .highlight .ow { color: var(--hl-operator); }
.highlight .gh, .highlight .gu { color: var(--hl-constant); font-weight: bold; }
.highlight .s, .highlight .sa, .highlight .sc, .highlight .dl, .highlight .sd,
.highlight .s2, .highlight .se, .highlight .sh, .highlight .sx,
.highlight .s1, .highlight .ss { color: var(--hl-string); }
.highlight .nd { color: var(--hl-function); }
.highlight .nf, .highlight .fm { color: var(--hl-function); }
.highlight .err { color: var(--hl-err-text); background-color: var(--hl-err-bg); }
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cp,
.highlight .cpf, .highlight .c1, .highlight .cs { color: var(--hl-comment); }
.highlight .gl, .highlight .gt { color: var(--hl-comment); }
.highlight .ni, .highlight .si { color: var(--hl-interp); }
.highlight .ge { color: var(--hl-text); font-style: italic; }
.highlight .gs { color: var(--hl-text); font-weight: bold; }
