:root {
  color-scheme: light;
  --is-dark-theme: false;

  /* ========================================================================
   * 1. 保留 Sapphire 主色调与高亮 (主色系完整保留)
   * ======================================================================== */
  accent-color: #209fb5;
  --color-primary: #209fb5;
  --color-primary-contrast: #eff1f5;
  --color-primary-hover: rgb(35.8309859155, 178.0352112676, 202.6690140845);
  --color-primary-dark-1: rgb(34.2985915493, 170.4211267606, 194.0014084507);
  --color-primary-dark-2: rgb(36.5971830986, 181.8422535211, 207.0028169014);
  --color-primary-dark-3: rgb(41.623943662, 191.3408450704, 217.276056338);
  --color-primary-dark-4: rgb(54.6253521127, 195.2197183099, 219.5746478873);
  --color-primary-dark-5: rgb(67.6267605634, 199.0985915493, 221.8732394366);
  --color-primary-dark-6: rgb(80.6281690141, 202.9774647887, 224.1718309859);
  --color-primary-dark-7: rgb(93.6295774648, 206.8563380282, 226.4704225352);
  --color-primary-light-1: rgb(29.7014084507, 147.5788732394, 167.9985915493);
  --color-primary-light-2: rgb(27.4028169014, 136.1577464789, 154.9971830986);
  --color-primary-light-3: rgb(25.1042253521, 124.7366197183, 141.9957746479);
  --color-primary-light-4: rgb(22.8056338028, 113.3154929577, 128.9943661972);
  --color-primary-light-5: rgb(20.5070422535, 101.8943661972, 115.9929577465);
  --color-primary-light-6: rgb(18.2084507042, 90.4732394366, 102.9915492958);
  --color-primary-light-7: rgb(15.9098591549, 79.0521126761, 89.9901408451);
  --color-primary-alpha-10: rgba(32, 159, 181, 0.1);
  --color-primary-alpha-20: rgba(32, 159, 181, 0.2);
  --color-primary-alpha-30: rgba(32, 159, 181, 0.3);
  --color-primary-alpha-40: rgba(32, 159, 181, 0.4);
  --color-primary-alpha-50: rgba(32, 159, 181, 0.5);
  --color-primary-alpha-60: rgba(32, 159, 181, 0.6);
  --color-primary-alpha-70: rgba(32, 159, 181, 0.7);
  --color-primary-alpha-80: rgba(32, 159, 181, 0.8);
  --color-primary-alpha-90: rgba(32, 159, 181, 0.9);

  /* Secondary 边框/次要元素调色板 (适配暖色) */
  --color-secondary: #e6d5ae;
  --color-secondary-dark-1: rgb(220, 203, 165);
  --color-secondary-dark-2: rgb(210, 193, 155);
  --color-secondary-dark-3: rgb(200, 183, 145);
  --color-secondary-dark-4: rgb(190, 173, 135);
  --color-secondary-dark-5: rgb(180, 163, 125);
  --color-secondary-dark-6: rgb(170, 153, 115);
  --color-secondary-dark-7: rgb(160, 143, 105);
  --color-secondary-dark-8: rgb(150, 133, 95);
  --color-secondary-dark-9: rgb(140, 123, 85);
  --color-secondary-dark-10: rgb(130, 113, 75);
  --color-secondary-dark-11: rgb(120, 103, 65);
  --color-secondary-dark-12: rgb(110, 93, 55);
  --color-secondary-dark-13: rgb(100, 83, 45);
  --color-secondary-light-1: rgb(235, 220, 185);
  --color-secondary-light-2: rgb(240, 228, 198);
  --color-secondary-light-3: rgb(245, 236, 210);
  --color-secondary-light-4: rgb(250, 244, 223);
  --color-secondary-alpha-10: rgba(230, 213, 174, 0.1);
  --color-secondary-alpha-20: rgba(230, 213, 174, 0.2);
  --color-secondary-alpha-30: rgba(230, 213, 174, 0.3);
  --color-secondary-alpha-40: rgba(230, 213, 174, 0.4);
  --color-secondary-alpha-50: rgba(230, 213, 174, 0.5);
  --color-secondary-alpha-60: rgba(230, 213, 174, 0.6);
  --color-secondary-alpha-70: rgba(230, 213, 174, 0.7);
  --color-secondary-alpha-80: rgba(230, 213, 174, 0.8);
  --color-secondary-alpha-90: rgba(230, 213, 174, 0.9);

  /* 功能调色板 */
  --color-red: #d20f39;
  --color-orange: #fe640b;
  --color-yellow: #df8e1d;
  --color-olive: #40a02b;
  --color-green: #40a02b;
  --color-teal: #179299;
  --color-blue: #1e66f5;
  --color-violet: #7287fd;
  --color-purple: #8839ef;
  --color-pink: #ea76cb;
  --color-brown: #dd7878;
  --color-grey: #8c8275;
  --color-black: #f8f4e5;

  /* Color Light & Dark Variants */
  --color-red-light: rgb(239.4, 36.6, 80.28);
  --color-orange-light: rgb(254.2081632653, 132.2653061224, 61.7918367347);
  --color-yellow-light: rgb(231.1785714286, 164.6428571429, 71.8214285714);
  --color-olive-light: rgb(80.078817734, 200.197044335, 53.802955665);
  --color-green-light: rgb(80.078817734, 200.197044335, 53.802955665);
  --color-teal-light: rgb(29.6647727273, 188.3068181818, 197.3352272727);
  --color-blue-light: rgb(78.829787234, 135.2042553191, 247.170212766);
  --color-violet-light: rgb(164.2867132867, 177.7972027972, 253.7132867133);
  --color-purple-light: rgb(164.3598130841, 104.1869158879, 242.8130841121);
  --color-pink-light: rgb(240.7784810127, 162.2215189873, 219.7848101266);
  --color-brown-light: rgb(231.2603550296, 160.7396449704, 160.7396449704);
  --color-grey-light: rgb(165, 155, 140);
  --color-black-light: #fefcf3;

  --color-red-dark-1: rgb(200, 10, 50);
  --color-orange-dark-1: rgb(254.2081632653, 132.2653061224, 61.7918367347);
  --color-yellow-dark-1: rgb(231.1785714286, 164.6428571429, 71.8214285714);
  --color-olive-dark-1: rgb(80.078817734, 200.197044335, 53.802955665);
  --color-green-dark-1: rgb(80.078817734, 200.197044335, 53.802955665);
  --color-teal-dark-1: rgb(29.6647727273, 188.3068181818, 197.3352272727);
  --color-blue-dark-1: rgb(78.829787234, 135.2042553191, 247.170212766);
  --color-violet-dark-1: rgb(164.2867132867, 177.7972027972, 253.7132867133);
  --color-purple-dark-1: rgb(164.3598130841, 104.1869158879, 242.8130841121);
  --color-pink-dark-1: rgb(240.7784810127, 162.2215189873, 219.7848101266);
  --color-brown-dark-1: rgb(231.2603550296, 160.7396449704, 160.7396449704);
  --color-black-dark-1: #fdfaf0;

  --color-red-dark-2: rgb(170, 5, 40);
  --color-orange-dark-2: rgb(254.4163265306, 164.5306122449, 112.5836734694);
  --color-yellow-dark-2: rgb(237.0476190476, 186.9047619048, 116.9523809524);
  --color-olive-dark-2: rgb(114.6305418719, 211.5763546798, 93.4236453202);
  --color-green-dark-2: rgb(114.6305418719, 211.5763546798, 93.4236453202);
  --color-teal-dark-2: rgb(53.3181818182, 215.4545454545, 224.6818181818);
  --color-blue-dark-2: rgb(127.6595744681, 168.4085106383, 249.3404255319);
  --color-violet-dark-2: rgb(214.5734265734, 220.5944055944, 254.4265734266);
  --color-purple-dark-2: rgb(192.7196261682, 151.3738317757, 246.6261682243);
  --color-pink-dark-2: rgb(247.5569620253, 206.4430379747, 236.5696202532);
  --color-brown-dark-2: rgb(241.5207100592, 201.4792899408, 201.4792899408);
  --color-black-dark-2: #faf6eb;

  --color-gold: #dc8a78;
  --color-white: #4c4f69;

  /* Diff & Status */
  --color-diff-removed-word-bg: rgba(210, 15, 57, 0.15);
  --color-diff-added-word-bg: rgba(64, 160, 43, 0.15);
  --color-diff-removed-row-bg: rgba(210, 15, 57, 0.07);
  --color-diff-moved-row-bg: rgba(223, 142, 29, 0.07);
  --color-diff-added-row-bg: rgba(64, 160, 43, 0.07);
  --color-diff-removed-row-border: rgba(210, 15, 57, 0.07);
  --color-diff-moved-row-border: rgba(223, 142, 29, 0.07);
  --color-diff-added-row-border: rgba(64, 160, 43, 0.07);
  --color-diff-inactive: #8c8275;

  /* ========================================================================
   * Forgejo 专属红色与 Danger 语义按钮补全 (修复悬停动画)
   * ======================================================================== */
  --color-red-button: #d20f39;
  --color-red-button-hover: rgb(200, 10, 50);
  --color-red-button-active: rgb(170, 5, 40);
  --color-red-text: #ffffff;

  --color-danger-bg: var(--color-red-button);
  --color-danger-text: #ffffff;
  --color-danger-hover-bg: var(--color-red-button-hover);
  --color-danger-active-bg: var(--color-red-button-active);

  --color-error-border: #d20f39;
  --color-error-bg: #d20f39;
  --color-error-bg-hover: var(--color-red-button-hover);
  --color-error-bg-active: var(--color-red-button-active);
  --color-error-text: #ffffff;

  --color-success-border: rgb(80.078817734, 200.197044335, 53.802955665);
  --color-success-bg: #40a02b;
  --color-success-text: #fefcf3;
  --color-warning-border: rgb(231.1785714286, 164.6428571429, 71.8214285714);
  --color-warning-bg: #df8e1d;
  --color-warning-text: #fefcf3;
  --color-info-border: rgb(78.829787234, 135.2042553191, 247.170212766);
  --color-info-bg: #fefcf3;
  --color-info-text: #4c4f69;
  --color-red-badge: #d20f39;
  --color-red-badge-bg: #fefcf3;
  --color-red-badge-hover-bg: var(--color-red-dark-1);
  --color-green-badge: #40a02b;
  --color-green-badge-bg: #40a02b;
  --color-green-badge-hover-bg: rgb(72.039408867, 180.0985221675, 48.4014778325);
  --color-yellow-badge: #df8e1d;
  --color-yellow-badge-bg: #fefcf3;
  --color-yellow-badge-hover-bg: rgb(228.244047619, 153.5119047619, 49.255952381);
  --color-orange-badge: #fe640b;
  --color-orange-badge-bg: #fefcf3;
  --color-orange-badge-hover-bg: rgb(254.1040816327, 116.1326530612, 36.3959183673);
  --color-git: #fe640b;
  --color-highlight-bg: rgba(223, 142, 29, 0.15);

  /* ========================================================================
   * 2. 替换为 Alucard 暖杏色背景与面板框架变量
   * ======================================================================== */
  --alucard-background: #fffbeb;

  --color-body: var(--alucard-background);
  --color-box-header: #f8f4e5;
  --color-box-body: #fefcf3;
  --color-box-body-highlight: #f5eedc;
  --color-text-dark: #373a4d;
  --color-text: #4c4f69;
  --color-text-light: #5c5f77;
  --color-text-light-1: #5c5f77;
  --color-text-light-2: #5c5f77;
  --color-text-light-3: #7c7f93;
  --color-footer: #f8f4e5;
  --color-timeline: #e6d5ae;
  --color-input-text: #4c4f69;
  --color-input-background: #fdfaf0;
  --color-input-toggle-background: #f5eedc;
  --color-input-border: #e0d0a5;
  --color-input-border-hover: #d8c49e;
  --color-nav-bg: #f8f4e5;
  --color-nav-hover-bg: var(--color-hover);
  --color-navbar: #f8f4e5;
  --color-navbar-transparent: rgba(255, 251, 235, 0);
  --color-light: rgba(216, 196, 158, 0.3);
  --color-light-mimic-enabled: rgba(
    0,
    0,
    0,
    calc(40 / 255 * 222 / 255 / var(--opacity-disabled))
  );
  --color-light-border: #e6d5ae;
  --color-hover: rgba(140, 120, 90, 0.08);
  --color-active: rgba(76, 79, 105, 0.1);
  --color-menu: #fefcf3;
  --color-card: #fefcf3;
  --color-markup-table-row: rgba(76, 79, 105, 0.02);
  --color-markup-code-block: rgba(76, 79, 105, 0.05);
  --color-markup-code-inline: #f5eedc;

  /* Forgejo 按钮系统基础变量 */
  --color-button: #fefcf3;
  --color-button-hover: #f5eedc;
  --color-button-active: #e6d5ae;
  --color-button-border: #e0d0a5;
  --color-button-text: #4c4f69;

  --color-code-bg: var(--alucard-background);
  --color-code-sidebar-bg: #f8f4e5;
  --color-shadow: rgba(80, 60, 40, 0.08);
  --color-tooltip-bg: #f8f4e5;
  --color-tooltip-text: var(--color-text);
  --color-secondary-bg: #f8f4e5;
  --color-text-focus: #373a4d;
  --color-expand-button: #d8c49e;
  --color-placeholder-text: #7c7f93;
  --color-editor-line-highlight: var(--color-primary-light-5);
  --color-project-board-bg: var(--color-secondary-light-2);

  --color-caret: var(--color-text);
  --color-reaction-bg: rgba(76, 79, 105, 0.07);
  --color-reaction-active-bg: var(--color-primary-alpha-40);
  --color-header-wrapper: #f8f4e5;
  --color-header-wrapper-transparent: rgba(248, 244, 229, 0);
  --color-label-text: #514f49;
  --color-label-bg: #209fb5;
  --color-label-hover-bg: rgb(36.5971830986, 181.8422535211, 207.0028169014);
  --color-label-active-bg: rgb(34.2985915493, 170.4211267606, 194.0014084507);
  --color-accent: var(--color-primary-light-1);
  --color-small-accent: var(--color-primary-light-5);
  --color-active-line: #e6d5ae;
}


