/* Eureka Suite's native charcoal and amber theme, scoped to this preview. */
body[data-plugin="eurekasuite"] { background: #101114; }
body[data-plugin="eurekasuite"] .header-inner { min-height: 52px; }
#eureka { --gold: #f4b438; --muted: #9b9da8; --line: #303135; width: min(860px, calc(100% - 24px)); margin: 0 auto; padding: 9px 0 14px; color: #dddfe4; font: 600 12px/1.45 "Segoe UI", sans-serif; }
#eureka *, #eureka-dialog * { box-sizing: border-box; }
#eureka button, #eureka input, #eureka select, #eureka-dialog button, #eureka-dialog input, #eureka-dialog select { font: inherit; color: inherit; }
#eureka button, #eureka-dialog button { background: #1c1d1f; border: 1px solid #393a3e; border-radius: 6px; padding: 2px 9px; min-height: 24px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
#eureka button:hover, #eureka-dialog button:hover { border-color: #b18536; background: #33302a; }
#eureka button:disabled, #eureka-dialog button:disabled { opacity: .45; cursor: default; }
#eureka :focus-visible, #eureka-dialog :focus-visible { outline: 2px solid #f4b438; outline-offset: 2px; }
#eureka .gold, #eureka-dialog .gold { color: #ffb62c; }
#eureka .green, #eureka-dialog .green { color: #64e79b; }
#eureka .blue, #eureka-dialog .blue { color: #4ca6f9; }
#eureka .red, #eureka-dialog .red { color: #ff5555; }
#eureka .muted, #eureka-dialog .muted { color: #9b9da8; }
#eureka .small, #eureka-dialog .small { font-size: 11px; }
#eureka p, #eureka-dialog p { margin: 4px 0; }
#eureka .icon, #eureka-dialog .icon { width: 17px; height: 17px; flex-shrink: 0; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#eureka .demo-tools { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; font-size: 11px; }
#eureka .demo-tools label { display: inline-flex; align-items: center; gap: 6px; }
#eureka .demo-tools .demo-note { margin-left: auto; color: #9b9da8; font-weight: 400; }
#eureka select, #eureka input:not([type="checkbox"]):not([type="range"]):not([type="color"]), #eureka-dialog input, #eureka-dialog select { background: #292a2e; border: 1px solid transparent; border-radius: 6px; padding: 2px 7px; height: 25px; min-width: 0; max-width: 100%; }
#eureka input::placeholder, #eureka-dialog input::placeholder { color: #8a8a90; opacity: 1; }
#eureka .window { background: #191a1c; border: 1px solid #303135; border-radius: 11px; overflow: hidden; height: min(1170px, calc(100dvh - 110px)); min-height: 650px; display: flex; flex-direction: column; box-shadow: 0 10px 35px #0003; position: relative; }
#eureka .window.collapsed { height: 26px; min-height: 26px; }
#eureka .window.closed { min-height: 120px; height: auto; align-items: center; justify-content: center; gap: 10px; }
#eureka .titlebar { display: flex; align-items: center; gap: 4px; height: 23px; flex-shrink: 0; background: #202123; padding: 0 7px; font-size: 12px; }
#eureka .titlebar .tracking { margin-left: 24px; padding-left: 10px; border-left: 1px solid #6d6e72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #72747a; }
#eureka .titlebar .window-buttons { margin-left: auto; display: flex; flex-shrink: 0; }
#eureka .titlebar button { width: 18px; min-height: 20px; padding: 0; background: none; border: 0; font-size: 18px; line-height: 1; }
#eureka .identity { display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 7px 9px; flex-shrink: 0; }
#eureka .identity img { height: 44px; width: 44px; object-fit: contain; background: #000; }
#eureka h1 { margin: 0; font-size: 17px; letter-spacing: 0; font-weight: 650; }
#eureka .identity p { font-size: 11px; margin: 0; color: #9b9da8; }
#eureka .language { margin-left: auto; display: flex; align-items: center; border: 1px solid #303135; border-radius: 6px; padding-left: 6px; }
#eureka .language select { background: transparent; font-size: 12px; }
#eureka .tabs { margin: 0 9px 10px; display: flex; border: 1px solid #303135; border-radius: 9px; overflow-x: auto; flex-shrink: 0; scrollbar-width: thin; }
#eureka .tabs button { flex: 1; min-width: 0; padding: 6px 8px; border: 0; border-radius: 0; white-space: nowrap; min-height: 30px; background: #1e1f21; color: #c2c3c8; position: relative; }
#eureka .tabs button + button::before { content: ""; height: 18px; width: 1px; background: #2d2e30; position: absolute; left: 0; }
#eureka .tabs button[aria-selected="true"] { background: #f4b438; color: #171511; }
#eureka .tabs button[aria-selected="true"]::before, #eureka .tabs button[aria-selected="true"] + button::before { display: none; }
#eureka .tabs button:hover { background: #3b3427; }
#eureka .tabs button[aria-selected="true"]:hover { background: #ffc54e; }
#eureka .tabs button:focus-visible { outline-offset: -3px; outline-color: white; }
#eureka .bottom-tabs { margin-top: 10px; margin-bottom: 9px; }
#eureka .bottom-tabs button { min-height: 32px; gap: 5px; }
#eureka .bottom-tabs .icon { width: 19px; height: 19px; }
#eureka .content { margin: 0 9px; padding: 10px 11px; border: 1px solid #303135; border-radius: 11px; flex: 1; min-height: 0; overflow: auto; background: #1d1e20; scrollbar-width: thin; scrollbar-color: #35363a #1d1e20; }
#eureka .content:last-child { margin-bottom: 9px; }
#eureka h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; color: #dddfe4; margin: 0 0 4px; letter-spacing: 0; }
#eureka h2::after { display: none; }
#eureka h2 .save-hint { margin-left: auto; font-size: 11px; font-weight: 600; color: #9b9da8; }
#eureka h3 { font: inherit; margin: 0 0 6px; }
#eureka .panel { border: 1px solid #303135; border-radius: 10px; padding: 9px; margin: 0 0 8px; background: #1f2022; min-width: 0; }
#eureka details.panel { padding: 0; }
#eureka details > summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; min-height: 37px; padding: 8px 10px; }
#eureka details > summary::-webkit-details-marker { display: none; }
#eureka details > summary::before { content: "→"; font-size: 18px; line-height: 1; width: 12px; flex-shrink: 0; }
#eureka details[open] > summary::before { content: "⌄"; transform: translateY(-3px); }
#eureka summary small { display: block; font-size: 10px; color: #9b9da8; line-height: 1.2; }
#eureka .detail-body { padding: 0 7px 7px; }
#eureka .status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 8px 0 11px; }
#eureka .status-grid.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 7px 0 0; }
#eureka .status-card { display: flex; gap: 14px; align-items: center; border: 1px solid #303135; border-radius: 10px; min-height: 60px; padding: 8px 13px; }
#eureka .status-card > .icon { width: 35px; height: 35px; color: #9b9da8; }
#eureka .status-card p { margin: 1px 0; }
#eureka .stats .status-card { padding: 8px; gap: 9px; }
#eureka .stats .icon { width: 30px; height: 30px; }
#eureka .stats strong { font-size: 16px; }
#eureka .badge, #eureka-dialog .badge { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #4b805f; background: #2a3730; color: #64e79b; border-radius: 14px; padding: 1px 7px; font-size: 12px; font-weight: 600; }
#eureka .badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
#eureka .badge.off { background: #28292c; color: #9b9da8; border-color: #46474b; }
#eureka .badge.rejected { color: #ff5151; border-color: #7d393b; background: #352325; }
#eureka .row, #eureka-dialog .row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 5px 0; }
#eureka .spacer, #eureka-dialog .spacer { flex: 1; }
#eureka .search-row { display: flex; gap: 6px; margin: 3px 0; }
#eureka .search-row input { flex: 1; width: 100%; }
#eureka .search-row button { white-space: nowrap; }
#eureka .table-wrap { width: 100%; overflow: auto; border: 1px solid #303135; scrollbar-width: thin; scrollbar-color: #35363a #1d1e20; }
#eureka .monsters-table { max-height: 301px; }
#eureka .actions-table { max-height: 320px; }
#eureka .monsters-table table, #eureka .actions-table table { table-layout: fixed; }
#eureka .monsters-table th:nth-child(1) { width: 32%; }
#eureka .monsters-table th:nth-child(2) { width: 14%; }
#eureka .monsters-table th:nth-child(3) { width: 18%; }
#eureka .monsters-table th:nth-child(4) { width: 17%; }
#eureka .actions-table th:nth-child(1), #eureka .actions-table th:nth-child(2) { width: 22%; }
#eureka .actions-table th:nth-child(3) { width: 12%; }
#eureka .actions-table th:nth-child(4) { width: 18%; }
#eureka table, #eureka-dialog table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
#eureka th, #eureka td, #eureka-dialog td, #eureka-dialog th { padding: 2px 7px; font-weight: 600; vertical-align: middle; }
#eureka th, #eureka-dialog th { background: #232426; border-bottom: 1px solid #303135; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
#eureka tbody tr:nth-child(even), #eureka-dialog tbody tr:nth-child(even) { background: #242527; }
#eureka td input { width: 100%; height: 23px !important; }
#eureka .right { text-align: right; }
#eureka .empty { padding: 22px; text-align: center; color: #9b9da8; }
#eureka .check { display: flex; align-items: center; gap: 6px; min-height: 29px; cursor: pointer; }
#eureka input[type="checkbox"] { appearance: none; flex-shrink: 0; width: 16px; height: 16px; margin: 0; background: #1f2022; border: 1px solid #333438; border-radius: 4px; cursor: pointer; position: relative; }
#eureka input[type="checkbox"]:checked { background: #f4b438; border-color: #edaf33; }
#eureka input[type="checkbox"]:checked::after { content: ""; position: absolute; top: 1px; left: 4px; width: 6px; height: 10px; border: solid #222; border-width: 0 2px 2px 0; transform: rotate(40deg); }
#eureka .setting-row { display: grid; grid-template-columns: 24% minmax(0, 1fr); gap: 0; padding: 4px 0; border-bottom: 1px solid #303135; }
#eureka .setting-row:last-child { border-bottom: 0; }
#eureka .setting-label { padding-top: 5px; }
#eureka .setting-row .check { margin-bottom: 0; }
#eureka .indent { margin-left: 22px; }
#eureka .range-row { display: grid; grid-template-columns: 38% minmax(0, 1fr); align-items: center; gap: 5px; margin: 4px 0; }
#eureka .slider { height: 23px; position: relative; background: #292a2e; border-radius: 6px; overflow: hidden; }
#eureka input[type="range"] { appearance: none; position: absolute; inset: 0; width: 100%; height: 23px; margin: 0; background: transparent; cursor: ew-resize; z-index: 1; }
#eureka input[type="range"]::-webkit-slider-thumb { appearance: none; width: 12px; height: 20px; border-radius: 6px; background: #f4b438; }
#eureka input[type="range"]::-moz-range-thumb { width: 12px; height: 20px; border: 0; border-radius: 6px; background: #f4b438; }
#eureka .slider output { display: block; text-align: center; line-height: 23px; pointer-events: none; position: relative; z-index: 2; text-shadow: 0 1px 3px #000; }
#eureka .color-row { display: grid; grid-template-columns: 36% minmax(0, 1fr); align-items: center; gap: 7px; margin: 4px 0; }
#eureka .color-controls { display: flex; gap: 4px; align-items: center; }
#eureka .color-controls span { width: 70px; text-align: center; background: #292a2e; padding: 3px; border-radius: 6px; }
#eureka input[type="color"] { appearance: none; background: none; width: 27px; height: 26px; border: 0; padding: 0; cursor: pointer; }
#eureka input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
#eureka input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
#eureka .primary, #eureka-dialog .primary { background: #f4b438; border-color: #f4b438; color: #171511; }
#eureka .outline, #eureka-dialog .outline { color: #ffb62c; border-color: #9f792c; }
#eureka .danger, #eureka-dialog .danger { color: #ff5555; border-color: #71393c; }
#eureka .wide { width: 100%; }
#eureka .tracker-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#eureka .tracker-tools button { width: 27px; height: 27px; padding: 3px; }
#eureka .tracker-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#eureka .tracker-summary > div:first-child { margin-right: auto; }
#eureka .tracker-badge { border-radius: 5px; padding: 0 5px; background: #292a2e; border: 1px solid #55565a; color: #9b9da8; }
#eureka #instance { width: 110px; margin-left: 5px; }
#eureka .nm-table { min-height: 680px; }
#eureka .nm-table table { min-width: 630px; }
#eureka .nm-table table { table-layout: fixed; }
#eureka .nm-table th:nth-child(1) { width: 8.5%; }
#eureka .nm-table th:nth-child(2) { width: 24%; }
#eureka .nm-table th:nth-child(3) { width: 23.5%; }
#eureka .nm-table th:nth-child(4) { width: 13%; }
#eureka .nm-table th:nth-child(5) { width: 19%; }
#eureka .nm-table th:nth-child(6) { width: 12%; }
#eureka .nm-table:has(th:nth-child(5):last-child) th:nth-child(1) { width: 25%; }
#eureka .nm-table:has(th:nth-child(5):last-child) th:nth-child(2) { width: 25%; }
#eureka .nm-table:has(th:nth-child(5):last-child) th:nth-child(3) { width: 14%; }
#eureka .nm-table:has(th:nth-child(5):last-child) th:nth-child(4) { width: 22%; }
#eureka .nm-table:has(th:nth-child(5):last-child) th:nth-child(5) { width: 14%; }
#eureka .nm-table td { height: 29px; }
#eureka .nm-table td, #eureka .nm-table th { border-right: 1px solid #292a2c; }
#eureka .nm-table button { width: 82px; min-height: 23px; padding-block: 0; }
#eureka .sort { background: transparent; border: 0; min-height: 18px; padding: 0; justify-content: flex-start; }
#eureka .logograms-table table { min-width: 620px; }
#eureka .logograms-table td:first-child { width: 26%; }
#eureka .logograms-table td:nth-child(2) { width: 11%; color: #9b9da8; }
#eureka .planner-select { width: 320px; margin: 4px 0; }
#eureka .planned { margin: 4px 0; padding: 2px 0; }
#eureka .planned .recipe { margin-left: 85px; font-size: 11px; }
#eureka .action-stone { height: 23px; width: 23px; color: #ffc248; background: radial-gradient(circle at 35% 30%, #ffe056, #a84e0a 52%, #55242b); display: inline-flex; align-items: center; justify-content: center; border: 1px solid #c58a2e; font-size: 18px; }
#eureka .planned .square { width: 23px; min-height: 23px; padding: 0; }
#eureka .price-table table { min-width: 590px; }
#eureka .price-table input { min-width: 90px; }
#eureka .live-threat { display: flex; align-items: center; gap: 12px; border-top: 1px solid #303135; padding: 5px 0; }
#eureka .live-threat:first-child { border: 0; }
#eureka .live-threat strong { margin-right: auto; }
#eureka .alert-preview { position: absolute; top: 150px; right: 22px; width: 240px; max-width: calc(100% - 44px); padding: 10px; border: 1px solid #cc8f2b; border-radius: 7px; background: #25201bf5; box-shadow: 0 5px 18px #0008; z-index: 4; cursor: move; touch-action: none; }
#eureka .alert-preview p { margin: 4px 0; }
#eureka .alert-preview.locked { cursor: default; }
#eureka .alert-preview .cast-bar { height: 5px; background: #f4b438; width: 70%; margin-top: 8px; border-radius: 2px; }
#eureka .about-logo { display: flex; align-items: center; gap: 15px; margin: 5px 0 15px; }
#eureka .about-logo img { width: 70px; height: 70px; }
#eureka .command { display: grid; grid-template-columns: 170px 1fr; gap: 10px; padding: 6px; border-bottom: 1px solid #303135; }
#eureka a { color: #ffbf4a; }
#eureka-notice { position: fixed; bottom: 64px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); z-index: 10; border: 1px solid #7a622f; border-radius: 8px; padding: 10px 16px; background: #29241b; color: #f6e0b1; font: 600 12px/1.5 "Segoe UI",sans-serif; box-shadow: 0 5px 22px #0008; pointer-events: none; }
#eureka-notice:empty { display: none; }
#eureka-dialog { width: min(570px, calc(100% - 28px)); max-height: 85dvh; overflow: auto; border: 1px solid #595040; border-radius: 11px; padding: 18px; color: #dddfe4; background: #1f2022; font: 600 13px/1.5 "Segoe UI",sans-serif; }
#eureka-dialog::backdrop { background: #0009; }
#eureka-dialog h2 { display: block; font-size: 18px; margin: 0 0 12px; color: #e3e3e5; }
#eureka-dialog h2::after { display: none; }
#eureka-dialog label { display: grid; grid-template-columns: 100px 1fr; gap: 8px; align-items: center; margin: 10px 0; }
#eureka-dialog .dialog-footer { display: flex; justify-content: flex-end; gap: 7px; margin-top: 15px; }
#eureka-dialog .map { height: 330px; position: relative; overflow: hidden; border: 1px solid #585343; border-radius: 8px; background: radial-gradient(ellipse at 50% 45%, #6a6a46 0 13%, #585b3d 14% 30%, #444e39 31% 48%, #293d40 49%); }
#eureka-dialog .map::before { content: "ANEMOS · SAMPLE MAP"; position: absolute; bottom: 10px; left: 12px; font-size: 11px; color: #d9d8ba; letter-spacing: 2px; }
#eureka-dialog .map button { position: absolute; width: 25px; height: 25px; min-height: 25px; padding: 0; border-radius: 50%; background: #212222; color: #f4b438; border-color: #f4b438; }
#eureka-dialog .map button.popped { color: #64e79b; border-color: #64e79b; }
#eureka-dialog .map button.has-name::after { content: attr(data-name); position: absolute; top: 23px; left: 50%; transform: translateX(-50%); font-size: 8px; padding: 0 2px; color: #fff; background: #151719d9; white-space: nowrap; pointer-events: none; }
@media (max-width: 690px) {
    #eureka .top-tabs button { min-width: 125px; }
    #eureka .demo-tools .demo-note { display: none; }
    #eureka .setting-row { grid-template-columns: 1fr; gap: 5px; }
    #eureka .setting-label { color: #f4b438; }
    #eureka .color-row { grid-template-columns: 1fr; }
    #eureka .status-grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #eureka .color-controls span { flex: 1; min-width: 0; }
    #eureka .titlebar .tracking { margin-left: 5px; }
}
@media (max-width: 480px) {
    #eureka { width: calc(100% - 12px); font-size: 12px; }
    #eureka .content { padding: 8px; margin-inline: 6px; }
    #eureka .identity { gap: 7px; }
    #eureka .identity p { max-width: 180px; font-size: 10px; }
    #eureka .identity img { width: 36px; height: 36px; }
    #eureka .language { padding: 0; }
    #eureka .language .icon { display: none; }
    #eureka .language select { font-size: 11px; padding-inline: 3px; }
    #eureka .status-grid { gap: 5px; }
    #eureka .status-card { padding: 7px; gap: 4px; flex-direction: column; align-items: flex-start; }
    #eureka .status-card > .icon { width: 25px; height: 25px; }
    #eureka .stats .status-card { flex-direction: row; align-items: center; }
    #eureka .bottom-tabs { margin-inline: 6px; }
    #eureka .bottom-tabs button { font-size: 11px; padding-inline: 3px; }
    #eureka .bottom-tabs .icon { width: 15px; }
    #eureka h2 { font-size: 16px; flex-wrap: wrap; }
    #eureka h2 .save-hint { display: none; }
    #eureka .range-row { grid-template-columns: 1fr; }
    #eureka .monsters-table table, #eureka .actions-table table { min-width: 650px; }
    #eureka .titlebar .tracking { font-size: 10px; }
    #eureka .command { grid-template-columns: 1fr; gap: 3px; }
    #eureka .planned .recipe { margin-left: 0; }
}
