/* Compact desktop UI; all styles are scoped to this preview. */
body[data-plugin=xadb] .header-inner{min-height:52px}
#xadb{width:min(1100px,calc(100% - 24px));padding:12px 0 24px;color:#f3f3f3;font:500 13px/1.35 "Segoe UI",sans-serif;--cyan:#6cf;--muted:#858585;--line:#3e3e42}
#xadb *{box-sizing:border-box}
#xadb .demo-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:880px;margin:0 auto 10px;font-weight:400}
#xadb .demo-label{margin-left:auto;color:#98a1b2;font-size:12px}
#xadb .window{width:880px;max-width:100%;height:min(1090px,calc(100vh - 125px));min-height:700px;margin:auto;background:#0e0e0e;border-radius:3px;overflow:hidden;resize:both;display:flex;flex-direction:column}
#xadb .window.compact{width:850px;height:705px}#xadb .window.tall{height:1090px}
#xadb .window.collapsed{min-height:0;height:24px!important;resize:none}#xadb .window.closed{height:auto!important;min-height:0;padding:18px;resize:none}
#xadb .titlebar{height:24px;min-height:24px;padding:2px 4px;background:#531919;display:flex;align-items:center;gap:3px}
#xadb .window-title{margin-right:auto;white-space:nowrap}
#xadb .titlebar button{background:transparent;padding:0;width:18px;height:20px;min-height:0;font-size:17px;line-height:20px}
#xadb .titlebar button:hover{background:#ffffff25}
#xadb .toolbar-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 8px 5px;min-height:36px;flex-shrink:0}
#xadb .window-menu{display:flex;gap:5px;padding:5px 8px;border-bottom:1px solid var(--line)}
#xadb .tabs{display:flex;gap:4px;margin:0 8px;padding:0;border-bottom:1px solid #722525;overflow-x:auto;flex-shrink:0;scrollbar-width:thin}
#xadb .tabs button{background:#343434;border-radius:3px 3px 0 0;padding:2px 5px;min-height:21px;white-space:nowrap;flex-shrink:0}
#xadb .tabs button[aria-selected=true]{background:#782d2d}#xadb .tabs button:hover{background:#625050}
#xadb .content{padding:8px 8px 5px;flex:1;min-height:0;overflow:auto;scrollbar-color:#515151 #151515;scrollbar-width:thin}
#xadb .statusbar{display:flex;gap:8px;margin:0 7px;padding-top:5px;border-top:1px solid var(--line);min-height:35px;flex-shrink:0;color:var(--muted);white-space:nowrap;overflow:hidden}
#xadb .statusbar span+span::before{content:"|";margin-right:8px}
#xadb button,#xadb input,#xadb select{font:inherit;color:inherit;border:none;border-radius:4px}
#xadb button{min-height:23px;padding:2px 5px;background:#4b4b4b;cursor:pointer}#xadb button:hover{background:#646464}
#xadb button:disabled,#xadb input:disabled{opacity:.45;cursor:default}
#xadb input:not([type=checkbox]):not([type=range]),#xadb select{background:#2d2d2d;height:23px;padding:2px 4px;min-width:0;max-width:100%}
#xadb input::placeholder{color:#858585;opacity:1}#xadb input[type=number]{width:120px}#xadb select{border-right:18px solid #4b4b4b;padding-right:0}
#xadb .check{display:flex;align-items:center;gap:4px;min-height:23px;margin:4px 0}
#xadb input[type=checkbox]{appearance:none;width:23px;height:23px;min-width:23px;background:#2d2d2d;margin:0;position:relative;cursor:pointer}
#xadb 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)}
#xadb .check-help{color:var(--muted);margin:4px 0}
#xadb .field,#xadb .row,#xadb .filter-row{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:4px 0}
#xadb .search-input{width:400px}#xadb .locator .search-input{width:300px}#xadb .filter-row{margin:5px 0 8px}
#xadb .range-track{position:relative;display:inline-flex;width:220px;height:23px;background:#2d2d2d;border-radius:4px}
#xadb input[type=range]{appearance:none;margin:0;width:100%;background:transparent}
#xadb input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:19px;border-radius:3px;background:#888}
#xadb .range-track output{position:absolute;inset:3px 0;text-align:center;pointer-events:none}
#xadb h2,#xadb h3{display:block;font-size:13px;font-weight:600;letter-spacing:0;margin:0 0 7px;color:var(--cyan)}#xadb h2::after{display:none}
#xadb .section>h2{border-bottom:1px solid var(--line);padding-bottom:7px;margin-bottom:7px}#xadb .section+.section{margin-top:13px}
#xadb p{margin:4px 0}#xadb hr{border:0;border-top:1px solid var(--line);margin:8px 0}
#xadb .muted{color:var(--muted)}#xadb .ok{color:#4f7}#xadb .warn{color:#fc4}#xadb .bad{color:#f44}#xadb .gil{color:#ffed00}#xadb .cyan{color:var(--cyan)}
#xadb .kv{display:grid;grid-template-columns:148px minmax(0,1fr);min-height:21px;gap:0}#xadb .kv strong{font-weight:600;overflow-wrap:anywhere}
#xadb .housing-info .kv>span{color:var(--muted)}#xadb .overview-info{margin:8px 0 9px}#xadb .overview-usage{color:inherit;margin:8px 0 6px}
#xadb table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;line-height:20px;text-align:left;font-variant-numeric:tabular-nums}
#xadb td,#xadb th{padding:0 4px;border:1px solid var(--line);vertical-align:top;overflow:hidden;text-overflow:clip}
#xadb th{background:#303034;font-weight:600;position:sticky;top:0;z-index:1}
#xadb th button{display:block;width:100%;background:none;text-align:left;border-radius:0;padding:0;min-height:20px;line-height:20px;white-space:nowrap}#xadb th button:hover{background:#ffffff12}
#xadb th[aria-sort=ascending] button::after{content:"▲";float:right;font-size:10px}#xadb th[aria-sort=descending] button::after{content:"▼";float:right;font-size:10px}
#xadb tbody tr:nth-child(even) td{background:#1e1e1e}#xadb tr.total-row td,#xadb tr.category-row td{background:#27263e;color:#9cf}
#xadb .scroll{overflow:auto;max-width:100%;scrollbar-color:#515151 #151515;scrollbar-width:thin;border:1px solid #505057}#xadb .scroll table{margin:-1px 0 0 -1px;width:calc(100% + 1px)}
#xadb .scroll.search-results{height:445px}#xadb .locator .scroll{height:150px}#xadb .scroll.inventory-items{max-height:250px}#xadb .scroll.retainer-items,#xadb .scroll.fc-members{height:250px}#xadb .scroll.aetherytes{height:220px}#xadb .scroll.active-quests,#xadb .scroll.dashboard-scroll,#xadb .scroll.comparison{height:300px}#xadb .scroll.msqs{max-height:300px}
#xadb .text-button{display:inline;padding:0;background:none;min-height:0;border-radius:0;text-align:left;line-height:inherit;color:inherit}#xadb .text-button:hover{background:none;color:var(--cyan);text-decoration:underline}
#xadb .item-cell{display:flex;align-items:center;gap:7px;min-width:0}#xadb .item-icon{width:20px;height:20px;flex-shrink:0;object-fit:contain}
#xadb .progress{position:relative;height:23px;border-radius:4px;background:#2e2e2e;margin:1px 0;overflow:hidden;min-width:65px}#xadb .progress-fill{position:absolute;inset:0 auto 0 0;background:#7b2e2e}#xadb .progress-label{position:relative;display:block;text-align:center;line-height:23px}#xadb .full-progress .progress-label{text-align:right;padding-right:5px}
#xadb details{margin:4px 0}#xadb summary{padding:2px 6px;min-height:23px;background:#383838;border-radius:4px;cursor:pointer}#xadb summary::marker{font-size:14px}#xadb .detail-body{padding:4px 0 0}#xadb .plain-details summary{background:none;padding-left:8px}
#xadb .two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#xadb .job-group h3{margin-bottom:5px}#xadb .job-line{display:flex;justify-content:space-between;min-height:21px;padding:0 6px}
#xadb .job-tank h3{color:#4d80ff}#xadb .job-healer h3{color:#4de64d}#xadb .job-melee-dps h3,#xadb .job-ranged-dps h3,#xadb .job-caster-dps h3{color:#e64d4d}#xadb .job-crafter h3{color:#c90}#xadb .job-gatherer h3{color:#3b6}
#xadb .dashboard-table{min-width:3440px}#xadb .dashboard-table td{white-space:nowrap}#xadb .delete-inline{float:right;padding:0 3px;min-height:17px;line-height:17px;margin-top:1px;color:#ffbaba;background:#592d2d}
#xadb .danger{color:#ffbaba;background:#592d2d}#xadb .small-button{padding:0 4px;min-height:17px;line-height:17px}
#xadb .settings-section{border-top:1px solid var(--line);margin-top:7px;padding-top:8px}#xadb .settings-section h3{margin-bottom:6px}#xadb .settings-section p{margin:5px 0}#xadb .settings-section .row{margin:6px 0}
#xadb .log{white-space:pre-wrap;overflow-wrap:anywhere;height:160px;overflow:auto;border:1px solid var(--line);padding:5px;font:inherit;color:var(--muted)}
#xadb .addon-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#xadb .addon-group{min-width:0}#xadb .addon-group p{overflow-wrap:anywhere;padding-left:10px}
#xadb .character-picker{position:relative;min-width:0}#xadb [data-action=picker]{min-width:210px;background:#2d2d2d;text-align:left;position:relative;padding-right:26px}
#xadb [data-action=picker]::after{content:"▼";position:absolute;right:0;top:0;bottom:0;width:23px;text-align:center;background:#4b4b4b;border-radius:0 3px 3px 0;font-size:17px;line-height:23px}
#xadb .character-menu{position:absolute;top:26px;left:0;z-index:5;width:300px;max-width:calc(100vw - 45px);background:#161616;border:1px solid #555;padding:5px;box-shadow:0 8px 25px #0008;max-height:370px;overflow:auto}
#xadb .character-menu input{width:100%;margin-bottom:5px}#xadb .character-menu button{display:block;width:100%;border-radius:0;background:none;text-align:left}#xadb .character-menu button:hover,#xadb .character-menu button[aria-pressed=true]{background:#383838}
#xadb .snapshot-warning{color:#fc4;margin:0 8px 5px}#xadb .notice{max-width:880px;margin:7px auto 0;color:#bcc5d4;font-weight:400}#xadb .notice:empty{display:none}#xadb .demo-footer{max-width:880px;margin:8px auto 0;color:#98a1b2;font-size:11px;font-weight:400}#xadb .empty{color:var(--muted);padding:8px 0}
#xadb .ipc-section h3{color:#fc4;margin-top:9px}#xadb .ipc-section td:first-child{color:#9e9}#xadb .ipc-section table{line-height:20px}#xadb .ipc-section td{overflow-wrap:anywhere}
#xadb :focus-visible{outline:2px solid #9cf;outline-offset:1px}
@media(max-width:640px){#xadb .window{min-height:650px;resize:vertical}#xadb .demo-label{margin-left:0;flex-basis:100%}#xadb .toolbar-row{gap:5px}#xadb .statusbar{font-size:10px;gap:4px}#xadb .statusbar span+span::before{margin-right:4px}#xadb .kv{grid-template-columns:110px minmax(0,1fr)}#xadb .wide-table{min-width:650px}#xadb .addon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#xadb .job-line{padding:0 2px;font-size:11px}#xadb .two{gap:8px}#xadb .character-menu{left:auto;right:0}}

#xadb .tabs button[aria-selected=true]:hover{background:#782d2d}
#xadb .scroll,#xadb .content{scrollbar-width:auto}
#xadb ::-webkit-scrollbar{width:14px;height:14px}
#xadb ::-webkit-scrollbar-track{background:#151515}
#xadb ::-webkit-scrollbar-thumb{background:#515151;border:3px solid #151515;border-radius:8px}
#xadb ::-webkit-scrollbar-corner{background:#151515}
#xadb .detail-body>.filter-row{margin:0 0 4px}
#xadb .detail-body>.filter-row .check{margin:0}

#xadb .scroll,#xadb .content{scrollbar-color:auto}

#xadb tbody tr.category-row td{background:#27263e;color:#9cf}
#xadb .ipc-section td:first-child{white-space:nowrap}

#xadb tbody tr.table-fill td{background:#0e0e0e}