.ui.ui.ui.button:not(.inverted, .basic).primary, .ui.ui.ui.button:not(.inverted, .basic).green, .ui.ui.ui.button:not(.inverted, .basic).red, .ui.ui.ui.button:not(.inverted, .basic).teal,
.ui.ui.ui.label:not(.inverted, .basic).primary,
.ui.ui.ui.label:not(.inverted, .basic).green,
.ui.ui.ui.label:not(.inverted, .basic).red,
.ui.ui.ui.label:not(.inverted, .basic).teal {
  color: #eff1f5;
}
.ui.ui.ui.button:not(.inverted, .basic).primary:hover, .ui.ui.ui.button:not(.inverted, .basic).green:hover, .ui.ui.ui.button:not(.inverted, .basic).red:hover, .ui.ui.ui.button:not(.inverted, .basic).teal:hover,
.ui.ui.ui.label:not(.inverted, .basic).primary:hover,
.ui.ui.ui.label:not(.inverted, .basic).green:hover,
.ui.ui.ui.label:not(.inverted, .basic).red:hover,
.ui.ui.ui.label:not(.inverted, .basic).teal:hover {
  color: #dce0e8;
}

.ui.basic.modal {
  background-color: #dce0e8;
}

.ui.commit-header-row .svg.gitea-lock ~ a {
  color: #eff1f5;
}

