.inline-inspector-detail#text {
    display: none
}

.dom-node pre {
    background: transparent;
    margin: 4px 0;
    font-size: 12px;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) var(--scroll-background);
}

.dom-node code {
    padding-left: 25px;
}

.html-tag {
    color: var(--token-delimiter);
    /* for symbols like < and > */
}

.html-tag-name {
    color: var(--token-tag-html);
    /* for tag name */
}

.html-attr-name {
    color: var(--token-attribute-name-html, var(--token-attribute-name)) !important;
    /* attribute name */
}

.html-attr-eq {
    color: var(--token-delimiter);
    /* equals sign */
}

.html-attr-value {
    color: var(--token-string);
    /* attribute value */
}

.inspector-wrapper .text-node {
    color: var(--editor-foreground);
    /* text content inside node */
}


pre code.hljs {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
    display: block;
    overflow-x: auto;
    padding: 0;
    font-size: 12px;
}

#inspector-info-panel {
    background: var(--color-editor) !important;
    color: var(--editor-foreground) !important;
}

/* overall background & base text color */
.hljs {
    background: var(--color-editor) !important;
    color: var(--editor-foreground) !important;
}

/* comments & quotes */
.hljs-comment,
.hljs-quote {
    color: var(--token-comment) !important;
}

/* strings */
.hljs-string,
.hljs-meta .hljs-string {
    color: var(--token-string) !important;
}

/* numbers, literals, built‑ins */
.hljs-number,
.hljs-built_in {
    color: var(--token-number) !important;
}

.hljs-literal {
    color: var(--token-keyword) !important;
}

/* keywords, declarations, operators, punctuation */
.hljs-keyword,
.hljs-selector-tag,
.hljs-selector-id,
.hljs-deletion,
.hljs-addition,
.hljs-operator,
.hljs-punctuation {
    color: var(--token-keyword) !important;
}

/* types (classes, interfaces, etc.) */
.hljs-type,
.hljs-class .hljs-title,
.hljs-params {
    color: var(--token-type) !important;
}

/* function names & titles */
.hljs-function .hljs-title,
.hljs-title {
    color: var(--token-functionName) !important;
}

/* variables & constants */
.hljs-property,
.hljs-variable,
.hljs-template-variable,
.hljs-regexp {
    color: var(--token-objectName) !important;
}

/* symbols & delimiters */
.hljs-symbol,
.hljs-tag,
.hljs-name,
.hljs-selector-attr,
.hljs-selector-pseudo {
    color: var(--token-delimiter) !important;
}

/* HTML‑specific */
.hljs-tag {
    color: var(--token-tag-html) !important;
}

.hljs-attribute,
.hljs-attr {
    color: var(--token-attribute-name) !important;
}

.hljs-attr-value {
    color: var(--token-attribute-value) !important;
}

/* add a little more legibility */
.hljs-emphasis {
    font-style: italic;
}

.hljs-strong {
    font-weight: bold;
}

.hljs-variable,
.hljs-template-variable,
.hljs-regexp {
    color: var(--token-objectName) !important;
}


/* .hljs-title, .hljs-title.class_, .hljs-title.class_.inherited__, .hljs-title.function_ {
  color: #dcbdfb;

}
.hljs-function .hljs-title, .hljs-title {
  color: var(--token-function) !important;

} */
/* ==========================================================================
   Base Styles
   ========================================================================== */
/* pre {
    margin: 0;
    overflow: auto;
    background: var(--color-editor) !important;
    color: var(--editor-foreground) !important;
    padding: 10px;
    font-size: 14px;
} */

code {
    display: block;
    white-space: pre;
    height: 100%;
}

code {
    display: inline-block;
}

/* ==========================================================================
     Token Styles — Core Language Elements
     ========================================================================== */

/* Keywords (e.g. if, else, return) */
.keyword {
    color: var(--token-keyword) !important;
}

.keyword\.declaration {
    color: var(--token-keyword-declaration, var(--editor-keyword)) !important;
}

.keyword\.flow {
    color: var(--token-keyword-flow, var(--editor-keyword)) !important;
}

/* Identifiers (variable & function names) */
.identifier {
    color: var(--token-identifier-js, var(--editor-foreground)) !important;
}

