#nola-hunter-workshop.hunt-court-workshop {
    --hmc-accent: var(--nola-c2);
    --hmc-bright: color-mix(in srgb, var(--nola-c1) 47%, #fff);
    --hmc-shade: var(--nola-c4);
}
#nekatay-court-workshop.hunt-court-workshop {
    --hmc-accent: var(--nekatay-c1);
    --hmc-bright: color-mix(in srgb, var(--nekatay-c4) 48%, #fff);
    --hmc-shade: var(--nekatay-c3);
}
dialog.hunt-court-workshop:is(#nola-hunter-workshop,#nekatay-court-workshop) {
    --hmc-line: color-mix(in srgb, var(--hmc-accent) 39%, #18303d);
    --hmc-muted: #c2cddf;
    --hmc-pad: clamp(12px, 2.8vw, 26px);
    width: min(952px, calc(100% - 18px));
    max-height: calc(100dvh - 18px);
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--hmc-line);
    border-radius: 17px;
    color: #f8fbff;
    background: radial-gradient(ellipse at 7% 0%, color-mix(in srgb, var(--hmc-shade) 55%, #0e1b2a), transparent 74%), #0b101d;
    box-shadow: 0 24px 82px #000c, 0 0 27px color-mix(in srgb, var(--hmc-accent) 20%, transparent);
    font: 500 .94rem/1.4 Outfit, system-ui, sans-serif;
}
dialog.hunt-court-workshop:is(#nola-hunter-workshop,#nekatay-court-workshop)[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}
dialog.hunt-court-workshop:is(#nola-hunter-workshop,#nekatay-court-workshop)::backdrop {
    background: #030913d9;
    backdrop-filter: blur(7px);
}
dialog.hunt-court-workshop:is(#nola-hunter-workshop,#nekatay-court-workshop) > header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 44px;
    gap: 11px;
    align-items: center;
    padding: clamp(8px, 1.52vw, 16px) var(--hmc-pad);
    border-bottom: 1px solid var(--hmc-line);
    background: linear-gradient(115deg, color-mix(in srgb, var(--hmc-shade) 52%, #162136), #0c1321);
}
.hunt-court-workshop > header .hmc-crest {
    width: clamp(34px, 7vw, 56px);
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--hmc-line));
}
dialog.hunt-court-workshop:is(#nola-hunter-workshop,#nekatay-court-workshop) > header small {
    display: block;
    color: var(--hmc-bright);
    font: 700 .73rem/1.25 Outfit, system-ui, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}
dialog.hunt-court-workshop:is(#nola-hunter-workshop,#nekatay-court-workshop) > header h2 {
    margin: 2px 0 0;
    color: #fff;
    font: 850 clamp(1.48rem, 4.5vw, 2.25rem)/1.1 Outfit, system-ui, sans-serif;
    text-shadow: none;
}
dialog.hunt-court-workshop:is(#nola-hunter-workshop,#nekatay-court-workshop) > header button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--hmc-line);
    border-radius: 50%;
    color: #fff;
    background: #070d18;
    font: 750 1.22rem/1 Outfit, system-ui, sans-serif;
    cursor: pointer;
}
.hunt-court-workshop button:focus-visible { outline: 2px solid var(--hmc-bright); outline-offset: 2px; }
.hunt-court-workshop .hmc-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 13px var(--hmc-pad) 18px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: var(--hmc-line) transparent;
}
.hmc-body > * { flex-shrink: 0; }
.hmc-body :is(p, h3, dd, dl) { margin: 0; }
.hmc-body h3 { color: #fff; font: 750 1.02rem/1.24 Outfit, system-ui, sans-serif; }
.hmc-pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; }
.hmc-pair.hmc-effects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hmc-card, .hmc-target, .hmc-tier-buttons button {
    min-width: 0;
    border: 1px solid var(--hmc-line);
    border-radius: 10px;
    background: #111b2a;
}
.hmc-card { padding: 11px 12px; }
.hmc-card.is-active, .hmc-target.is-active {
    border-color: var(--hmc-accent);
    background: color-mix(in srgb, var(--hmc-accent) 12%, #111b2a);
}
.hmc-card.hmc-profile {
    overflow: hidden;
    display: grid;
    grid-template-columns: clamp(60px, 18vw, 134px) minmax(0, 1fr);
    gap: clamp(8px, 2vw, 18px);
    align-items: center;
    background: radial-gradient(ellipse at 23% 47%, color-mix(in srgb, var(--hmc-accent) 19%, transparent), transparent 77%), #101929;
}
.hmc-profile-art { position: relative; isolation: isolate; display: grid; place-items: center; aspect-ratio: 1; }
.hmc-profile-art .hmc-emblem {
    z-index: 1;
    width: 86%;
    height: 86%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--hmc-line));
    animation: hmcEmblemFloat 4s ease-in-out infinite alternate;
}
.hmc-soul-halo {
    position: absolute;
    inset: 1%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--hmc-accent) 26%, transparent), transparent 100%);
}
.hmc-soul-halo i {
    position: absolute;
    inset: 4%;
    border: 1px dashed var(--hmc-line);
    border-radius: 50%;
    animation: hmcSoulOrbit 18s linear infinite;
}
.hmc-soul-halo i:nth-child(2) { inset: 13%; border-style: solid; border-inline-color: transparent; animation-direction: reverse; }
.hmc-soul-halo i:nth-child(3) { inset: 20%; border-style: dotted; }
.hmc-total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 5px;
    margin-block: 2px 5px;
    color: var(--hmc-muted);
    font: 700 .87rem/1.15 Outfit, system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
}
.hmc-total strong { color: #fff; font: 850 clamp(1.72rem, 5vw, 3.45rem)/1.06 Outfit, system-ui, sans-serif; }
.hmc-total strong span { color: var(--hmc-muted); font-size: clamp(.87rem, 2vw, 1.36rem); }
.hmc-total img { width: 25px; height: 25px; object-fit: contain; }
.hmc-total .nekatay-soul-symbols { display: inline-flex; align-self: center; }
.hmc-total .nekatay-soul-symbols img + img { margin-left: -8px; }
.hmc-caption { margin-top: 6px !important; color: var(--hmc-muted); font-size: .83rem; }
.hmc-label { display: flex; gap: 8px; align-items: center; }
.hmc-label > img { width: 34px; height: 34px; flex: 0 0 34px; object-fit: contain; border-radius: 5px; }
.hmc-label p { color: var(--hmc-muted); font-size: .86rem; }
.hmc-label small { display: block; color: var(--hmc-bright); font-size: .74rem; }
.hmc-profile-track, .hmc-rune-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.hmc-profile-track span, .hmc-rune-track span, .hmc-bar {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--hmc-line);
    border-radius: 4px;
    background: #090f1a;
}
.hmc-profile-track span { padding-block: 1px; color: #fff; font-weight: 750; font-size: .68rem; }
.hmc-profile-track span::before, .hmc-rune-track span::before, .hmc-bar i {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 0;
    width: var(--fill);
    background: linear-gradient(100deg, color-mix(in srgb, var(--hmc-accent) 56%, #14223a), var(--hmc-accent));
}
.hmc-rune-track img { display: block; width: 25px; height: 23px; margin: 3px auto; object-fit: contain; }
.hmc-bar { height: 10px; }
.hmc-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.hmc-chips span {
    padding: 2px 5px;
    border: 1px solid var(--hmc-line);
    border-radius: 4px;
    color: var(--hmc-bright);
    font-size: .73rem;
}
.hmc-chips .is-alert { border-color: #ffca81; color: #ffddb0; }
.hmc-targets { display: grid; gap: 5px; padding: 0; margin: 6px 0 0; list-style: none; }
.hmc-target {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(90px, .6fr) minmax(0, 1.5fr);
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 6px 8px;
}
.hmc-target-name { min-width: 0; display: flex; gap: 6px; align-items: center; }
.hmc-target-name .hmc-portrait { flex: 0 0 34px; width: 34px; height: 34px; object-fit: cover; border-radius: 5px; }
.hmc-target-name div { min-width: 0; overflow-wrap: anywhere; }
.hmc-target-name small { display: block; color: var(--hmc-muted); font-size: .73rem; }
.hmc-target-name small:empty { display: none; }
.hmc-mark-count { display: flex; gap: 4px; align-items: center; margin-bottom: 3px; color: var(--hmc-bright); font-weight: 750; }
.hmc-mark-count img { width: 18px; height: 18px; object-fit: contain; }
.hmc-target .hmc-profile-track span { padding: 0; color: transparent; font-size: 0; height: 4px; }
.hmc-target-benefits { min-width: 0; font-size: .83rem; color: var(--hmc-muted); }
.hmc-tier-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.hmc-tier-buttons button { display: flex; align-items: center; gap: 7px; min-height: 54px; padding: 7px; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.hmc-tier-buttons img { width: 33px; height: 33px; flex: 0 0 33px; object-fit: contain; border-radius: 4px; }
.hmc-tier-buttons small { display: block; color: var(--hmc-muted); font-size: .72rem; }
.hmc-tier-buttons strong { line-height: 1.19; }
.hmc-tier-buttons button[aria-current="step"] { border-color: var(--hmc-bright); }
.hmc-tier-buttons button[aria-pressed="true"] {
    background: linear-gradient(130deg, color-mix(in srgb, var(--hmc-accent) 18%, #131b2a), #101726);
    box-shadow: inset 0 -2px var(--hmc-accent);
}
.hmc-preview { margin-top: 7px; border-inline-start: 3px solid var(--hmc-accent); }
.hmc-bonuses { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 8px !important; }
.hmc-bonuses div { border-inline-start: 1px solid var(--hmc-line); padding-inline-start: 6px; }
.hmc-bonuses dt { color: var(--hmc-muted); font-size: .74rem; line-height: 1.25; }
.hmc-bonuses dd { color: var(--hmc-bright); font-weight: 800; font-size: 1rem; }

@keyframes hmcEmblemFloat { to { transform: translateY(-5%); } }
@keyframes hmcSoulOrbit { to { rotate: 1turn; } }
@media (max-width: 650px) {
    .hmc-pair { grid-template-columns: minmax(0, 1fr); }
    .hmc-bonuses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hmc-tier-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hmc-target { grid-template-columns: minmax(0, 1fr) minmax(76px, .65fr); gap: 4px 8px; }
    .hmc-target-benefits { grid-column: 1 / -1; }
}
@media (max-width: 390px) {
    .hmc-pair.hmc-effects { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .hmc-profile-art *, .hmc-soul-halo i { animation: none !important; }
}