.ui.negative.message .header {
  color: var(--color-error-text);
}

.ui.sha.isSigned.isVerified .shortsha {
  color: #eff1f5;
}
.ui.sha.isSigned.isVerified svg.gitea-lock {
  fill: #eff1f5;
}

.ui.basic.modal,
.ui.basic.modal > .header,
.ui.inverted.button {
  color: #4c4f69 !important;
}

#repo-topics,
#topic_edit > .ui.selection.dropdown {
  color: var(--color-label-text) !important;
}

blockquote.attention-tip {
  border-left-color: var(--color-success-bg);
}
blockquote.attention-warning {
  border-left-color: var(--color-warning-bg);
}

svg.attention-tip,
strong.attention-tip {
  color: var(--color-success-bg);
}
svg.attention-warning,
strong.attention-warning {
  color: var(--color-warning-bg);
}

.inline-code-block {
  color: #dce0e8;
}

::selection {
  background: rgba(32, 159, 181, 0.3) !important;
}

/* NameBuiltinPseudo */
.chroma .bp {
  color: #fe640b;
}

/* Comment */
.chroma .c {
  color: #9ca0b0;
}

/* CommentSingle */
.chroma .c1 {
  color: #9ca0b0;
}

/* CommentHashbang */
.chroma .ch {
  color: #9ca0b0;
}

