.skill-test-page .test-main{display:block;width:min(1280px,100%);margin:0 auto;padding:24px 24px 80px;min-width:0}.test-heading,.test-toolbar,.test-member-head,.test-skill-head,.test-condition-line,.test-dialog-head,.test-dialog-foot{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.test-heading,.test-toolbar,.test-skill-head,.test-dialog-head{justify-content:space-between}.test-heading h1{margin:0;font-size:25px}.test-heading h1 small{font-size:12px;color:#c7bced;border:1px solid #645876;padding:2px 6px;border-radius:4px;vertical-align:middle}.test-heading p{margin:6px 0;color:#c2b9d0}.test-main button,.test-dialog button{min-height:36px}.test-main input,.test-main select,.test-dialog input,.test-dialog select,.test-dialog textarea{max-width:100%;min-width:0;background:#181324;color:#f1eafa;border:1px solid #655575;border-radius:5px;padding:7px 9px;font:inherit}.test-main label{display:grid;gap:4px;color:#cfc4dc;font-size:13px}.test-main button:focus-visible,.test-dialog button:focus-visible,.test-main input:focus-visible,.test-dialog input:focus-visible{outline:2px solid #d0abff;outline-offset:3px}.test-main [hidden],.test-dialog [hidden]{display:none!important}.test-setup,.test-conditions{border:1px solid #524362;border-radius:9px;background:#21192e;padding:16px;margin-top:16px}.test-segment,.test-actions{display:flex;gap:6px;flex-wrap:wrap}.test-segment button[aria-pressed=true],.test-members button[aria-pressed=true],.test-result-tabs button[aria-pressed=true]{background:#513777;border-color:#ab81d9;color:#fff}.test-muted{color:#bfb2cc;font-size:12px;margin:9px 0}.test-members{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:15px 0}.test-members button{display:flex;gap:6px;align-items:center;text-align:left;min-width:0;padding:7px}.test-members img{width:36px;height:36px;object-fit:contain;flex-shrink:0}.test-members span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.test-members .test-empty{color:#b7a5c7;border-style:dashed}.test-member-head{padding-bottom:12px;border-bottom:1px solid #483852}.test-member-head img{width:52px;height:52px;object-fit:contain}.test-name{flex:1;max-width:300px}.test-member-head input[type=number]{width:95px}.test-skill-head{margin-top:12px}.test-skills{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:10px}.test-skills h3{font-size:13px;margin:0 0 6px;color:#c5b3d7}.test-skill-row{display:flex;align-items:center;gap:3px;border-top:1px solid #3c304a;padding:3px 0;min-width:0}.test-skill-row>details{flex:1;min-width:0}.test-skill-row summary{cursor:pointer;padding:6px 2px;font-size:14px;overflow-wrap:anywhere}.test-skill-row .test-row-actions{display:flex;flex-shrink:0}.test-row-actions button{padding:0 7px;min-height:32px;min-width:29px;font-size:12px;background:transparent}.test-locked{font-size:11px;color:#bba8cf;margin-right:4px}.test-conditions select{max-width:330px}.test-conditions #test-run{margin-left:auto;min-height:42px;padding:8px 22px}.test-advanced{margin-top:12px;border-top:1px solid #483852;padding-top:10px;font-size:13px;color:#c6b7d5}.test-advanced summary{cursor:pointer}.test-advanced .test-condition-line{margin-top:12px}.test-advanced input[type=number]{width:130px}.test-check{display:flex!important;align-items:center;gap:8px!important}.test-advanced li{margin:8px 0;line-height:1.65}.test-error{background:#46272e;border:1px solid #ad7077;padding:10px;border-radius:6px;color:#ffe4e6}.test-results{margin-top:24px}.test-results h2{font-size:20px;margin:0 0 8px}.test-result-note{color:#d7c39e;font-size:13px;line-height:1.65}.test-range-table,.test-ct-table{border-collapse:collapse;width:100%;font-size:14px;font-variant-numeric:tabular-nums}.test-range-table th,.test-range-table td,.test-ct-table th,.test-ct-table td{padding:9px 10px;border-bottom:1px solid #493a58;text-align:left}.test-range-table th,.test-ct-table th{font-size:12px;color:#c6b5d7}.test-table-wrap{overflow-x:auto}.test-result-tabs{display:flex;gap:6px;margin:20px 0 12px}.test-log{margin:0;padding:0;list-style:none}.test-log>li{border-bottom:1px solid #3c304b;padding:9px 0;display:grid;grid-template-columns:30px 1fr;gap:8px;font-size:14px}.test-log-num{color:#a28bb8;font-variant-numeric:tabular-nums;font-size:12px;padding-top:3px}.test-log small{display:block;color:#b9a9c9;margin-top:3px;line-height:1.65}.test-log .test-chain{border-left:2px solid #9170ad;padding-left:10px}.test-log details{color:#c1afd1;font-size:12px;margin-top:6px}.test-log .test-blocked{color:#ccbab0}.test-log .test-resource{color:#9acdbb}.test-warnings{padding:12px 14px;background:#2c2534;border:1px solid #675465;border-radius:6px;margin:16px 0;font-size:13px;line-height:1.6}.test-warnings summary{cursor:pointer;color:#e3c4a2}.test-warnings li{margin:7px 0}.test-ct{margin:18px 0}.test-ct summary{cursor:pointer;padding:9px 0}.test-dialog{width:min(720px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 28px);padding:18px;background:#21182f;color:#f0e9f7;border:1px solid #776084;border-radius:10px}.test-dialog[open]{display:flex;flex-direction:column;gap:12px}.test-dialog::backdrop{background:#08060dba}.test-dialog-head{flex-shrink:0}.test-dialog-head h2{font-size:19px;margin:0}.test-dialog-head button{font-size:22px;width:38px}.test-dialog-list{overflow:auto;min-height:60px;overscroll-behavior:contain}.test-pick-row{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:10px;margin-bottom:5px;min-width:0}.test-pick-row img{width:42px;height:42px;object-fit:contain}.test-pick-row span{overflow-wrap:anywhere}.test-pick-row small{display:block;color:#bcaaca;margin-top:4px}.test-dialog-foot{justify-content:flex-end;flex-shrink:0}.test-add-dialog{width:min(920px,calc(100vw - 24px))}.test-add-dialog .test-condition-line>input{flex:1}.test-search-row{border-bottom:1px solid #4a365b;display:flex;align-items:flex-start;gap:8px;padding:8px 0}.test-search-row details{flex:1;min-width:0}.test-search-row summary{cursor:pointer;line-height:1.5;overflow-wrap:anywhere}.test-search-row summary small{display:block;color:#baabc8;font-size:12px;line-height:1.5}.test-search-row>button{flex-shrink:0}.test-dialog textarea{resize:vertical;min-height:140px}.test-dialog .skill-detail-content{padding:10px 0}.test-add-dialog #test-search-controls{flex-shrink:1;overflow:auto}.test-copy-row{display:flex;justify-content:flex-end;margin-top:12px}
.test-add-dialog #test-search-controls{flex:0 0 auto;max-height:38dvh;overflow:auto}.test-dialog-list{flex:1 1 auto}.test-results{scroll-margin-top:80px}.test-search-row summary small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.test-editor>summary{cursor:pointer;font-size:15px;font-weight:600;line-height:1.6}.test-editor[open]>summary{margin-bottom:15px}.test-current{margin:8px 0 0;font-size:14px;color:#ded3e9}.test-expert{margin:14px 0 0}.test-reorder-toggle{margin:10px 0;font-size:12px!important;color:#c6b7d5}.test-skills:not(.test-reordering) [data-move],.test-skills:not(.test-reordering) .test-order-note{display:none}.test-order-note{font-size:12px;color:#bfb2cc}.test-log-toggle{margin-bottom:14px;font-size:13px!important}.test-unknown{color:#e3c4a2}.test-skill-row .test-row-actions button{min-height:38px;min-width:36px}.test-conditions{scroll-margin-top:80px}.test-conditions .test-condition-line>label{flex:1;max-width:330px}.test-copy-row{gap:8px;flex-wrap:wrap}
.test-advanced>#test-reset{margin-top:14px}
.test-log>.test-flow-phase{display:block;border:0;border-bottom:1px solid #655575;padding:14px 0 8px;margin-top:12px;font-size:13px;color:#c7b6d6}
.test-log>.test-flow-owner{display:flex;align-items:center;gap:9px;border:0;padding:12px 0 6px;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.test-flow-owner img{width:32px;height:32px;object-fit:contain;flex-shrink:0}
.test-log>.test-flow-item{display:block;margin-left:15px;padding:9px 0 9px 16px;border:0;border-left:2px solid #655575;overflow-wrap:anywhere}
.test-flow-skill{display:flex;align-items:baseline;gap:4px 8px;flex-wrap:wrap;line-height:1.6}.test-flow-skill strong{font-size:15px}.test-flow-from{font-size:12px;color:#bfb2cc}.test-log .test-flow-item small{font-size:12px;margin-top:1px}
/* Keep each owned hom readable when the dialog contains many entries. */
#test-picker.test-dialog #test-picker-list{display:flex;flex-direction:column;gap:8px;min-height:0;overflow-y:auto;overflow-x:hidden}
#test-picker.test-dialog .test-pick-row{flex:0 0 auto;min-height:76px;height:auto;padding:12px;white-space:normal;line-height:1.5;gap:14px}
#test-picker.test-dialog .test-pick-row>img{width:48px;height:48px;flex:0 0 48px}
#test-picker.test-dialog .test-pick-row strong{display:block;overflow-wrap:anywhere}
#test-picker.test-dialog #test-picker-query{flex-shrink:0}
.test-hom-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0}.test-hom-choice .test-current{display:flex;align-items:center;gap:12px;min-width:0;margin:0}.test-current>img,.test-current>.test-portrait-empty{width:56px;height:56px;object-fit:contain;flex-shrink:0}.test-current>div{min-width:0}.test-current strong{display:block;font-size:17px;line-height:1.5;overflow-wrap:anywhere}.test-current small,.test-current>div>span{display:block;color:#bfb2cc;font-size:12px;line-height:1.6}.test-portrait-empty{display:flex;align-items:center;justify-content:center;border:1px dashed #79658b;border-radius:6px;font-size:24px;color:#c1afd1;flex-shrink:0}.test-source-actions{display:flex;gap:8px;flex-shrink:0;flex-wrap:wrap}.test-source-actions #test-load-hom{border-color:#b193cf;background:#413054;min-height:42px}.test-source-actions #test-load-party{min-height:42px}.test-main .test-members{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.test-main .test-members button{padding:8px;min-height:66px}.test-main .test-members img,.test-members .test-portrait-empty{width:42px;height:42px;flex-shrink:0}.test-members .test-member-copy{white-space:normal;min-width:0;overflow-wrap:anywhere}.test-member-copy strong{display:block;font-size:14px;line-height:1.4;font-weight:600}.test-member-copy small{display:block;font-size:11px;color:#c2b0d2;margin-bottom:3px}.test-members button[aria-pressed=true]{box-shadow:inset 3px 0 #c8a0e5}.test-pick-row>img{flex-shrink:0;width:48px;height:48px}.test-pick-row>span:not(.test-pick-arrow){min-width:0;flex:1}.test-pick-row strong{font-size:15px;line-height:1.5}.test-pick-arrow{font-size:23px;color:#bba8cf;flex-shrink:0}.test-pick-row{min-height:72px;margin:0}.test-pick-row:hover{border-color:#c8a0e5}.test-dialog #test-picker-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start}.test-pick-row:focus-visible{outline:2px solid #d0abff;outline-offset:-3px}.test-source-actions button:focus-visible,.test-members button:focus-visible{outline:2px solid #d0abff;outline-offset:2px}
@media(max-width:760px){.test-hom-choice{align-items:stretch;flex-direction:column;gap:12px}.test-source-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.test-source-actions button{padding:8px 5px;font-size:12px;white-space:normal;line-height:1.5}.test-main .test-members{grid-template-columns:repeat(2,minmax(0,1fr))}.test-main .test-members img,.test-members .test-portrait-empty{width:32px;height:32px}.test-member-copy strong{font-size:12px}.test-dialog #test-picker-list{grid-template-columns:minmax(0,1fr)}.test-current strong{font-size:16px}}
.test-run-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.test-battle-conditions{display:flex;align-items:center;gap:12px 22px;flex-wrap:wrap;margin-top:10px}.test-battle-conditions .test-check{min-height:40px;cursor:pointer}.test-battle-conditions .test-enemy-count{display:flex;align-items:center;gap:8px}.test-enemy-count input{width:66px}.test-hit-target{display:inline-block;margin-left:8px;color:#c6b7d5;font-size:12px}.test-battle-conditions .test-check input{accent-color:#b993df;width:17px;height:17px}
.test-skill-row>details>summary{position:relative;padding-right:16px}.test-skill-row>details>summary::after{position:absolute;right:2px;top:8px;margin:0}
.skill-test-page .test-main{padding-top:16px}.test-heading p{display:none}#test-status{font-size:12px;color:#bfb2cc;margin:8px 0}.test-setup:not(.test-editor){margin-top:10px;padding:12px}.test-setup:not(.test-editor)>.test-muted{margin:6px 0}.test-members{margin:8px 0}.test-members button{min-height:42px;padding:5px}.test-members img{width:30px;height:30px}.test-current{margin-top:6px;font-size:13px}.test-conditions{margin-top:10px;padding:12px}.test-advanced{margin-top:8px;padding-top:8px}.test-editor{margin-top:10px}.test-priority-note{max-width:68ch}.test-active-row>details>summary small{max-width:80ch}
.test-skills{display:block}.test-skills>details{margin-top:18px;border-top:1px solid #524362;padding-top:12px}.test-skills>details>summary{font-size:14px;cursor:pointer;padding:8px 0}.test-profile{font-size:13px;color:#bfb2cc;margin:8px 0}.test-profile>summary{cursor:pointer;padding:6px 0}.test-profile .test-member-head{padding-top:12px}.test-active-row{display:grid;grid-template-columns:minmax(0,1fr) auto 36px;gap:8px;padding:6px 0}.test-active-row>details>summary{font-size:15px}.test-active-row>details>summary small{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;color:#bfb2cc;font-size:12px;font-weight:400;line-height:1.6;margin-top:2px}.test-priority{display:flex;align-items:center;gap:3px}.test-priority>span{font-size:11px;color:#bfb2cc;margin-right:4px}.test-priority button{min-width:34px;min-height:36px;padding:0;border:1px solid #655575;background:transparent;color:#cfc4dc}.test-priority button[aria-pressed=true]{background:#493260;border-color:#c8a0e5;color:#fff}.test-priority button[data-value="0"][aria-pressed=true]{background:#522e36;border-color:#bf8590}.test-off>details>summary{color:#aa9db5}.test-priority-note{font-size:12px;color:#d7c39e;line-height:1.6;margin:10px 0}.test-profile:not([open])+.test-skill-head{margin-top:6px}
@media(max-width:760px){.test-active-row{grid-template-columns:minmax(0,1fr) 36px;gap:2px 8px}.test-active-row>details{grid-column:1;grid-row:1}.test-active-row .test-row-actions{grid-column:2;grid-row:1/3;align-self:center}.test-active-row .test-priority{grid-column:1;grid-row:2;padding:2px 0 6px}.test-priority button{min-width:38px;min-height:40px}.test-priority>span{margin-right:6px}.test-skill-head>strong{display:none}}
@media(max-width:760px){.skill-test-page .test-main{padding:15px 12px 70px}.test-heading{align-items:flex-start}.test-heading h1{font-size:22px}.test-heading>button{font-size:12px}.test-setup,.test-conditions{padding:12px}.test-members{grid-template-columns:repeat(3,minmax(0,1fr))}.test-skills{grid-template-columns:1fr;gap:12px}.test-member-head{gap:8px}.test-name{max-width:none;min-width:110px}.test-member-head #test-species{max-width:100%;overflow-wrap:anywhere}.test-toolbar{gap:10px}.test-actions button{font-size:12px}.test-conditions #test-run{margin-left:0;flex:1}.test-condition-line>label{max-width:100%;flex:1;min-width:180px}.test-condition-line select{width:100%}.test-dialog{padding:12px}.test-range-table th,.test-range-table td,.test-ct-table th,.test-ct-table td{padding:8px 5px;font-size:12px}.test-dialog .test-condition-line{flex-wrap:nowrap}.test-dialog .test-condition-line>select{width:120px}.test-log>li{grid-template-columns:24px 1fr}.test-result-tabs button{flex:1}.test-check{min-width:100%!important}}
@media(max-width:760px){.skill-test-page.game-ui .app-header nav.primary-nav .nav-button:nth-child(n+4){grid-column:span 2}.test-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.test-heading h1{font-size:21px;display:flex;gap:6px;align-items:center;white-space:nowrap}.test-heading p{font-size:12px}.test-heading>button{padding-inline:8px}.test-toolbar .test-actions{gap:5px}.test-toolbar .test-actions button{padding-inline:8px}.test-name{max-width:180px}}
@media(max-width:760px){.skill-test-page .test-main{padding-bottom:110px}.test-run-actions{position:fixed;bottom:0;left:0;right:0;z-index:5;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#21192e;border-top:1px solid #655575}.test-conditions .test-run-actions #test-run{flex:1;min-height:44px;white-space:nowrap;font-size:15px}.test-run-actions #test-cancel{min-height:44px}.test-condition-line>label{flex-basis:100%}.test-dialog .test-condition-line>label{flex-basis:auto}}
@media(max-width:760px){.skill-test-page.game-ui .app-header nav.primary-nav .nav-copy,.skill-test-page.game-ui .app-header nav.primary-nav .nav-copy strong{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.3}}