/* Object property names (e.g. myObject.prop) */
.objectName {
    color: var(--token-objectName) !important;
}

/* Function names (e.g. doSomething()) */
.functionName {
    color: var(--token-functionName) !important;
}

/* Types (e.g. int, String, MyClass) */
.type {
    color: var(--token-type) !important;
}

.type\.identifier {
    color: var(--token-type-identifier-js, var(--token-type)) !important;
}

/* Strings and escapes */
.string {
    color: var(--token-string) !important;
}

.string\.escape,
.string\.escape\.invalid {
    color: var(--token-string) !important;
}

/* Numbers (integer, float, hex, octal, binary) */
.number,
.number\.float,
.number\.hex,
.number\.octal,
.number\.binary {
    color: var(--token-number) !important;
}

/* Regular expressions */
.regexp,
.regexp\.escape,
.regexp\.escape\.control,
.regexp\.escape\.other {
    /* HLJS maps regex to objectName */
    color: var(--token-regexp, var(--token-keyword-flow, var(--token-objectName)));
}

/* Comments (single-line, block, doc) */
.comment,
.comment\.doc {
    color: var(--token-comment) !important;
    /* font-style: italic; */
}

/* Invalid or error text */
.invalid {
    /* no matching var provided—fallback to soft red */
    color: #f44747 !important;
}

/* Delimiters (commas, semicolons, etc.) */
.delimiter {
    color: var(--token-delimiter) !important;
}

/* Bracket pairs (all levels unified) */
/* .delimiter\.bracket,
.delimiter\.bracket\.level1,
.delimiter\.bracket\.level2,
.delimiter\.bracket\.level3,
.delimiter\.bracket\.level4,
.delimiter\.bracket\.level5,
.delimiter\.bracket\.level6 {
    color: var(--token-delimiter) !important;
} */
/* Bracket pairs at different nesting levels */
.delimiter\.bracket {
    color: var(--editorBracketHighlight-foreground1);
}

.delimiter\.bracket\.level1 {
    color: var(--editorBracketHighlight-foreground1);
}

.delimiter\.bracket\.level2 {
    color: var(--editorBracketHighlight-foreground2);
}

.delimiter\.bracket\.level3 {
    color: var(--editorBracketHighlight-foreground3);
}

.delimiter\.bracket\.level4 {
    color: var(--editorBracketHighlight-foreground4);
}

.delimiter\.bracket\.level5 {
    color: var(--editorBracketHighlight-foreground5);
}

.delimiter\.bracket\.level6 {
    color: var(--editorBracketHighlight-foreground6);
}

/* 
.delimiter\.bracket\.level1 {
    color: #FFD700;
}

.delimiter\.bracket\.level2 {
    color: #b46695;
}

.delimiter\.bracket\.level3 {
    color: #569CD6;
}

.delimiter\.bracket\.level4 {
    color: #FFD700;
}

.delimiter\.bracket\.level5 {
    color: #b46695;
}

.delimiter\.bracket\.level6 {
    color: #569CD6;
} */


/* ==========================================================================
     Token Styles — CSS‑Specific Overrides
     (Each token also receives a “css-…” class)
     ========================================================================== */

/* At‑rules (@media, @keyframes…) */
.css-keyword\.at-rule {
    color: var(--token-keyword-flow, var(--token-keyword)) !important;
}

/* Selectors (element, class, ID, pseudo) */
.css-selector {
    /* use --token-tag-css if it’s defined, otherwise fall back to --token-tag */
    color: var(--token-tag-css, var(--token-tag)) !important;
}


/* Property names (e.g. color, margin-top) */
.css-attribute\.name {
    color: var(--token-attribute-name-css, var(--token-attribute-name)) !important;
}

/* Numeric values & units, hex colours */
.css-number {
    color: var(--token-number) !important;
}

.css-number\.hex {
    color: var(--token-string) !important;
}

/* Identifiers in values (e.g. system-ui, flex) */
.css-identifier {
 color: var(--token-attribute-value-css, var(--token-string)) !important;
}

/* Functions (e.g. rgb(), url(), calc()) */
.css-function {
    color: var(--token-string, var(--token-tag-css)) !important;
}

.constant\.numeric,
.css-constant\.numeric {
    color: var(--token-number) !important;
}