/* CommentMultiline */
.chroma .cm {
  color: #9ca0b0;
}

/* CommentPreproc */
.chroma .cp {
  color: #1e66f5;
}

/* CommentPreprocFile */
.chroma .cpf {
  color: #1e66f5;
}

/* CommentSpecial */
.chroma .cs {
  color: #9ca0b0;
}

/* LiteralStringDelimiter */
.chroma .dl {
  color: #1e66f5;
}

/* NameFunctionMagic */
/* Generic */
/* GenericDeleted */
.chroma .gd {
  color: #4c4f69;
  background-color: rgba(210, 15, 57, 0.15);
}

/* GenericEmph */
.chroma .ge {
  font-style: italic;
}

/* GenericHeading */
.chroma .gh {
  color: #04a5e5;
}

/* GenericInserted */
.chroma .gi {
  color: #4c4f69;
  background-color: rgba(64, 160, 43, 0.15);
}

/* GenericUnderline */
/* GenericOutput */
.chroma .go {
  color: #fe640b;
}

/* GenericPrompt */
.chroma .gp {
  color: #9ca0b0;
  font-weight: bold;
}

/* GenericError */
.chroma .gr {
  color: #e64553;
}

/* GenericStrong */
.chroma .gs {
  font-weight: bold;
}

/* GenericTraceback */
.chroma .gt {
  color: #e64553;
}

