/* XA Slave desktop window: keep separate from the generic workbench theme. */
body[data-plugin="xaslave"] .header-inner { min-height:52px }
#xaslave { width:min(1100px,calc(100% - 24px)); padding:12px 0 24px; --cyan:#6cf; --orange:#ffb366; --purple:#c9f; --lime:#ccff8c; --green:#9f9; color:#f4f4f4; font:500 13px/1.35 "Segoe UI",sans-serif }
#xaslave * { box-sizing:border-box }
#xaslave .demo-controls { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 auto 10px; max-width:850px }
#xaslave .demo-note { margin-left:auto; color:#98a1b2; font:12px/1.4 "Segoe UI",sans-serif }
#xaslave .window { width:850px; max-width:100%; height:min(1120px,calc(100vh - 125px)); min-height:740px; margin:auto; background:#0e0e0e; border-radius:3px; overflow:hidden; resize:both; display:flex; flex-direction:column }
#xaslave .window.small { width:740px; height:840px }
#xaslave .window.tall { height:1120px }
#xaslave .window.collapsed { min-height:0; height:24px!important; resize:none }
#xaslave .window.closed { min-height:0; height:auto!important; resize:none; padding:18px }
#xaslave .titlebar { height:24px; min-height:24px; padding:2px 4px; background:#531919; display:flex; align-items:center; gap:3px }
#xaslave .window-title { margin-right:auto; white-space:nowrap }
#xaslave .titlebar button { background:transparent; padding:0; width:18px; height:20px; min-height:0; font-size:17px; line-height:20px }
#xaslave .titlebar button:hover { background:#ffffff25 }
#xaslave .workspace { display:grid; grid-template-columns:166px minmax(0,1fr); gap:5px; flex:1; min-height:0; padding:8px 7px 4px }
#xaslave .sidebar,#xaslave .content { border:1px solid #3d3d3d; min-width:0; overflow:auto; scrollbar-color:#515151 #151515; scrollbar-width:thin }
#xaslave .sidebar { padding:5px 3px }
#xaslave .content { padding:8px 7px }
#xaslave .sidebar details { margin:5px 0 8px }
#xaslave .sidebar summary { border:1px solid #3e3e3e; border-radius:4px; height:23px; padding:2px 7px; color:var(--section); white-space:nowrap }
#xaslave summary { cursor:pointer }
#xaslave summary::marker { font-size:15px }
#xaslave .sidebar button { display:block; border-radius:0; padding:2px 3px; width:100%; min-height:21px; text-align:left; background:transparent; white-space:nowrap; font-size:12px }
#xaslave .sidebar button[aria-current="page"] { background:#383838 }
#xaslave .sidebar button:hover { background:#303030 }
#xaslave .sidebar [data-page="ar"] { color:var(--green) }
#xaslave .statusbar { color:#868686; margin:0 7px; border-top:1px solid #3d3d3d; height:31px; min-height:31px; padding-top:6px }
#xaslave h2,#xaslave h3 { display:block; font-size:13px; font-weight:600; letter-spacing:0; margin:0 0 6px; color:var(--cyan) }
#xaslave h2::after { display:none }
#xaslave h3 { margin-top:9px }
#xaslave p { margin:5px 0 }
#xaslave hr { border:0; border-top:1px solid #3b3b3b; margin:8px 0 }
#xaslave ul { padding-left:25px; margin:4px 0 8px }
#xaslave li { margin-bottom:4px }
#xaslave .muted { color:#858585 }
#xaslave .good { color:#6f6 }
#xaslave .error { color:#f55 }
#xaslave .warn { color:#fc4 }
#xaslave .orange { color:#fa2 }
#xaslave .purple { color:var(--purple) }
#xaslave .lime { color:var(--lime) }
#xaslave .row { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin:4px 0 }
#xaslave .stack { display:grid; gap:4px }
#xaslave .indent { padding-left:21px }
#xaslave .spacer { flex:1 }
#xaslave button,#xaslave input,#xaslave select,#xaslave textarea,#xaslave .link-button { font:inherit; color:inherit; border:none; border-radius:4px }
#xaslave button,#xaslave .link-button { min-height:23px; padding:2px 5px; background:#4b4b4b; cursor:pointer; text-decoration:none }
#xaslave button:hover,#xaslave .link-button:hover { background:#646464 }
#xaslave button:disabled,#xaslave input:disabled,#xaslave select:disabled,#xaslave .disabled { opacity:.45; cursor:default }
#xaslave input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),#xaslave select { background:#2d2d2d; height:23px; padding:2px 4px; min-width:0 }
#xaslave input[type="number"] { appearance:textfield; width:90px }
#xaslave input::-webkit-inner-spin-button,#xaslave input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0 }
#xaslave input::placeholder { color:#828282; opacity:1 }
#xaslave select { max-width:100%; border-right:20px solid #4b4b4b; padding-right:0 }
#xaslave .check { display:flex; align-items:center; gap:4px; min-height:23px; margin:3px 0 }
#xaslave input[type="checkbox"],#xaslave input[type="radio"] { appearance:none; background:#2d2d2d; width:23px; height:23px; min-width:23px; margin:0; position:relative; cursor:pointer }
#xaslave input[type="checkbox"]:checked::after { content:""; position:absolute; left:5px; top:1px; width:9px; height:15px; border:solid #d7d7d7; border-width:0 4px 4px 0; transform:rotate(45deg) }
#xaslave input[type="radio"] { border-radius:50% }
#xaslave input[type="radio"]:checked::after { content:""; position:absolute; inset:4px; border-radius:50%; background:#d7d7d7 }
#xaslave .field { display:flex; align-items:center; gap:4px; max-width:100% }
#xaslave .field.vertical { align-items:start; flex-direction:column }
#xaslave .wide { width:100% }
#xaslave .stepper { display:inline-flex; gap:4px; align-items:center }
#xaslave .stepper input { width:47px }
#xaslave .stepper button { width:23px; padding:0 }
#xaslave .slider { display:inline-flex; align-items:center; gap:4px; max-width:100% }
#xaslave .range-track { width:180px; position:relative; background:#2d2d2d; height:23px; border-radius:4px }
#xaslave .range-track output { position:absolute; inset:3px 0; text-align:center; pointer-events:none }
#xaslave input[type="range"] { appearance:none; width:100%; height:23px; background:transparent; margin:0 }
#xaslave input[type="range"]::-webkit-slider-thumb { appearance:none; width:15px; height:19px; border-radius:3px; background:#888 }
#xaslave table { width:100%; border-collapse:collapse; table-layout:auto; font-size:13px; line-height:1.3 }
#xaslave th { background:#303034; text-align:left; font-weight:600 }
#xaslave td,#xaslave th { padding:0 3px; border:1px solid #3e3e42; vertical-align:top }
#xaslave tr:nth-child(even) td { background:#1e1e1e }
#xaslave .table-wrap { overflow:auto; max-width:100% }
#xaslave .table-wrap.roster { height:250px; border:1px solid #505057; margin:7px 0 }
#xaslave .table-wrap.roster table { min-width:610px }
#xaslave .table-wrap.roster th { position:sticky; top:0; z-index:1; white-space:nowrap }
#xaslave .table-wrap.roster td { white-space:nowrap; height:24px }
#xaslave .table-wrap.roster tr.blank td { height:223px; background:transparent }
#xaslave .table-wrap.small-table { height:150px; border:1px solid #505057 }
#xaslave .table-wrap.queue-table { min-height:100px; border:1px solid #505057 }
#xaslave .table-wrap.queue-table tr.blank td { height:80px; background:transparent }
#xaslave td button { min-height:17px; height:17px; padding:0 4px }
#xaslave .plain-table td,#xaslave .plain-table th { border:0 }
#xaslave .command-table td:first-child { width:28%; color:#d9e6f7 }
#xaslave .command-table td { overflow-wrap:anywhere }
#xaslave .group { margin:8px 0 }
#xaslave .group>summary { background:#383838; color:#8edcff; padding:3px 6px; border-radius:4px }
#xaslave .group>.group-body { padding:2px 21px }
#xaslave .mod { margin-bottom:7px }
#xaslave .mod p { color:#858585 }
#xaslave .weather-grid { display:grid; grid-template-columns:repeat(3,90px); gap:6px 13px; margin:5px 0 }
#xaslave .weather-grid input { width:90px }
#xaslave .cities { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) }
#xaslave .cities label { font-size:12px }
#xaslave .splash-logo { width:110px; height:110px; object-fit:contain; margin:2px 0 10px }
#xaslave .tabs { display:flex; gap:3px; border-bottom:1px solid #652c2c; margin:6px 0 }
#xaslave .tabs button { border-radius:4px 4px 0 0 }
#xaslave .tabs [aria-selected="true"] { background:#692929 }
#xaslave .recipe-list { max-height:600px; overflow:auto; border:1px solid #3f3f3f; padding:7px }
#xaslave .recipe { padding-bottom:5px; margin-bottom:5px; border-bottom:1px solid #3d3d3d }
#xaslave .recipe select { width:415px }
#xaslave .log { background:#151515; border:1px solid #393939; padding:6px; max-height:200px; overflow:auto; white-space:pre-wrap }
#xaslave .start-green { background:#278b2c }
#xaslave .stop-red { background:#a82525 }
#xaslave .modal-backdrop { position:fixed; z-index:50; inset:0; display:grid; place-items:center; background:#0009; padding:15px }
#xaslave .modal { background:#111; border:1px solid #555; width:min(640px,100%); padding:12px; max-height:85vh; overflow:auto; box-shadow:0 10px 50px #0008 }
#xaslave .modal h2 { margin:-12px -12px 12px; padding:4px 8px; background:#531919; color:white }
#xaslave textarea { background:#292929; padding:6px; width:100%; height:160px }
#xaslave .toast { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); z-index:100; padding:10px 16px; border:1px solid #666; background:#292929; max-width:90vw }
#xaslave :focus-visible { outline:1px solid #8edcff; outline-offset:1px }
@media(max-width:620px) {
 #xaslave { width:calc(100% - 12px) }
 #xaslave .window { resize:none }
 #xaslave .workspace { grid-template-columns:144px minmax(0,1fr); padding:5px 3px; gap:3px }
 #xaslave .sidebar { padding-inline:1px }
 #xaslave .sidebar button { font-size:10px }
 #xaslave .sidebar summary { padding-inline:3px; font-size:11px }
 #xaslave .content { padding:7px 5px }
 #xaslave .weather-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px }
 #xaslave .weather-grid input { width:100% }
 #xaslave .cities { grid-template-columns:1fr }
 #xaslave .field,#xaslave .stepper,#xaslave .slider { flex-wrap:wrap }
 #xaslave .range-track { max-width:100% }
 #xaslave .titlebar button { width:15px }
 #xaslave .table-wrap { width:100% }
 #xaslave .demo-note { margin-left:0 }
}
#xaslave select { appearance:none; border-right:0; padding-right:24px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='23'%3E%3Crect width='23' height='23' rx='3' fill='%234b4b4b'/%3E%3Cpath d='M4 6h15l-7.5 12z' fill='%23eee'/%3E%3C/svg%3E"); background-position:right center; background-repeat:no-repeat }
#xaslave .content[data-page="ipc"] th:first-child { width:42% }
#xaslave .content[data-page="ipc"] th:nth-child(2) { width:14% }
#xaslave .content[data-page="ipc"] td:first-child { overflow-wrap:anywhere }
#xaslave .content[data-page="glam"] .plain-table th:first-child { width:110px }
#xaslave .content[data-page="xagman"] .roster { height:175px }
#xaslave details[data-disclosure="xagman.warning"]>summary,#xaslave details[data-disclosure="xagman.setup"]>summary,#xaslave details[data-disclosure$=".how"]>summary { display:inline-block; background:#4b4b4b; padding:1px 4px; border-radius:3px; margin:3px 0 }
#xaslave details[data-disclosure$=".how"]>summary::after { content:" [+]" }
#xaslave details[open][data-disclosure$=".how"]>summary::after { content:" [-]" }
#xaslave .content[data-page="commands"] thead { display:none }

