/* ATHENA_UNIFIED_LIGHT_THEME_HD563_V1
   Source of truth for Athena + OmniHub light UI until the full redesign lands. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root{
  --athena-bg:#F4F5F7 !important;
  --athena-bg-2:#EEF1F6 !important;
  --athena-panel:#FFFFFF !important;
  --athena-panel-2:#F8FAFC !important;
  --athena-panel-3:#EEF2F7 !important;
  --athena-ink:#111827 !important;
  --athena-muted:#64748B !important;
  --athena-muted-2:#94A3B8 !important;
  --athena-line:rgba(17,24,39,.10) !important;
  --athena-line-2:rgba(17,24,39,.16) !important;
  --athena-primary:#5B4BFF !important;
  --athena-primary-2:#4B3BE8 !important;
  --athena-success:#059669 !important;
  --athena-warning:#D97706 !important;
  --athena-danger:#DC2626 !important;
  --athena-info:#2563EB !important;
  --athena-radius:8px !important;
  --athena-shadow:0 14px 34px rgba(15,23,42,.10) !important;
  --athena-font:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
  color-scheme:light !important;
}

*{letter-spacing:0 !important; box-sizing:border-box;}
html,body{color-scheme:light !important; font-family:var(--athena-font) !important;}
body{
  background:linear-gradient(180deg,var(--athena-bg) 0%,var(--athena-bg-2) 100%) !important;
  color:var(--athena-ink) !important;
}
body :where(button,input,select,textarea,.btn,.pill,.badge,.tag,.chip,.card,.panel,.tile,.modalCard){font-family:inherit !important;}

/* Core Athena board shell */
.topbar,.globalAnnouncement,.readonlyCard,
html[data-board-template="anubis-light"] .topbar{
  background:rgba(255,255,255,.96) !important;
  border-color:var(--athena-line) !important;
  color:var(--athena-ink) !important;
  box-shadow:var(--athena-shadow) !important;
}
.title,.subtitle,.control,.boardPicker .boardLabel,.modalTitle,.cardTitle,.colName,.treeKey,.treeSummary{
  color:var(--athena-ink) !important;
}
.subtitle,.hint,.muted,.meta,.colMeta,.cardDesc,.notifyBody,.checklistText{
  color:var(--athena-muted) !important;
}
.board,.tree,.boardWrap,.treeWrap,.main,.content,.wrap{background:transparent !important;}
.col,.treeItem,.card,.panel,.tile,.metric,.group,.item,.case,.rowCard,.history-card,.notifyItem,.checklistItem,.multiSelect,.msMenu,
.helpdeskMineToolbar,.helpdeskMineSidebar,.helpdeskMineDetail,.helpdeskMineTicket,.helpdeskMineStatusEditor,.helpdeskMineActivitySection,.helpdeskMineVisibility,.helpdeskMineReply,
.table-wrap,.conversation,.tap-box,.driver,.progress-card,.step,.alt,[data-noteview]{
  background:var(--athena-panel) !important;
  color:var(--athena-ink) !important;
  border:1px solid var(--athena-line) !important;
  border-radius:var(--athena-radius) !important;
  box-shadow:var(--athena-shadow) !important;
  backdrop-filter:none !important;
}
.colHeader,.panel-head,.head,.modalHeader,.modalFooter,
.helpdeskMineIntro,.helpdeskMineFilter,.helpdeskMineStatusControl,.table th,thead th{
  background:var(--athena-panel-2) !important;
  border-color:var(--athena-line) !important;
  color:var(--athena-ink) !important;
}
.col:nth-child(6n+1) .colHeader{background:#F5F3FF !important;}
.col:nth-child(6n+2) .colHeader{background:#EFF6FF !important;}
.col:nth-child(6n+3) .colHeader{background:#ECFDF5 !important;}
.col:nth-child(6n+4) .colHeader{background:#FFF7ED !important;}
.col:nth-child(6n+5) .colHeader{background:#FDF2F8 !important;}
.col:nth-child(6n+6) .colHeader{background:#F0FDFA !important;}

/* Buttons and controls */
.btn,button.btn,a.btn,.primary,button.primary,a.primary,input[type="button"],input[type="submit"]{
  min-height:38px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  padding:9px 14px !important;
  border-radius:var(--athena-radius) !important;
  border:1px solid rgba(91,75,255,.30) !important;
  background:var(--athena-primary) !important;
  color:#fff !important;
  font-weight:750 !important;
  line-height:1.15 !important;
  text-decoration:none !important;
  text-shadow:none !important;
  box-shadow:none !important;
  cursor:pointer !important;
}
.btn:hover,button.btn:hover,a.btn:hover,.primary:hover{background:var(--athena-primary-2) !important; border-color:rgba(91,75,255,.42) !important; filter:none !important;}
.btn.secondary,button.secondary,a.secondary,.secondary,.ghost,.btn.ghost,.controlsRow.actions .btn:not(.primary),.brandActions .btn:not(.primary){
  background:#fff !important;
  color:var(--athena-primary-2) !important;
  border-color:rgba(91,75,255,.24) !important;
}
.btn.secondary:hover,button.secondary:hover,a.secondary:hover,.secondary:hover,.ghost:hover,.btn.ghost:hover{background:#F8F5FF !important;}
.btn.danger,button.danger,a.danger,.danger{background:#fff !important; color:var(--athena-danger) !important; border-color:rgba(220,38,38,.24) !important;}
.iconBtn,.attachDelete,.checklistDel,.treeToggle{
  border-radius:var(--athena-radius) !important;
  border:1px solid var(--athena-line) !important;
  background:#fff !important;
  color:var(--athena-ink) !important;
}
input,select,textarea,.ql-container,.ql-editor{
  background:#fff !important;
  color:var(--athena-ink) !important;
  border-color:var(--athena-line-2) !important;
  border-radius:var(--athena-radius) !important;
  box-shadow:none !important;
}
input:focus,select:focus,textarea:focus,.ql-container:focus-within{
  outline:none !important;
  border-color:rgba(91,75,255,.42) !important;
  box-shadow:0 0 0 3px rgba(91,75,255,.11) !important;
}
::placeholder{color:rgba(100,116,139,.72) !important;}

/* Modals, previews, dropdowns */
.modal::backdrop,dialog::backdrop{background:rgba(15,23,42,.45) !important;}
.modal,.dialog,dialog{background:transparent !important; color:var(--athena-ink) !important;}
.modalCard,.helpdeskModalCard,.drawer,.popover,.dropdown,.dropdown-menu,.ticketPreview,.previewPanel,[role="dialog"]{
  background:var(--athena-panel) !important;
  color:var(--athena-ink) !important;
  border:1px solid var(--athena-line) !important;
  border-radius:var(--athena-radius) !important;
  box-shadow:0 24px 70px rgba(15,23,42,.22) !important;
}
.modalHeader,.modalFooter{background:var(--athena-panel-2) !important;}
.modal label,.modal .hint,.modal .iconBtn{color:var(--athena-muted) !important;}
.modalTitle{color:var(--athena-ink) !important; font-weight:800 !important;}

/* Pills, tags, status chips */
.pill,.badge,.tag,.chip,.tagChip,.tagCloud .tagPick,.treeType,.msPill,.helpdeskMineChip,.count,.assigneePill{
  background:rgba(91,75,255,.08) !important;
  border:1px solid rgba(91,75,255,.18) !important;
  color:var(--athena-primary-2) !important;
  border-radius:999px !important;
  font-weight:750 !important;
}
.badge.p0,.chip.danger,.tag.danger,.bad,.err{background:rgba(220,38,38,.09) !important; border-color:rgba(220,38,38,.22) !important; color:var(--athena-danger) !important;}
.badge.p1,.chip.warn,.tag.warn,.warn{background:rgba(217,119,6,.12) !important; border-color:rgba(217,119,6,.24) !important; color:var(--athena-warning) !important;}
.badge.p2,.chip.info,.tag.info{background:rgba(37,99,235,.09) !important; border-color:rgba(37,99,235,.20) !important; color:var(--athena-info) !important;}
.badge.p3{background:rgba(100,116,139,.12) !important; border-color:rgba(100,116,139,.22) !important; color:#475569 !important;}
.ok,.chip.live,.helpdeskMineChipStatus{background:rgba(5,150,105,.10) !important; border-color:rgba(5,150,105,.22) !important; color:var(--athena-success) !important;}

/* Tables and repeated records */
table{background:#fff !important; border-color:var(--athena-line) !important; border-radius:var(--athena-radius) !important; overflow:hidden !important;}
th,td{border-color:var(--athena-line) !important; color:var(--athena-ink) !important;}
thead th,.table th{background:var(--athena-panel-2) !important; color:var(--athena-muted) !important; text-transform:uppercase;}
tbody tr:hover td,.table tr:hover td{background:#F8F5FF !important;}
pre,code,.kvs,#importPreview,#ingestPreview{background:var(--athena-panel-2) !important; color:var(--athena-ink) !important; border-color:var(--athena-line) !important; border-radius:var(--athena-radius) !important;}

/* OmniHub app shells */
.app{background:var(--athena-bg) !important; color:var(--athena-ink) !important;}
.side,.sidebar,.navPanel{background:#fff !important; color:var(--athena-ink) !important; border-color:var(--athena-line) !important; box-shadow:8px 0 26px rgba(17,24,39,.05) !important;}
.nav button,.nav a,.side a{color:var(--athena-muted) !important;}
.nav button.active,.nav a.active,.side a.active{background:#F8F5FF !important; color:var(--athena-primary-2) !important; border-color:rgba(91,75,255,.18) !important;}
.mark,.brandMark{background:linear-gradient(135deg,var(--athena-primary),#00B896) !important; border-radius:var(--athena-radius) !important;}
.brandGlow,.brand .omni,.brand .hub{background:none !important; color:var(--athena-ink) !important; -webkit-text-fill-color:var(--athena-ink) !important;}

@media (max-width:760px){
  .modalCard,.helpdeskModalCard{width:min(96vw,720px) !important;}
  .topbar{gap:10px !important;}
  .btn,button.btn,a.btn{min-height:40px !important;}
}

/* ATHENA_UNIFIED_LIGHT_THEME_HD563_V2_CONTRAST_FIX
   Corrects the first-pass overreach: neutral buttons stay white, primary buttons keep white text,
   dropdowns/selects stay readable, and pressed/active states preserve contrast. */
:root{
  --athena-bg:#F4F5F7 !important;
  --athena-page-top:#F8FAFC !important;
  --athena-panel:#FFFFFF !important;
  --athena-panel-2:#F8FAFC !important;
  --athena-ink:#111827 !important;
  --athena-muted:rgba(17,24,39,.62) !important;
  --athena-primary:#5B4BFF !important;
  --athena-primary-2:#4B3BE8 !important;
  --athena-primary-active:#4033D6 !important;
  --athena-primary-soft:#F0EDFF !important;
  --athena-orange-soft:#FFF3E0 !important;
  --athena-focus:0 0 0 4px rgba(91,75,255,.12) !important;
}
body{
  background:
    radial-gradient(circle at 14% 0%,rgba(249,115,22,.10),transparent 28%),
    radial-gradient(circle at 86% 0%,rgba(91,75,255,.10),transparent 30%),
    linear-gradient(180deg,var(--athena-page-top) 0%,var(--athena-bg) 58%,#F7FAFC 100%) !important;
}

/* Default command buttons are neutral in the light theme. Only explicit primary actions are purple. */
.btn,
button.btn,
a.btn,
input[type="button"],
button.secondary,
a.secondary,
.btn.secondary,
button.ghost,
a.ghost,
.btn.ghost,
.controlsRow.actions .btn:not(.primary),
.brandActions .btn:not(.primary),
.modalFooter .btn:not(.primary):not(.danger),
.modalHeader .btn:not(.primary):not(.danger),
.nav button.btn:not(.primary),
.nav a.btn:not(.primary),
.side a.btn:not(.primary){
  background:#FFFFFF !important;
  background-image:none !important;
  color:var(--athena-ink) !important;
  -webkit-text-fill-color:var(--athena-ink) !important;
  border:1px solid rgba(17,24,39,.10) !important;
  box-shadow:0 10px 22px rgba(15,23,42,.08) !important;
  text-shadow:none !important;
}
.btn:hover,
button.btn:hover,
a.btn:hover,
input[type="button"]:hover,
button.secondary:hover,
a.secondary:hover,
.btn.secondary:hover,
button.ghost:hover,
a.ghost:hover,
.btn.ghost:hover{
  background:#F8F5FF !important;
  background-image:none !important;
  color:var(--athena-primary-2) !important;
  -webkit-text-fill-color:var(--athena-primary-2) !important;
  border-color:rgba(91,75,255,.24) !important;
}
.btn:active,
button.btn:active,
a.btn:active,
input[type="button"]:active{
  background:#EEF2FF !important;
  background-image:none !important;
  color:var(--athena-primary-2) !important;
  -webkit-text-fill-color:var(--athena-primary-2) !important;
  transform:translateY(1px) !important;
}

.btn.primary,
button.btn.primary,
a.btn.primary,
button.primary,
a.primary,
input[type="submit"],
.modalFooter .btn.primary,
.modalHeader .btn.primary,
.nav button.btn.primary,
.nav a.btn.primary,
.side a.btn.primary{
  background:linear-gradient(180deg,var(--athena-primary),var(--athena-primary-2)) !important;
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
  border-color:rgba(91,75,255,.36) !important;
  box-shadow:0 10px 22px rgba(91,75,255,.18) !important;
  text-shadow:none !important;
}
.btn.primary:hover,
button.btn.primary:hover,
a.btn.primary:hover,
button.primary:hover,
a.primary:hover,
input[type="submit"]:hover{
  background:linear-gradient(180deg,var(--athena-primary-2),var(--athena-primary-active)) !important;
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
  border-color:rgba(91,75,255,.48) !important;
}
.btn.primary:active,
button.btn.primary:active,
a.btn.primary:active,
button.primary:active,
a.primary:active,
input[type="submit"]:active,
button.primary[aria-pressed="true"],
button.primary[aria-selected="true"],
.btn.primary.active{
  background:linear-gradient(180deg,var(--athena-primary-active),#3527C8) !important;
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
  border-color:rgba(64,51,214,.58) !important;
}
.btn.primary *,
button.btn.primary *,
a.btn.primary *,
button.primary *,
a.primary *,
input[type="submit"] *,
.btn.primary :where(.pill,.badge,.tag,.chip,.count),
button.primary :where(.pill,.badge,.tag,.chip,.count){
  color:inherit !important;
  -webkit-text-fill-color:currentColor !important;
  fill:currentColor !important;
  stroke:currentColor !important;
  background:transparent !important;
  border-color:rgba(255,255,255,.34) !important;
}
.btn.secondary,
button.btn.secondary,
a.btn.secondary,
button.secondary,
a.secondary{
  background:var(--athena-orange-soft) !important;
  color:#9A3412 !important;
  -webkit-text-fill-color:#9A3412 !important;
  border-color:rgba(249,115,22,.24) !important;
}
.btn.danger,
button.btn.danger,
a.btn.danger,
button.danger,
a.danger{
  background:#FFF1F2 !important;
  color:#9F1239 !important;
  -webkit-text-fill-color:#9F1239 !important;
  border-color:rgba(239,68,68,.24) !important;
}
button:disabled,
.btn:disabled,
.btn[aria-disabled="true"]{
  opacity:.58 !important;
  cursor:not-allowed !important;
  transform:none !important;
}

/* Dropdowns, selects, custom menus, and option lists stay light/readable in all states. */
select,
.select,
.dropdown,
.dropdown-menu,
.popover,
.msMenu,
[role="listbox"],
[role="menu"],
[role="combobox"]{
  background:#FFFFFF !important;
  color:var(--athena-ink) !important;
  -webkit-text-fill-color:var(--athena-ink) !important;
  border-color:rgba(17,24,39,.12) !important;
  box-shadow:0 18px 45px rgba(15,23,42,.12) !important;
}
select option,
.dropdown a,
.dropdown button,
.dropdown-menu a,
.dropdown-menu button,
.msOption,
[role="option"],
[role="menuitem"]{
  background:#FFFFFF !important;
  color:var(--athena-ink) !important;
  -webkit-text-fill-color:var(--athena-ink) !important;
}
select option:checked,
.dropdown .active,
.dropdown-menu .active,
.msOption.active,
.msOption[aria-selected="true"],
[role="option"][aria-selected="true"],
[role="menuitem"][aria-current="true"]{
  background:var(--athena-primary-soft) !important;
  color:var(--athena-primary-2) !important;
  -webkit-text-fill-color:var(--athena-primary-2) !important;
}
select:focus,
.select:focus,
.dropdown:focus-within,
.dropdown-menu:focus-within,
.msMenu:focus-within,
[role="listbox"]:focus-within,
[role="combobox"]:focus-within{
  border-color:rgba(91,75,255,.55) !important;
  box-shadow:var(--athena-focus) !important;
}

/* Board/modal controls that are button-like but do not use .btn. */
.iqTicketTypeOption,
.userItem,
.tileChip,
.toggle,
.iconBtn,
.attachDelete,
.checklistDel,
.treeToggle{
  background:#FFFFFF !important;
  color:var(--athena-ink) !important;
  -webkit-text-fill-color:var(--athena-ink) !important;
  border-color:rgba(17,24,39,.10) !important;
}
.iqTicketTypeOption[aria-checked="true"],
.userItem.active,
.tileChip.enabled,
.toggle[aria-pressed="true"],
.iconBtn:hover{
  background:var(--athena-primary-soft) !important;
  color:var(--athena-primary-2) !important;
  -webkit-text-fill-color:var(--athena-primary-2) !important;
  border-color:rgba(91,75,255,.30) !important;
}

/* Prevent generic nav/modal text rules from overriding button contrast. */
.nav button.btn,
.nav a.btn,
.modal .btn,
.modal button.btn,
.modal a.btn,
[role="dialog"] .btn,
[role="dialog"] button.btn,
[role="dialog"] a.btn{
  color:inherit !important;
}
.nav button.btn.primary,
.nav a.btn.primary,
.modal .btn.primary,
.modal button.btn.primary,
.modal a.btn.primary,
[role="dialog"] .btn.primary,
[role="dialog"] button.btn.primary,
[role="dialog"] a.btn.primary{
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
}

/* ATHENA_UNIFIED_LIGHT_THEME_HD563_V2_FINAL_CONTRAST_GUARD */
html body button.btn:not(.primary):not(.danger),
html body a.btn:not(.primary):not(.danger),
html body .btn:not(.primary):not(.danger),
html body input[type="button"]{
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  background:#FFFFFF !important;
  background-image:none !important;
}
html body button.btn.primary,
html body a.btn.primary,
html body .btn.primary,
html body button.primary,
html body a.primary,
html body input[type="submit"]{
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
  background:linear-gradient(180deg,#5B4BFF,#4B3BE8) !important;
}
html body button.btn.primary:hover,
html body a.btn.primary:hover,
html body .btn.primary:hover,
html body button.primary:hover,
html body a.primary:hover,
html body input[type="submit"]:hover{
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
  background:linear-gradient(180deg,#4B3BE8,#4033D6) !important;
}
html body button.btn.primary:active,
html body a.btn.primary:active,
html body .btn.primary:active,
html body button.primary:active,
html body a.primary:active,
html body input[type="submit"]:active{
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
  background:linear-gradient(180deg,#4033D6,#3527C8) !important;
}
html body button.btn:not(.primary):hover,
html body a.btn:not(.primary):hover,
html body .btn:not(.primary):hover,
html body input[type="button"]:hover{
  color:#4B3BE8 !important;
  -webkit-text-fill-color:#4B3BE8 !important;
  background:#F8F5FF !important;
}

/* ATHENA_UNIFIED_LIGHT_THEME_HD563_V3_OMNIHUB_APP_SWEEP
   Applies the same readable light controls to standalone OmniHub app pages, including pages that use plain buttons. */
html body .app,
html body .shell,
html body .workspace,
html body .dashboard,
html body .page,
html body .screen,
html body main,
html body .main,
html body .content{
  color:#111827 !important;
  font-family:var(--athena-font) !important;
}
html body .panel,
html body .card,
html body .tile,
html body .box,
html body .module,
html body .widget,
html body .section,
html body .stat,
html body .metric,
html body .toolbar,
html body .tableWrap,
html body .table-wrap{
  background:#FFFFFF !important;
  color:#111827 !important;
  border-color:rgba(17,24,39,.10) !important;
}
html body button:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike),
html body .button,
html body [role="button"]:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption),
html body input[type="button"]{
  min-height:38px !important;
  border-radius:8px !important;
  border:1px solid rgba(17,24,39,.10) !important;
  background:#FFFFFF !important;
  background-image:none !important;
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  font-weight:750 !important;
  box-shadow:0 10px 22px rgba(15,23,42,.08) !important;
  text-shadow:none !important;
}
html body button:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):hover,
html body .button:hover,
html body [role="button"]:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):hover,
html body input[type="button"]:hover{
  background:#F8F5FF !important;
  color:#4B3BE8 !important;
  -webkit-text-fill-color:#4B3BE8 !important;
  border-color:rgba(91,75,255,.24) !important;
}
html body button.primary,
html body button.btn.primary,
html body .btn.primary,
html body .primaryBtn,
html body .primary-btn,
html body .button.primary,
html body .cta,
html body button[type="submit"],
html body input[type="submit"]{
  background:linear-gradient(180deg,#5B4BFF,#4B3BE8) !important;
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
  border-color:rgba(91,75,255,.36) !important;
  box-shadow:0 10px 22px rgba(91,75,255,.18) !important;
}
html body button.primary:hover,
html body button.btn.primary:hover,
html body .btn.primary:hover,
html body .primaryBtn:hover,
html body .primary-btn:hover,
html body .button.primary:hover,
html body .cta:hover,
html body button[type="submit"]:hover,
html body input[type="submit"]:hover{
  background:linear-gradient(180deg,#4B3BE8,#4033D6) !important;
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
}
html body button[aria-selected="true"]:not(.primary),
html body button[aria-pressed="true"]:not(.primary),
html body .tab.active,
html body .tabs .active,
html body .nav .active:not(.primary){
  background:#F0EDFF !important;
  color:#4B3BE8 !important;
  -webkit-text-fill-color:#4B3BE8 !important;
  border-color:rgba(91,75,255,.26) !important;
}
html body input,
html body select,
html body textarea,
html body .input,
html body .select,
html body .dropdown,
html body .menu,
html body .filter,
html body .control{
  background:#FFFFFF !important;
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  border-color:rgba(17,24,39,.12) !important;
}
html body option,
html body .menu *:not(.primary),
html body .dropdown *:not(.primary){
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
}
html body .badge,
html body .pill,
html body .chip,
html body .tag{
  background:rgba(91,75,255,.08) !important;
  color:#4B3BE8 !important;
  -webkit-text-fill-color:#4B3BE8 !important;
  border-color:rgba(91,75,255,.18) !important;
}

/* ATHENA_UNIFIED_LIGHT_THEME_HD563_V4_BUTTON_SPECIFICITY
   Keeps standalone app submit and secondary buttons from being flattened by broad app sweeps. */
html body form button.btn[type="submit"],
html body form button[type="submit"],
html body button.btn[type="submit"],
html body button[type="submit"],
html body input[type="submit"],
html body .btn.primary,
html body button.btn.primary,
html body a.btn.primary{
  background:linear-gradient(180deg,#5B4BFF,#4B3BE8) !important;
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
  border-color:rgba(91,75,255,.36) !important;
  box-shadow:0 10px 22px rgba(91,75,255,.18) !important;
}
html body form button.btn[type="submit"]:hover,
html body form button[type="submit"]:hover,
html body button.btn[type="submit"]:hover,
html body button[type="submit"]:hover,
html body input[type="submit"]:hover,
html body .btn.primary:hover,
html body button.btn.primary:hover,
html body a.btn.primary:hover{
  background:linear-gradient(180deg,#4B3BE8,#4033D6) !important;
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
}
html body .btn.secondary,
html body button.btn.secondary,
html body a.btn.secondary,
html body button.secondary,
html body a.secondary{
  background:#FFF3E0 !important;
  background-image:none !important;
  color:#9A3412 !important;
  -webkit-text-fill-color:#9A3412 !important;
  border-color:rgba(249,115,22,.24) !important;
}
html body .btn.secondary:hover,
html body button.btn.secondary:hover,
html body a.btn.secondary:hover,
html body button.secondary:hover,
html body a.secondary:hover{
  background:#FFE8CC !important;
  color:#9A3412 !important;
  -webkit-text-fill-color:#9A3412 !important;
}

/* ATHENA_UNIFIED_LIGHT_THEME_HD563_V5_SUBMIT_SECONDARY_PRECEDENCE */
html body button.btn[type="submit"]:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike),
html body button[type="submit"]:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike){
  background:linear-gradient(180deg,#5B4BFF,#4B3BE8) !important;
  background-image:linear-gradient(180deg,#5B4BFF,#4B3BE8) !important;
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
  border-color:rgba(91,75,255,.36) !important;
  box-shadow:0 10px 22px rgba(91,75,255,.18) !important;
}
html body button.btn.secondary:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike),
html body button.secondary:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike),
html body a.btn.secondary,
html body .btn.secondary{
  background:#FFF3E0 !important;
  background-image:none !important;
  color:#9A3412 !important;
  -webkit-text-fill-color:#9A3412 !important;
  border-color:rgba(249,115,22,.24) !important;
}

/* ATHENA_UNIFIED_LIGHT_THEME_HD563_V6_PRIMARY_PRECEDENCE */
html body button.btn.primary:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike),
html body button.primary:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike),
html body .btn.primary:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike),
html body a.btn.primary{
  background:linear-gradient(180deg,#5B4BFF,#4B3BE8) !important;
  background-image:linear-gradient(180deg,#5B4BFF,#4B3BE8) !important;
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
  border-color:rgba(91,75,255,.36) !important;
  box-shadow:0 10px 22px rgba(91,75,255,.18) !important;
}
html body button.btn.primary:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike):hover,
html body button.primary:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike):hover,
html body .btn.primary:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike):hover,
html body a.btn.primary:hover{
  background:linear-gradient(180deg,#4B3BE8,#4033D6) !important;
  background-image:linear-gradient(180deg,#4B3BE8,#4033D6) !important;
  color:#FFFFFF !important;
  -webkit-text-fill-color:#FFFFFF !important;
}

/* ATHENA_UNIFIED_LIGHT_THEME_HD563_V7_TICKET_EDITOR_RTE_FIX
   Keeps Athena ticket pop-up rich text fields readable after the OmniHub button sweep. */
html body .rteWrap{
  width:100% !important;
}
html body .rteWrap .ql-toolbar.ql-snow,
html body .rteWrap .ql-toolbar{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:4px !important;
  min-height:44px !important;
  padding:7px 10px !important;
  border:1px solid rgba(17,24,39,.12) !important;
  border-bottom:0 !important;
  border-radius:10px 10px 0 0 !important;
  background:#F8FAFC !important;
  background-image:none !important;
  color:#334155 !important;
  -webkit-text-fill-color:#334155 !important;
  box-shadow:inset 0 -1px 0 rgba(17,24,39,.06) !important;
}
html body .rteWrap .ql-toolbar .ql-formats{
  display:inline-flex !important;
  align-items:center !important;
  gap:2px !important;
  margin:0 8px 0 0 !important;
}
html body .rteWrap .ql-toolbar button,
html body .rteWrap .ql-toolbar.ql-snow button,
html body .rteWrap .ql-toolbar .ql-picker-label{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:32px !important;
  min-width:32px !important;
  height:32px !important;
  min-height:32px !important;
  padding:5px !important;
  border:1px solid transparent !important;
  border-radius:8px !important;
  background:transparent !important;
  background-image:none !important;
  color:#334155 !important;
  -webkit-text-fill-color:#334155 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  font-weight:700 !important;
}
html body .rteWrap .ql-toolbar button:hover,
html body .rteWrap .ql-toolbar button:focus,
html body .rteWrap .ql-toolbar button.ql-active,
html body .rteWrap .ql-toolbar .ql-picker-label:hover,
html body .rteWrap .ql-toolbar .ql-picker-label.ql-active{
  background:#EEF2FF !important;
  background-image:none !important;
  color:#4B3BE8 !important;
  -webkit-text-fill-color:#4B3BE8 !important;
  border-color:rgba(91,75,255,.22) !important;
  box-shadow:none !important;
}
html body .rteWrap .ql-toolbar button svg,
html body .rteWrap .ql-toolbar .ql-picker-label svg{
  width:18px !important;
  height:18px !important;
  color:#334155 !important;
  -webkit-text-fill-color:#334155 !important;
}
html body .rteWrap .ql-toolbar .ql-stroke,
html body .rteWrap .ql-toolbar button svg .ql-stroke,
html body .rteWrap .ql-toolbar .ql-picker-label svg .ql-stroke{
  stroke:#334155 !important;
}
html body .rteWrap .ql-toolbar .ql-fill,
html body .rteWrap .ql-toolbar button svg .ql-fill,
html body .rteWrap .ql-toolbar .ql-picker-label svg .ql-fill{
  fill:#334155 !important;
}
html body .rteWrap .ql-toolbar button:hover .ql-stroke,
html body .rteWrap .ql-toolbar button:focus .ql-stroke,
html body .rteWrap .ql-toolbar button.ql-active .ql-stroke,
html body .rteWrap .ql-toolbar .ql-picker-label:hover .ql-stroke,
html body .rteWrap .ql-toolbar .ql-picker-label.ql-active .ql-stroke{
  stroke:#4B3BE8 !important;
}
html body .rteWrap .ql-toolbar button:hover .ql-fill,
html body .rteWrap .ql-toolbar button:focus .ql-fill,
html body .rteWrap .ql-toolbar button.ql-active .ql-fill,
html body .rteWrap .ql-toolbar .ql-picker-label:hover .ql-fill,
html body .rteWrap .ql-toolbar .ql-picker-label.ql-active .ql-fill{
  fill:#4B3BE8 !important;
}
html body .rteWrap .ql-toolbar .ql-picker-options{
  background:#FFFFFF !important;
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  border:1px solid rgba(17,24,39,.12) !important;
  border-radius:8px !important;
  box-shadow:0 16px 30px rgba(15,23,42,.16) !important;
}
html body .rteWrap .ql-container.ql-snow,
html body .rteWrap .ql-container{
  border:1px solid rgba(17,24,39,.12) !important;
  border-top:0 !important;
  border-radius:0 0 10px 10px !important;
  background:#FFFFFF !important;
  box-shadow:none !important;
}
html body .rteWrap .ql-editor{
  min-height:180px !important;
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  line-height:1.5 !important;
  font-size:15px !important;
}
html body .rteWrap.rteComment .ql-editor{
  min-height:120px !important;
}
html body .rteWrap .ql-editor.ql-blank::before{
  color:#64748B !important;
  -webkit-text-fill-color:#64748B !important;
  font-style:italic !important;
}

/* ATHENA_UNIFIED_LIGHT_THEME_HD563_V8_QUILL_BUTTON_PRECEDENCE
   Higher-specificity guard so generic OmniHub button rules do not restyle Quill toolbar controls. */
html body dialog.modal .modalCard .rteWrap .ql-toolbar.ql-snow button:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike),
html body dialog.modal .modalCard .rteWrap .ql-toolbar button:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike),
html body .modal .modalCard .rteWrap .ql-toolbar.ql-snow button:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike),
html body .modal .modalCard .rteWrap .ql-toolbar button:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike){
  width:32px !important;
  min-width:32px !important;
  height:32px !important;
  min-height:32px !important;
  padding:5px !important;
  border:1px solid transparent !important;
  border-radius:8px !important;
  background:transparent !important;
  background-image:none !important;
  color:#334155 !important;
  -webkit-text-fill-color:#334155 !important;
  box-shadow:none !important;
}
html body dialog.modal .modalCard .rteWrap .ql-toolbar.ql-snow button:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike):hover,
html body dialog.modal .modalCard .rteWrap .ql-toolbar button:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike):hover,
html body dialog.modal .modalCard .rteWrap .ql-toolbar.ql-snow button.ql-active:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike),
html body dialog.modal .modalCard .rteWrap .ql-toolbar button.ql-active:not(.iconBtn):not(.treeToggle):not(.iqTicketTypeOption):not(.userItem):not(.tileChip):not(.linkLike){
  background:#EEF2FF !important;
  background-image:none !important;
  color:#4B3BE8 !important;
  -webkit-text-fill-color:#4B3BE8 !important;
  border-color:rgba(91,75,255,.22) !important;
  box-shadow:none !important;
}