/* GenericSubheading */
.chroma .gu {
  color: #04a5e5;
}

/* LiteralNumberIntegerLong */
.chroma .il {
  color: #fe640b;
}

/* Keyword */
.chroma .k {
  color: #8839ef;
}

/* KeywordConstant */
.chroma .kc {
  color: #df8e1d;
}

/* KeywordDeclaration */
.chroma .kd {
  color: #8839ef;
}

/* KeywordNamespace */
.chroma .kn {
  color: #df8e1d;
}

/* KeywordPseudo */
.chroma .kp {
  color: #8839ef;
  font-weight: bold;
}

/* KeywordReserved */
.chroma .kr {
  color: #8839ef;
}

/* KeywordType */
.chroma .kt {
  color: #df8e1d;
}

/* Literal */
/* LiteralDate */
/* LiteralNumber */
.chroma .m {
  color: #fe640b;
}

/* LiteralNumberBin */
.chroma .mb {
  color: #fe640b;
}

/* LiteralNumberFloat */
.chroma .mf {
  color: #fe640b;
}

/* LiteralNumberHex */
.chroma .mh {
  color: #fe640b;
}

/* LiteralNumberInteger */
.chroma .mi {
  color: #fe640b;
}

/* LiteralNumberOct */
.chroma .mo {
  color: #fe640b;
}

