/* AFADOR v6 — final contrast/theme patch. Load AFTER /static/css/main.*.css */
:root{--af-bg:#081321;--af-panel:#10243b;--af-panel2:#142d49;--af-line:#426b96;--af-text:#eef5ff;--af-muted:#a6bdd8;--af-blue:#79b9ff;--af-gold:#d8b477}
html body{background:radial-gradient(circle at 85% 8%,#1b2a52 0,transparent 28%),linear-gradient(180deg,#07111e,#0d1d31 55%,#091522)!important;color:var(--af-text)!important}
html body main,html body .page{color:var(--af-text)!important}
html body .parchment,html body .panel,html body section.parchment,html body .inner-panel,html body .allocation-card,html body .derived-box,html body .resource-pill,html body .energy-card,html body .tech,html body .request-card{background:linear-gradient(180deg,rgba(19,42,68,.98),rgba(12,27,46,.98))!important;color:var(--af-text)!important;border-color:var(--af-line)!important;box-shadow:0 9px 24px #0005,inset 0 0 0 1px #ffffff08!important}
html body .parchment:after{border-color:#7ba5d426!important}
html body h1,html body h2,html body h3,html body h4,html body b,html body strong,html body label{color:#f5f8ff!important;text-shadow:none!important}
html body .muted,html body small{color:var(--af-muted)!important}
html body .status-banner{background:linear-gradient(90deg,#15314e,#1d4264)!important;color:#fff!important;border:1px solid #4d79a5!important;border-radius:9px!important}
html body .tab-links{gap:8px!important;margin:10px 0 18px!important}
html body .tab-links a,html body .tabs a,html body .tabs button,html body [role="tablist"] a,html body [role="tablist"] button{background:linear-gradient(180deg,#1b3859,#112640)!important;color:#f4f8ff!important;border:1px solid #4a77a5!important;border-radius:8px!important;text-decoration:none!important;padding:8px 12px!important;box-shadow:inset 0 1px 0 #ffffff0c!important}
html body .tab-links a:hover,html body .tabs a:hover,html body .tabs button:hover{background:linear-gradient(180deg,#376fae,#285688)!important;border-color:#78b7fa!important;color:#fff!important}
html body input,html body select,html body textarea{background:#091827!important;color:#f2f7ff!important;border:1px solid #426b96!important;border-radius:8px!important}
html body input[readonly],html body textarea[readonly]{background:#13263d!important;color:#c7d8ec!important}
html body select option{background:#091827!important;color:#f2f7ff!important}
html body table th{background:#1b395a!important;color:#fff!important;border-color:#426b96!important}
html body table td{background:#0d2035!important;color:#eef5ff!important;border-color:#345a82!important}
html body .go-rule-grid article,html body .ruleGrid article,html body .go-rules article,html body .rules article{background:linear-gradient(180deg,#142d49,#0d2036)!important;color:#f4f8ff!important;border:1px solid #4b79a7!important;box-shadow:0 7px 18px #0003!important}
html body .go-rule-grid article p,html body .ruleGrid article p,html body .go-rules article p{color:#c7daef!important}
html body .go-rule-mark,html body .ruleGrid article>b{color:#8cc7ff!important}
html body main .btn:not(.danger),html body main button.btn:not(.danger){background:linear-gradient(180deg,#294b73,#1b3555)!important;color:#f5f8ff!important;border-color:#5684b2!important}
html body main .btn.primary{background:linear-gradient(180deg,#4c8fd8,#32649f)!important;color:#fff!important}
html body .badge,html body .status{background:#193653!important;color:#eaf4ff!important;border-color:#4d79a4!important}


/* AFADOR v45 — dwarven rune & elven script styling patch */
html body .topbar .brand, html body .brand{letter-spacing:.16em!important;text-transform:uppercase!important}
html body .topbar .brand::before, html body .brand::before{content:"ᚠ ";color:var(--af-gold)!important}
html body .topbar .brand::after, html body .brand::after{content:" ❦";color:#92c8ff!important}
html body .hero h1, html body .hero h2, html body .panel h2, html body .section-head h2{letter-spacing:.04em!important}
html body .hero h1::after, html body .hero h2::after, html body .panel h2::after, html body .section-head h2::after{content:"ᚦ ᚱ ᚴ ✦ ❦";display:block;margin-top:6px;font-size:.72em;letter-spacing:.18em;color:var(--af-gold)!important;opacity:.92}
html body .tabs, html body .tab-links, html body [role="tablist"]{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin:12px 0 18px!important;padding:0!important}
html body .tab-links a, html body .tabs a, html body .tabs button, html body [role="tablist"] a, html body [role="tablist"] button{position:relative!important;overflow:hidden!important;border-radius:12px!important;padding:10px 16px!important;background:linear-gradient(180deg,#27354c,#131d2e)!important;color:#f5f8ff!important;border:1px solid rgba(123,168,214,.7)!important;box-shadow:0 10px 24px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.05)!important;letter-spacing:.04em!important;font-weight:700!important}
html body .tab-links a::before, html body .tabs a::before, html body .tabs button::before, html body [role="tablist"] a::before, html body [role="tablist"] button::before{content:"ᚱ";display:inline-block;margin-right:8px;color:var(--af-gold)!important}
html body .tab-links a::after, html body .tabs a::after, html body .tabs button::after, html body [role="tablist"] a::after, html body [role="tablist"] button::after{content:"❦";display:inline-block;margin-left:8px;color:#91c8ff!important}
html body .tab-links a:hover, html body .tabs a:hover, html body .tabs button:hover{background:linear-gradient(180deg,#395988,#203758)!important;border-color:#8dc7ff!important}
html body .parchment, html body .panel, html body section.parchment, html body .inner-panel, html body .allocation-card, html body .derived-box, html body .resource-pill, html body .energy-card, html body .tech, html body .request-card{position:relative!important;overflow:hidden!important}
html body .parchment::before, html body .panel::before, html body .inner-panel::before, html body .tech::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(90deg,rgba(216,180,119,.18),transparent 16%,transparent 84%,rgba(121,185,255,.12)),linear-gradient(180deg,rgba(255,255,255,.02),transparent 36%)}
html body .eyebrow, html body .crystal-note{letter-spacing:.14em!important;text-transform:uppercase!important}
html body .eyebrow::before{content:"ᚢ ";color:var(--af-gold)!important}
html body .eyebrow::after{content:" ❦";color:#91c8ff!important}