#xaslave th { position:relative }
#xaslave .column-resizer { position:absolute; top:0; bottom:0; right:-2px; width:5px; cursor:col-resize; touch-action:none; z-index:2 }
#xaslave .column-resizer:hover { background:#9cf8 }

#xaslave .content[data-page="repos"] table { table-layout:fixed }
#xaslave .content[data-page="repos"] th:nth-child(1) { width:24% }
#xaslave .content[data-page="repos"] th:nth-child(2) { width:19% }
#xaslave .content[data-page="repos"] th:nth-child(3) { width:24% }
#xaslave .content[data-page="repos"] th:nth-child(4) { width:16% }
#xaslave .content[data-page="repos"] th:nth-child(5) { width:17% }
#xaslave .content[data-page="repos"] td { overflow-wrap:anywhere }
#xaslave .content[data-page="repos"] td:nth-child(4) { white-space:nowrap }
#xaslave .content[data-page="repos"] .table-wrap { min-width:0 }
#xaslave .content[data-page="hunter"] th:nth-child(1) { width:18% }
#xaslave .content[data-page="hunter"] th:nth-child(2) { width:12% }
#xaslave .content[data-page="debug"] .group>summary { color:#eee }
#xaslave .content[data-page="operations"] .muted,#xaslave .content[data-page="ar"]>.muted { white-space:nowrap; overflow:hidden }
#xaslave .titlebar svg { display:block }

#xaslave .row .check { margin:0 }
#xaslave .content[data-page="logos"] [data-native-action="craft-selection"] { width:90px }
#xaslave .content[data-page="logos"] [data-action="clear-selection"] { width:130px }
#xaslave .content[data-page="logos"] [data-action="clear-selection"]+[data-action="save-favorite"] { width:170px }
#xaslave .content[data-page="logos"] [data-native-action="native-reset-costs"] { width:180px }
#xaslave .content[data-page="logos"] [aria-label="Source logogram costs"] th:nth-child(1) { width:23% }
#xaslave .content[data-page="logos"] [aria-label="Source logogram costs"] th:nth-child(2) { width:9% }
#xaslave .content[data-page="logos"] [aria-label="Source logogram costs"] th:nth-child(3) { width:36% }
#xaslave .content[data-page="logos"] [aria-label="Source logogram costs"] .stepper { width:100% }
#xaslave .content[data-page="logos"] [aria-label="Source logogram costs"] .stepper input { width:0; flex:1 }
#xaslave .content[data-page="logos"] [aria-label="Source logogram costs"] .stepper button { height:23px; min-width:23px }