/* Name */
.chroma .n {
  color: #7287fd;
}

/* NameAttribute */
.chroma .na {
  color: #df8e1d;
}

/* NameBuiltin */
.chroma .nb {
  color: #fe640b;
}

/* NameClass */
.chroma .nc {
  color: #df8e1d;
}

/* NameDecorator */
.chroma .nd {
  color: #ea76cb;
}

/* NameException */
.chroma .ne {
  color: #e64553;
}

/* NameFunction */
.chroma .nf {
  color: #1e66f5;
}

/* NameEntity */
.chroma .ni {
  color: #ea76cb;
}

/* NameLabel */
.chroma .nl {
  color: #df8e1d;
}

/* NameNamespace */
.chroma .nn {
  color: #df8e1d;
}

/* NameConstant */
.chroma .no {
  color: #df8e1d;
}

/* NameTag */
.chroma .nt {
  color: #8839ef;
}

/* NameVariable */
.chroma .nv {
  color: #fe640b;
}

/* NameOther */
.chroma .nx {
  color: #fe640b;
}

/* Operator */
.chroma .o {
  color: #04a5e5;
}

/* OperatorWord */
.chroma .ow {
  color: #04a5e5;
  font-weight: bold;
}

/* Punctuation */
.chroma .p {
  color: #7c7f93;
}

/* NameProperty */
/* LiteralString */
.chroma .s {
  color: #40a02b;
}

/* LiteralStringSingle */
.chroma .s1 {
  color: #40a02b;
}

/* LiteralStringDouble */
.chroma .s2 {
  color: #40a02b;
}

/* LiteralStringAffix */
.chroma .sa {
  color: #40a02b;
}

/* LiteralStringBacktick */
.chroma .sb {
  color: #40a02b;
}

/* LiteralStringChar */
.chroma .sc {
  color: #40a02b;
}

/* LiteralStringDoc */
.chroma .sd {
  color: #40a02b;
}

/* LiteralStringEscape */
.chroma .se {
  color: #1e66f5;
}

/* LiteralStringHeredoc */
.chroma .sh {
  color: #40a02b;
}

/* LiteralStringInterpol */
.chroma .si {
  color: #40a02b;
}

/* LiteralStringRegex */
.chroma .sr {
  color: #1e66f5;
}

/* LiteralStringSymbol */
.chroma .ss {
  color: #40a02b;
}

/* LiteralStringOther */
.chroma .sx {
  color: #40a02b;
}

/* NameVariableClass */
.chroma .vc {
  color: #df8e1d;
}

/* NameVariableGlobal */
.chroma .vg {
  color: #fe640b;
}

/* NameVariableInstance */
.chroma .vi {
  color: #df8e1d;
}

/* NameVariableMagic */
/* TextWhitespace */
.chroma .w {
  color: #ccd0da;
}

