table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.95rem;
    border: 1px solid var(--accent-subtle);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

thead {
    background-color: var(--tile-bg-1);
    border-bottom: 2px solid var(--accent-subtle);
}

th {
    text-align: left;
    padding: 15px 20px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--accent-subtle);
    color: var(--text-secondary);
    line-height: 1.5;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background-color: var(--hover-bg); color: var(--text-primary); }

pre {
    padding: 20px;
    margin: 25px 0;
    background-color: var(--tile-bg-1);
    border: 1px solid var(--accent-subtle);
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

:not(pre) > code {
    background-color: var(--hover-bg);
    padding: 2px 6px;
    border-radius: 4px;
    color: #d14;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.95rem;
}

code[class*="language-"],
pre[class*="language-"] {
    color: #333;
    text-shadow: none;
    direction: ltr;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #999988;
    font-style: italic;
}

.token.namespace { opacity: .7; }

.token.string,
.token.attr-value {
    color: #e3116c;
}

.token.punctuation,
.token.operator {
    color: #393a34;
}

.token.entity,
.token.url,
.token.symbol,
.token.number,
.token.boolean,
.token.variable,
.token.constant,
.token.property,
.token.regex,
.token.inserted {
    color: #36acaa;
}

.token.atrule,
.token.keyword,
.token.attr-name,
.token.selector {
    color: #00a4db;
}

.token.function,
.token.deleted,
.token.tag {
    color: #d73a49;
}

.token.function-variable {
    color: #6f42c1;
}

.token.important,
.token.bold { font-weight: bold; }

.token.italic { font-style: italic; }

kbd {
    display: inline-block;
    padding: 2px 6px;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    line-height: 1;
    color: var(--text-primary);
    vertical-align: middle;
    background-color: var(--tile-bg-1);
    border: 1px solid var(--accent-subtle);
    border-radius: 4px;
    box-shadow: 0 2px 0 var(--accent-subtle);
    margin: 0 2px;
}

mark {
    background-color: #fce588;
    color: var(--text-primary);
    padding: 0 4px;
    border-radius: 4px;
}

/* Dark Theme Syntax Highlighting */
[data-theme="dark"] code[class*="language-"],
[data-theme="dark"] pre[class*="language-"] {
    color: #e0e0e0;
}

[data-theme="dark"] :not(pre) > code {
    color: #ff7b72;
}

[data-theme="dark"] .token.comment,
[data-theme="dark"] .token.prolog,
[data-theme="dark"] .token.doctype,
[data-theme="dark"] .token.cdata {
    color: #8b949e;
}

/* Eye-Care Dark Theme Overrides for Syntax Highlighting */
[data-theme="dark"] :not(pre) > code {
    background-color: rgba(255, 255, 255, 0.06);
    color: #E2E8F0; /* Soft white for inline code */
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] code[class*="language-"],
[data-theme="dark"] pre[class*="language-"] {
    color: #E2E8F0; /* Base text */
    text-shadow: none;
}

[data-theme="dark"] .token.comment,
[data-theme="dark"] .token.prolog,
[data-theme="dark"] .token.doctype,
[data-theme="dark"] .token.cdata {
    color: #718096; /* Slate-500: Low contrast for comments */
}

[data-theme="dark"] .token.punctuation {
    color: #A0AEC0; /* Slate-400 */
}

[data-theme="dark"] .token.namespace {
    opacity: .7;
}

[data-theme="dark"] .token.property,
[data-theme="dark"] .token.tag,
[data-theme="dark"] .token.boolean,
[data-theme="dark"] .token.number,
[data-theme="dark"] .token.constant,
[data-theme="dark"] .token.symbol,
[data-theme="dark"] .token.deleted {
    color: #F87171; /* Soft Red */
}

[data-theme="dark"] .token.selector,
[data-theme="dark"] .token.attr-name,
[data-theme="dark"] .token.string,
[data-theme="dark"] .token.char,
[data-theme="dark"] .token.builtin,
[data-theme="dark"] .token.inserted {
    color: #A3E635; /* Soft Lime - adjusted for dark */
}

/* Override string to be softer */
[data-theme="dark"] .token.string,
[data-theme="dark"] .token.attr-value {
    color: #86EFAC; /* Soft Green */
}

[data-theme="dark"] .token.operator,
[data-theme="dark"] .token.entity,
[data-theme="dark"] .token.url,
[data-theme="dark"] .language-css .token.string,
[data-theme="dark"] .style .token.string {
    color: #818CF8; /* Soft Indigo */
}

[data-theme="dark"] .token.atrule,
[data-theme="dark"] .token.attr-value,
[data-theme="dark"] .token.keyword {
    color: #C084FC; /* Soft Purple */
}

[data-theme="dark"] .token.function,
[data-theme="dark"] .token.class-name {
    color: #67E8F9; /* Soft Cyan */
}

[data-theme="dark"] .token.regex,
[data-theme="dark"] .token.important,
[data-theme="dark"] .token.variable {
    color: #FDBA74; /* Soft Orange */
}

[data-theme="dark"] .token.punctuation,
[data-theme="dark"] .token.operator {
    color: #c9d1d9;
}

[data-theme="dark"] .token.entity,
[data-theme="dark"] .token.url,
[data-theme="dark"] .token.symbol,
[data-theme="dark"] .token.number,
[data-theme="dark"] .token.boolean,
[data-theme="dark"] .token.variable,
[data-theme="dark"] .token.constant,
[data-theme="dark"] .token.property,
[data-theme="dark"] .token.regex,
[data-theme="dark"] .token.inserted {
    color: #7ee787;
}

[data-theme="dark"] .token.atrule,
[data-theme="dark"] .token.keyword,
[data-theme="dark"] .token.attr-name,
[data-theme="dark"] .token.selector {
    color: #79c0ff;
}

[data-theme="dark"] .token.function,
[data-theme="dark"] .token.deleted,
[data-theme="dark"] .token.tag {
    color: #ff7b72;
}

[data-theme="dark"] .token.function-variable {
    color: #d2a8ff;
}

[data-theme="dark"] mark {
    background-color: rgba(252, 229, 136, 0.2);
    color: #fce588;
}