/* Parentheses in functions */
.css-delimiter\.parenthesis {
    color: var(--token-delimiter) !important;
}

/* Pseudo‑classes/elements :hover ::before … */
.css-keyword {
    color: var(--token-keyword) !important;
}

.keyword\.pseudo-class,
.css-keyword\.pseudo-class {
    color: var(--token-tag-css, var(--token-tag)) !important;
}

.keyword\.pseudo-element {
    color: var(--token-tag-css, var(--token-tag)) !important;
}

.token.css-keyword.at-rule.keyframes,
.token.keyword.at-rule.keyframes {
    color: var(--token-keyword-flow, var(--token-keyword)) !important;
}

/* ==========================================================================
     Token Styles — HTML‑Specific Overrides
     (Each token also receives an “html-…” class)
     ========================================================================== */

/* Doctype, XML declarations */
.html-metatag\.content {
    color: var(--token-metatag-content-html, var(--token-attribute-name)) !important;
}

.html-foreground {

    color: var(--editor-foreground) !important;

}

/* Tags (<div>, </body>, <my-component> …) */
.html-metatag {
    color: var(--token-metatag-html, var(--token-tag-html)) !important;
}

.html-tag {
    color: var(--token-tag-html) !important;
}

/* Attribute names: class, id, data‑x‑foo … */
.html-attribute\.name {
    color: var(--token-attribute-name-html, var(--token-attribute-name)) !important;
}

/* Attribute values:  "container", 'main' … */
.html-attribute\.value {
    color: var(--token-attribute-value-html, var(--token-attribute-value)) !important;
}

/* Punctuation:  <  >  /  =  */
.html-delimiter {
    color: var(--token-delimiter-html, var(--token-delimiter)) !important;
}

/* HTML comments <!-- ... --> */
.html-comment,
.html-comment\.content {
    color: var(--token-comment) !important;
}

/* ==========================================================================
   Token Styles — Python-Specific Overrides
   (Each token also receives a “py-…” class)
   ========================================================================== */
pre code[class*="language-py"] {
    color: var(--editor-foreground);
}

.py-keyword {
    color: var(--token-keyword) !important;
}

.py-keyword\.flow,
.py-keyword\.declaration,
.py-keyword\.operator,
.py-keyword\.self,
.py-constant\.language {
    color: var(--token-keyword-flow, var(--token-keyword)) !important;
}

.py-comment {
    color: var(--token-comment) !important;
}

.py-string {
    color: var(--token-string) !important;
}

.py-string.escape {
    color: var(--token-string-escape, var(--token-string)) !important;
}

.py-number {
    color: var(--token-number) !important;
}

.py-tag {
    color: var(--token-tag) !important;
}

.py-delimiter {
    color: var(--token-delimiter) !important;
}

.py-type.identifier {
    color: var(--token-type-identifier-js, var(--token-type)) !important;
}

.py-functionName {
    color: var(--token-functionName) !important;
}

.py-identifier {
    color: var(--token-identifier-js, var(--editor-foreground)) !important;
}

.py-delimiter.bracket.level1,
.py-delimiter.bracket.level2,
.py-delimiter.bracket.level3,
.py-delimiter.bracket.level4,
.py-delimiter.bracket.level5,
.py-delimiter.bracket.level6 {
    color: var(--editorBracketHighlight-foreground1) !important;
}

.py-invalid {
    color: #f44747 !important;
}


/* ==========================================================================
   Token Styles — Markdown Inline HTML Syntax
   ========================================================================== */
.tag.md-tag,
.delimiter.md-delimiter {
    color: var(--token-tag-html) !important;
}

.attribute\.name.md-attribute\.name {
    color: var(--token-attribute-name) !important;
}

.attribute\.value.md-attribute\.value,
.variable.md-variable {
    color: var(--token-attribute-value, var(--token-string)) !important;
}

.delimiter.md-attribute\.name,
.delimiter.md-attribute\.value,
.delimiter.md-tag {
    color: var(--token-delimiter-html, var(--token-delimiter)) !important;
}

/* ==========================================================================
   Token Styles — JSON
   ========================================================================== */
.string\.key {
    color: var(--token-identifier-js, var(--editor-foreground)) !important;
}

.string\.value {
    color: var(--token-string);
}

.json-keyword\.constant {
    color: var(--token-keyword) !important;
}