.CodeMirror .cm-property,
.CodeMirror.cm-s-default .cm-property,
.CodeMirror.cm-s-paper .cm-property {
  color: #4c4f69;
}
.CodeMirror .cm-header,
.CodeMirror.cm-s-default .cm-header,
.CodeMirror.cm-s-paper .cm-header {
  color: #4c4f69;
}
.CodeMirror .cm-quote,
.CodeMirror.cm-s-default .cm-quote,
.CodeMirror.cm-s-paper .cm-quote {
  color: #40a02b;
}
.CodeMirror .cm-keyword,
.CodeMirror.cm-s-default .cm-keyword,
.CodeMirror.cm-s-paper .cm-keyword {
  color: #8839ef;
}
.CodeMirror .cm-atom,
.CodeMirror.cm-s-default .cm-atom,
.CodeMirror.cm-s-paper .cm-atom {
  color: #d20f39;
}
.CodeMirror .cm-number,
.CodeMirror.cm-s-default .cm-number,
.CodeMirror.cm-s-paper .cm-number {
  color: #fe640b;
}
.CodeMirror .cm-def,
.CodeMirror.cm-s-default .cm-def,
.CodeMirror.cm-s-paper .cm-def {
  color: #4c4f69;
}
.CodeMirror .cm-variable-2,
.CodeMirror.cm-s-default .cm-variable-2,
.CodeMirror.cm-s-paper .cm-variable-2 {
  color: #04a5e5;
}
.CodeMirror .cm-variable-3,
.CodeMirror.cm-s-default .cm-variable-3,
.CodeMirror.cm-s-paper .cm-variable-3 {
  color: #179299;
}
.CodeMirror .cm-comment,
.CodeMirror.cm-s-default .cm-comment,
.CodeMirror.cm-s-paper .cm-comment {
  color: #acb0be;
}
.CodeMirror .cm-string,
.CodeMirror.cm-s-default .cm-string,
.CodeMirror.cm-s-paper .cm-string {
  color: #40a02b;
}
.CodeMirror .cm-string-2,
.CodeMirror.cm-s-default .cm-string-2,
.CodeMirror.cm-s-paper .cm-string-2 {
  color: #40a02b;
}
.CodeMirror .cm-meta,
.CodeMirror.cm-s-default .cm-meta,
.CodeMirror.cm-s-paper .cm-meta {
  color: #fe640b;
}
.CodeMirror .cm-qualifier,
.CodeMirror.cm-s-default .cm-qualifier,
.CodeMirror.cm-s-paper .cm-qualifier {
  color: #fe640b;
}
.CodeMirror .cm-builtin,
.CodeMirror.cm-s-default .cm-builtin,
.CodeMirror.cm-s-paper .cm-builtin {
  color: #fe640b;
}
.CodeMirror .cm-bracket,
.CodeMirror.cm-s-default .cm-bracket,
.CodeMirror.cm-s-paper .cm-bracket {
  color: #4c4f69;
}
.CodeMirror .cm-tag,
.CodeMirror.cm-s-default .cm-tag,
.CodeMirror.cm-s-paper .cm-tag {
  color: #df8e1d;
}
.CodeMirror .cm-attribute,
.CodeMirror.cm-s-default .cm-attribute,
.CodeMirror.cm-s-paper .cm-attribute {
  color: #df8e1d;
}
.CodeMirror .cm-hr,
.CodeMirror.cm-s-default .cm-hr,
.CodeMirror.cm-s-paper .cm-hr {
  color: #7c7f93;
}
.CodeMirror .cm-url,
.CodeMirror.cm-s-default .cm-url,
.CodeMirror.cm-s-paper .cm-url {
  color: #1e66f5;
}
.CodeMirror .cm-link,
.CodeMirror.cm-s-default .cm-link,
.CodeMirror.cm-s-paper .cm-link {
  color: #1e66f5;
}
.CodeMirror .cm-error,
.CodeMirror.cm-s-default .cm-error,
.CodeMirror.cm-s-paper .cm-error {
  color: #d20f39;
}

.monaco-editor .selected-text {
  background-color: #ccd0da !important;
}
.monaco-editor .margin-view-overlays .line-numbers {
  color: #6c6f85 !important;
}
.monaco-editor .line-numbers.active-line-number {
  color: #209fb5 !important;
}
.monaco-editor .view-overlays .current-line,
.monaco-editor .margin-view-overlays .current-line-margin {
  background-color: rgb(232.7, 235.4, 240.8) !important;
}
.monaco-editor .mtk1 {
  color: #4c4f69 !important;
}
.monaco-editor .mtk2 {
  color: #ff69b4 !important;
}
.monaco-editor .mtk3 {
  color: #fe640b !important;
}
.monaco-editor .mtk4 {
  color: #179299 !important;
}
.monaco-editor .mtk5 {
  color: #4c4f69 !important;
}
.monaco-editor .mtk6 {
  color: #8839ef !important;
}
.monaco-editor .mtk7 {
  color: #fe640b !important;
}
.monaco-editor .mtk8 {
  color: #7c7f93 !important;
}
.monaco-editor .mtk9 {
  color: #8839ef !important;
}
.monaco-editor .mtk10 {
  color: #6c6f85 !important;
}
.monaco-editor .mtk11 {
  color: #179299 !important;
}
.monaco-editor .mtk12 {
  color: #179299 !important;
}
.monaco-editor .mtk13 {
  color: #ff69b4 !important;
}
.monaco-editor .mtk14 {
  color: #ff69b4 !important;
}
.monaco-editor .mtk15 {
  color: #8839ef !important;
}
.monaco-editor .mtk16 {
  color: #7c7f93 !important;
}
.monaco-editor .mtk17 {
  color: #ff69b4 !important;
}
.monaco-editor .mtk18 {
  color: #ff69b4 !important;
}
.monaco-editor .mtk19 {
  color: #179299 !important;
}
.monaco-editor .mtk20 {
  color: #ff69b4 !important;
}
.monaco-editor .mtk21 {
  color: #40a02b !important;
}
.monaco-editor .mtk22 {
  color: #ff69b4 !important;
}
.monaco-editor .mtk23 {
  color: #1e66f5 !important;
}
.monaco-editor .mtk24 {
  color: #fe640b !important;
}
.monaco-editor .mtk25 {
  color: #ea76cb !important;
}
.monaco-editor .bracket-highlighting-0 {
  color: rgb(156.4, 40.6, 76.2) !important;
}
.monaco-editor .bracket-highlighting-1 {
  color: rgb(182.8, 91.6, 48.6) !important;
}
.monaco-editor .bracket-highlighting-2 {
  color: rgb(164.2, 116.8, 59.4) !important;
}
.monaco-editor .bracket-highlighting-3 {
  color: rgb(68.8, 127.6, 67.8) !important;
}
.monaco-editor .bracket-highlighting-4 {
  color: rgb(48.4, 92.8, 189) !important;
}
.monaco-editor .bracket-highlighting-5 {
  color: rgb(112, 65.8, 185.4) !important;
}

/* 自动填充后：文字设为亮白色，匹配蓝色背景 */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  /* 强制改为 CSS 定义的蓝色搭配白字 #eff1f5 */
  -webkit-text-fill-color: #eff1f5 !important;
}


/* 隐藏包含特定链接的菜单项 */
.ui.menu a.item[href="https://forgejo.org/docs/latest/"] {
    display: none !important;
}

/* ========================================================================
 * Forgejo 危险按钮原生动画与文字修复
 * ======================================================================== */

/* 1. 强制危险按钮文字为白色，并注入原生 CSS 过渡动画 */
.ui.red.button,
.ui.danger.button,
.ui.button.red,
.ui.button.danger,
.btn-red,
.btn-danger,
button[class*="red"],
button[class*="danger"] {
  color: #ffffff !important;
  /* 开启平滑过渡动画 */
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 2. 确保按钮内部子元素（图标/文字）也是白色 */
.ui.red.button *,
.ui.danger.button *,
.btn-red *,
.btn-danger * {
  color: #ffffff !important;
  transition: color 0.25s ease !important;
}

/* 3. 悬停状态补全 (加上微小的悬浮阴影增强质感) */
.ui.red.button:hover,
.ui.danger.button:hover,
.btn-red:hover,
.btn-danger:hover {
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(210, 15, 57, 0.3) !important;
}
