/* roster.css */
:root{color-scheme:dark;--bg:#09111c;--panel:#111e2e;--line:#2e425c;--text:#e5edf8;--muted:#92a8c1;--ice:#a9d8fc}*{box-sizing:border-box}html{min-height:100%;background:#09111c}body{min-height:100vh;margin:0;color:var(--text);font:14px 'Segoe UI','Microsoft JhengHei',sans-serif;background:radial-gradient(ellipse at 95% 0,#233d58 0,transparent 55%),linear-gradient(160deg,#0c1726,#09111c 70%);background-attachment:fixed;background-repeat:no-repeat}button,input,select{font:inherit}button,select{cursor:pointer}button{color:inherit;border:1px solid #3b506a;border-radius:5px;background:#182a40;padding:8px 12px;transition:background .15s,border-color .15s}button:hover{background:#29435f;border-color:#7d9aba}button:disabled{cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #9ed8ff;outline-offset:2px}select,input{color:var(--text);background:#101d2f;border:1px solid var(--line);border-radius:4px;padding:8px}a{color:#b4dbff}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
header{height:158px;padding:8px 3%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #5d7995;background:linear-gradient(90deg,#081222db 0,#0a152955 45%,#0a13254a 72%,#081222ca);box-shadow:0 7px 25px #0005}.brand{min-width:0;align-self:center}.brand img{display:block;width:440px;height:107px;object-fit:contain;object-position:left center;filter:drop-shadow(0 3px 8px #000c)}.brand p{margin:0 0 0 8px;color:#ebeff8;white-space:nowrap;font-family:'KaiTi','DFKai-SB','STKaiti',serif;font-weight:700;font-size:22px;letter-spacing:2px;text-shadow:0 2px 4px #000,0 0 13px #8bb2e26b}.header-right{align-self:flex-start;padding-top:12px;display:flex;flex-direction:column;align-items:flex-end;gap:12px}.header-right select{background:#0c192ce0;border-color:#627c99}.header-right span{font-size:10px;color:#c1cfe1;background:#091323b0;padding:5px 8px;border-radius:3px}
main{max-width:1840px;margin:auto;padding:0 26px 24px}nav{height:55px;display:flex;gap:8px;border-bottom:1px solid var(--line)}nav button{display:flex;align-items:center;gap:12px;border:0;background:none;border-radius:0;border-bottom:2px solid transparent;padding:0 16px;color:#9bafc8;white-space:nowrap}nav button b{padding:2px 6px;border-radius:4px;background:#1d3046;color:#bacbdf;font-size:11px;font-weight:500}nav button.active{border-bottom-color:#b4dcff;color:#eff8ff;background:linear-gradient(0deg,#3e698132,transparent)}nav button.active b{color:#e2f3ff;background:#3b5a75}nav button:last-child{margin-left:auto}
.totals{display:flex;align-items:center;gap:10px;margin:16px 0 5px}.summary-label{font-size:12px;color:#9eb4cd;margin-right:7px;letter-spacing:2px}.total{display:flex;align-items:center;gap:10px;padding:6px 12px;min-width:76px;background:#142235b3;border:1px solid var(--line);border-radius:5px;position:relative;height:44px}.total b{font-size:21px;font-weight:500}.total small{font-size:11px;color:#839bb6}.total .tooltip{display:none;position:absolute;z-index:10;left:0;top:100%;width:280px;padding:14px;background:#21364f;border:1px solid #59728f;box-shadow:0 8px 24px #0009;font-size:12px;line-height:1.8}.total:hover .tooltip,.total:focus .tooltip{display:block}.overall{border-color:#56728e;margin-left:8px}.overall span,.mount-total span{color:#a4bbd3;font-size:12px}.disarray{margin-left:auto;display:flex;gap:12px;align-items:center;height:44px;background:#172b3f}.disarray span{color:#adbed4;font-size:12px}.disarray b{font-size:23px;font-weight:500;color:#a9dbfd}.disarray small{font-size:10px;color:#8fa4bf}.disarray.warning b{color:#f2bc84}#duplicateNotice{font-size:11px;color:#e6b981;min-height:0;margin-top:5px}#duplicateNotice:empty{display:none}
.toolbar{display:flex;align-items:center;justify-content:space-between;margin:15px 0 12px}.toolbar h2{margin:0;font-weight:500;font-size:21px;letter-spacing:2px}.toolbar p{margin:5px 0 0;color:#728ba8;font-size:11px}.toolbar-actions{display:flex;align-items:center;gap:18px}.toolbar-actions>span{color:#aabfd7;font-size:13px}.toolbar-actions button{font-size:12px;padding:8px 13px}
.roster{display:grid;grid-template-columns:1fr 1fr;gap:22px}.table{border:1px solid #344962;border-radius:6px;overflow:hidden;background:#101c2bcb;box-shadow:0 8px 30px #0002}.row{display:grid;grid-template-columns:32px 40px minmax(110px,.65fr) minmax(120px,1fr) minmax(160px,1.55fr);align-items:center;gap:10px;padding:0 13px;height:49px;border-bottom:1px solid #283b50}.row:last-child{border-bottom:0}.row:nth-child(odd){background:#1a2a3d55}.row.head{height:34px;background:#1e3148;color:#9db3cc;font-size:11px}.number{font-family:Georgia,serif;font-size:16px;color:#90a8c3}.row input{width:100%;min-width:0;background:transparent;border:1px solid transparent;padding:8px 5px;font-size:13px}.row input:hover,.row input:focus{background:#0c192a;border-color:#405c7b}.row input::placeholder{color:#526d8b}.role{width:29px;height:29px;display:inline-grid;place-items:center;background:color-mix(in srgb,currentColor 9%,transparent);border-radius:3px}.role svg{width:24px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.caller{color:#f4c44f}.off{color:#d4e0ed}.tank{color:#55aff9}.heal{color:#65d591}.dps{color:#f1f4f9}.support{color:#f0c755}.role-button{padding:0;border:0;background:none;width:30px}.role-button:disabled:hover{background:none}.weapon-button{display:flex;align-items:center;gap:6px;padding:0;width:100%;min-width:0;border:0;background:none;text-align:left}.weapon-button.fixed:hover{background:none}.weapon-button img{height:43px;width:43px;object-fit:contain;flex-shrink:0}.weapon-button span:not(.weapon-placeholder){line-height:1.25;font-size:11px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.weapon-button em{font-style:normal;margin-left:auto;color:#7893b2}.weapon-placeholder{width:34px;height:34px;display:grid;place-items:center;border:1px dashed #3c526e;color:#59718e;flex-shrink:0}
dialog{background:#0f1d2f;color:var(--text);border:1px solid #57718f;border-radius:9px;padding:23px;width:1020px;max-width:95vw;max-height:90vh;box-shadow:0 30px 90px #000b}dialog::backdrop{background:#030a13c2;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.dialog-heading h2{margin:0;font-size:21px;font-weight:500}.dialog-heading button{font-size:23px;padding:2px 11px}.picker-controls{display:flex;align-items:center;gap:12px}.picker-controls label{color:#a0b6ce;font-size:12px}.picker-controls input{flex:1;min-width:80px;padding:10px}.hint{color:#89a1bf;font-size:12px;margin:12px 0}.categories{display:grid;grid-template-columns:repeat(9,1fr);gap:7px;padding-bottom:14px;border-bottom:1px solid #30465e}.category-option{display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 2px;font-size:11px;background:#14263b;min-width:0}.category-option img{width:40px;height:40px;object-fit:contain}.category-option.selected{border-color:#a7d4f9;background:#294761;box-shadow:inset 0 -2px #9bd6ff}.weapons{display:grid;grid-template-columns:repeat(8,1fr);gap:9px;padding:14px 0 8px;max-height:34vh;overflow:auto}.weapon-tile{position:relative;display:grid;place-items:center;padding:3px;min-height:85px;background:#182940;border:1px solid #344b65}.weapon-tile img{width:77px;height:77px;object-fit:contain}.tile-caption{display:none;position:absolute;bottom:0;left:0;right:0;background:#0a1528ed;padding:5px;font-size:10px;line-height:1.25}.weapon-tile:hover .tile-caption,.weapon-tile:focus .tile-caption{display:block}.choose-category{grid-column:1/-1;padding:26px;text-align:center;color:#7d96b4}.clear-weapon{font-size:12px;margin-top:7px;background:transparent;color:#9db1ca}.setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.setting-card{padding:22px;background:#142438;border:1px solid #354e6b;border-radius:6px}.setting-card.missing{border-left:3px solid #ec7885}.setting-card h3{display:flex;justify-content:space-between;margin:0 0 18px}.setting-card h3 span{color:#95badc;font-weight:400}.setting-card.missing h3 span{color:#ec7885}.setting-card label{display:block;margin:12px 0 7px;color:#96aecb;font-size:12px}.setting-card select{width:100%}.setting-card input{width:80px}.settings-note{color:#92aac7;font-size:13px}.admin-notice{padding:12px 15px;border:1px solid #79643c;background:#44382055;color:#dfc58e;font-size:12px;line-height:1.7}#adminSlots{display:grid;grid-template-columns:1fr 1fr;gap:7px;max-height:55vh;overflow:auto;margin-bottom:15px}.admin-slot{display:flex;align-items:center;gap:8px;padding:6px;background:#1b2d43;border:1px solid #334b65}.admin-slot b{font-size:12px;color:#8eabc9}.admin-slot select{width:88px;font-size:12px}.admin-slot button{min-width:0;flex:1;display:flex;align-items:center;text-align:left;gap:5px;font-size:11px;padding:3px}.admin-slot img{width:35px;height:35px;object-fit:contain}#disarrayDialog{width:760px}#disarrayContent p{font-size:13px;color:#9db2cc;line-height:1.8}#disarrayContent label{margin-right:15px}#enemyLevel{width:80px}.formula{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#182c43;padding:22px;border-radius:6px}.formula>div{text-align:center;font-size:13px;color:#a6c1dd}.formula b{display:block;font-size:43px;font-weight:400;color:#dbefff;margin:8px 0}.formula small{font-size:11px;color:#8aa3c0}details{font-size:12px;color:#9ab1cc;line-height:1.8}summary{cursor:pointer}#penalty{padding:10px;background:#25384a;border-radius:4px}
@media(min-width:1600px){.row{height:51px}.row.head{height:34px}}
@media(max-width:1150px){nav{gap:0}nav button{padding:0 10px;gap:6px}.row{gap:5px;padding:0 8px;grid-template-columns:24px 30px minmax(88px,.7fr) minmax(88px,1fr) minmax(100px,1.2fr)}.totals{gap:6px}.total{padding:6px 8px;min-width:60px}.summary-label{display:none}.categories{grid-template-columns:repeat(6,1fr)}}
@media(max-width:900px){header{height:150px;padding:8px 18px}.brand img{width:330px;height:95px}.brand p{font-size:16px;letter-spacing:0}.header-right span{max-width:170px;text-align:right;font-size:9px}main{padding:0 12px 20px}nav{overflow-x:auto}nav button:last-child{margin-left:0}.totals{flex-wrap:wrap}.disarray{margin-left:0}.overall{margin-left:0}.roster{grid-template-columns:1fr}.row{height:49px;grid-template-columns:25px 32px minmax(100px,.7fr) minmax(95px,1fr) minmax(115px,1.3fr)}.toolbar{gap:12px}.toolbar h2{font-size:19px}.toolbar-actions{gap:8px}.toolbar-actions button{font-size:11px}.setting-grid{grid-template-columns:1fr}.categories{grid-template-columns:repeat(4,1fr)}.weapons{grid-template-columns:repeat(4,1fr)}.weapon-tile img{width:65px;height:65px}#adminSlots{grid-template-columns:1fr}.formula{padding:13px;gap:8px}.formula small{font-size:9px}.formula b{font-size:32px}}
@media(max-width:560px){header{height:175px;position:relative;align-items:flex-end}.brand img{height:95px;width:310px}.brand p{font-size:15px}.header-right{position:absolute;right:12px;top:0;padding-top:7px}.header-right span{display:none}.header-right select{font-size:11px;padding:4px}.totals{gap:5px}.total{gap:6px;height:39px}.total b{font-size:18px}.mount-total,.overall{font-size:11px}.row{grid-template-columns:21px 27px 76px 90px minmax(80px,1fr);gap:3px;padding:0 5px}.weapon-button img{height:34px;width:34px}.weapon-button span:not(.weapon-placeholder){font-size:9px}.row input{font-size:11px;padding:6px 2px}.toolbar p{max-width:200px;font-size:10px}.picker-controls{flex-wrap:wrap}.picker-controls input{flex-basis:100%}.categories{gap:4px}.category-option{font-size:10px}.category-option img{width:32px;height:32px}.weapons{gap:5px}.weapon-tile{min-height:65px}.weapon-tile img{width:55px;height:55px}}

/* Keep the scope visible on mobile without increasing the roster's height on desktop. */
.totals .summary-label{display:block;white-space:nowrap;font-weight:800;letter-spacing:0;font-size:13px;color:#c7e9ff}
.totals .mount-total{margin-left:8px;border-left:2px solid #5d90b8}
@media(max-width:900px){.totals .mount-total{margin-left:0}.totals .summary-label{font-size:12px;margin-right:0}}

/* readability.css */
/* Local system fonts only: no web-font requests. */
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft JhengHei","PingFang TC","Microsoft YaHei",sans-serif;font-weight:600}
header{height:202px}
.brand{width:360px;max-width:100%}
.brand>img{width:100%;height:auto;object-fit:contain}
.slogan{width:100%;height:66px;position:relative;overflow:hidden}
.brand .slogan img{position:absolute;top:50%;transform:translateY(-50%);width:100%;height:auto;object-fit:contain}
.toolbar h2,.dialog-heading h2,.total b,.disarray b,nav button b{font-weight:750}
.total .tooltip{font-size:14px}
.disarray{margin-left:0;border-color:#779ab8;background:#243e56}
.disarray span,.overall span,.mount-total span{font-size:14px;font-weight:700}
.disarray small{font-size:12px}
.overall{margin-left:0}
.row{height:55px}
.row.head{height:34px;font-size:13px}
.row input{font-size:15px}
.weapon-button span:not(.weapon-placeholder){font-size:16px}
.weapon-button img{width:48px;height:48px}
.toolbar-actions button{font-size:14px;min-height:40px}
dialog{width:1200px}
.dialog-heading h2{font-size:24px}
.picker-controls,.picker-controls label{font-size:17px}
.hint{font-size:14px}
.categories{grid-template-columns:repeat(9,minmax(0,1fr))}
.category-option{font-size:16px;padding:7px 3px;min-height:94px}
.category-option img{width:60px;height:60px}
.weapons{grid-template-columns:repeat(6,minmax(0,1fr));max-height:36vh}
.weapon-tile{min-height:128px}
.weapon-tile img{width:116px;height:116px}
.tile-caption{font-size:15px}
.clear-weapon{font-size:16px;min-height:44px}
#adminSlots{gap:14px;max-height:60vh}
.admin-column{display:flex;flex-direction:column;gap:7px;min-width:0}
.admin-slot{min-height:58px}
.admin-slot b{font-size:15px;min-width:24px}
.admin-slot select{font-size:15px;width:110px;min-height:44px}
.admin-slot button{font-size:16px;min-height:44px}
.admin-slot img{width:48px;height:48px}
@media(max-width:1150px){
 .categories{grid-template-columns:repeat(6,minmax(0,1fr))}
 .totals{flex-wrap:wrap}
 .total{gap:7px}
 .row{grid-template-columns:24px 30px minmax(115px,.9fr) minmax(85px,1fr) minmax(100px,1.2fr)}
 .weapon-button span:not(.weapon-placeholder){font-size:14px}
}
@media(max-width:900px){
 .roster{grid-template-columns:1fr}
 #adminSlots{grid-template-columns:1fr}
 .categories{grid-template-columns:repeat(4,minmax(0,1fr))}
 .weapons{grid-template-columns:repeat(4,minmax(0,1fr))}
 .brand{width:330px}
 header{height:194px}
 .row{grid-template-columns:26px 34px minmax(130px,.8fr) minmax(100px,1fr) minmax(120px,1.3fr)}
}
@media(max-width:560px){
 header{height:244px;padding:48px 16px 12px;justify-content:center;align-items:center}
 .brand{width:min(360px,100%)}
 .brand>img{width:100%;height:auto}
 .header-right{right:12px;top:5px}
 .header-right select{min-height:36px;font-size:16px;padding:5px 9px}
 main{padding:0 10px 24px}
 nav{height:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:10px 0;overflow:visible}
 nav button{min-height:44px;padding:5px;gap:5px;justify-content:center;font-size:13px}
 nav button b{font-size:11px;padding:2px 4px}
 nav button:last-child{grid-column:1/-1;min-height:36px;border:1px solid #354f6c;border-radius:5px}
 .totals{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px;margin-top:10px}
 .summary-label{display:none}
 .total{grid-column:span 3;min-width:0;justify-content:center;padding:6px 3px;height:44px}
 .total b{font-size:21px}
 .mount-total,.overall,.disarray{grid-column:span 4;height:68px;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:3px 5px;padding:5px}
 .mount-total span,.overall span,.disarray span{width:100%;text-align:center;font-size:13px}
 .overall small,.disarray small{font-size:10px}
 .total .tooltip{position:fixed;top:auto;bottom:16px;left:12px;width:calc(100vw - 24px)}
 .toolbar{margin:14px 0 10px;gap:6px}
 .toolbar h2{font-size:19px;letter-spacing:0}
 .toolbar-actions{gap:7px}
 .toolbar-actions button{font-size:12px;padding:8px;min-height:44px}
 .roster{gap:14px}
 .row{height:auto;min-height:102px;grid-template-columns:25px 34px minmax(112px,1fr) minmax(90px,1fr);grid-template-rows:53px 39px;gap:3px 5px;padding:5px 8px}
 .row.head{min-height:33px;height:33px;grid-template-rows:1fr;font-size:12px;padding:5px 8px}
 .row.head>span:last-child{display:none}
 .row input{font-size:16px;min-height:39px;padding:6px}
 .row input[data-field="note"]{grid-column:3/-1;border-color:#2a4058;background:#0c192a66}
 .weapon-button img{width:44px;height:44px}
 .weapon-button span:not(.weapon-placeholder){font-size:14px}
 .role-button{min-height:44px}
 .number{font-size:16px}
 dialog{width:calc(100vw - 16px);max-width:none;max-height:94dvh;padding:14px;border-radius:12px}
 .dialog-heading h2{font-size:21px}
 .dialog-heading button{min-width:44px;min-height:44px}
 .picker-controls{gap:8px;flex-wrap:wrap}
 .picker-controls input{flex-basis:100%;min-height:46px;font-size:16px}
 .picker-controls select{font-size:16px;min-height:44px}
 .categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:32dvh;overflow-y:auto}
 .category-option{font-size:15px;min-height:86px}
 .category-option img{width:54px;height:54px}
 .weapons{grid-template-columns:repeat(3,minmax(0,1fr));max-height:30dvh;gap:6px}
 .weapon-tile{min-height:104px}
 .weapon-tile img{width:90px;height:90px;max-width:100%;object-fit:contain}
 .tile-caption{font-size:14px}
 .admin-slot{gap:5px;padding:5px}
 .admin-slot select{width:91px;font-size:16px;padding:5px}
 .admin-slot button{font-size:15px;overflow-wrap:anywhere}
 .admin-slot img{width:40px;height:40px}
 .setting-card{padding:15px}
 .setting-card select,.setting-card input{font-size:16px;max-width:100%}
 .formula{gap:5px;padding:10px}
 .formula>div{font-size:12px;min-width:0}
}

/* operations.css */
/* Compact formation view; taller reports scroll independently as ordinary pages. */
header{height:124px;padding:6px 3%;gap:24px}
.brand{width:300px;flex-shrink:0}
.brand>img{max-height:112px;width:100%;object-fit:contain}
header>.slogan{width:min(650px,43vw);height:112px;flex-shrink:1;overflow:hidden}
header>.slogan img{position:absolute;top:50%;transform:translateY(-50%);width:100%;height:auto;display:block;filter:drop-shadow(0 3px 9px #030a16)}
.header-right{min-width:170px;gap:8px;padding-top:8px}
.header-right span{font-size:11px}
nav{height:48px;gap:3px}
nav button{padding:0 13px}
nav button:last-child{margin-left:0}
.totals{margin-top:10px;gap:8px}
.toolbar{margin:10px 0 8px}
.toolbar h2{font-size:20px}
.admin-actions{display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.admin-actions>div{display:flex;gap:7px}
.admin-actions button{font-size:12px;min-height:30px;padding:5px 10px}
.toolbar-actions{gap:12px;min-height:30px}
.row{height:clamp(39px,calc((100dvh - 340px)/10),55px)}
.row.head{height:30px}
.weapon-button img{height:40px;width:40px}
.row input{padding:6px 5px}
main{padding-bottom:10px}
.danger{border-color:#a84c60;background:#472333;color:#ffe0e7}
#toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);max-width:min(640px,94vw);background:#203f51;border:1px solid #76c5b1;padding:14px 20px;border-radius:8px;box-shadow:0 8px 30px #0009;z-index:100}
#toast.error{background:#462739;border-color:#db8d99}
#snapshotDialog,#clearDialog{width:700px}
#snapshotDialog p,#clearDialog p{color:#aec3da;line-height:1.7}
#snapshotError{color:#f5a6ab!important}
.snapshot-fields{display:flex;flex-wrap:wrap;gap:14px}
.snapshot-fields label{display:flex;flex-direction:column;gap:7px}
.snapshot-fields input,.snapshot-fields select{min-height:44px}
.attendance-filters{display:flex;align-items:end;flex-wrap:wrap;gap:15px;padding:18px;background:#15263a;border:1px solid #38516c;border-radius:8px}
.attendance-filters label{display:grid;gap:7px;font-size:12px;color:#aec6de}
.attendance-filters input{font-size:16px}
.source-switch{display:flex;gap:5px;margin-right:auto}
.source-switch button{min-height:42px}
.source-switch .selected{background:#365d79;border-color:#aad7fa}
.attendance-summary{display:flex;align-items:center;gap:25px;padding:20px 0 7px;flex-wrap:wrap}
.attendance-summary strong{font-size:23px;color:#d4ecff}
.attendance-summary span{color:#9db8d2;font-size:14px}
.attendance-note{color:#8ea8c2;font-size:13px;line-height:1.7}
.leaderboards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:20px 0}
.leaderboard{border:1px solid #36506b;border-radius:8px;background:linear-gradient(155deg,#1a3047,#101e30);padding:16px;min-width:0;align-self:start}
.board-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;gap:8px}
.board-heading h3{font-size:17px;margin:0}
.board-heading h3 small{font-size:11px;color:#91bce1;margin-left:7px}
.board-heading button{font-size:11px;padding:6px 8px}
.rank-row{width:100%;display:flex;gap:10px;align-items:center;border:0;border-bottom:1px solid #30445a;border-radius:0;background:transparent;padding:11px 3px;text-align:left;font-size:14px}
.rank-row strong{overflow:hidden;text-overflow:ellipsis;flex:1}
.rank-row b{font-size:13px;white-space:nowrap;color:#b6ddfa}
.rank-row small{color:#90acbe;width:35px;text-align:right}
.rank-number{font-family:Georgia,serif;color:#7d9dbb;width:23px}
.rank-row:nth-child(2) .rank-number{color:#f5cc72}
.rank-row:nth-child(3) .rank-number{color:#d4e3f3}
.rank-row:nth-child(4) .rank-number{color:#d3a77d}
.empty-state{padding:30px 0;text-align:center;font-size:13px;color:#7892ad}
.api-tools,.session-list{border:1px solid #334b65;padding:13px;border-radius:6px}
.api-tools>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.api-tools button,.api-tools input{font-size:13px}
.session-list>div{display:flex;align-items:center;flex-wrap:wrap;gap:15px;padding:13px 0;border-bottom:1px solid #2e435b}
.session-list small{width:100%}
.history-row{display:grid;grid-template-columns:190px 70px 1fr;gap:14px;padding:16px 5px;border-bottom:1px solid #33495f}
.history-row small{grid-column:1/-1;color:#8ca8c3}
@media(min-width:901px) and (max-height:800px){
 header{height:98px}.brand{width:250px}.brand>img{max-height:90px}header>.slogan{height:90px;width:min(570px,44vw)}
 nav{height:42px}.totals{margin-top:7px}.toolbar{margin:6px 0}.row{height:39px}.row.head{height:27px}
 .weapon-button img{width:35px;height:35px}.row input{font-size:14px}.weapon-button span:not(.weapon-placeholder){font-size:14px}
}
@media(max-width:1150px){nav button{font-size:12px;padding:0 8px;gap:5px}.header-right{min-width:140px}.brand{width:240px}.leaderboards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
 header{height:130px;gap:15px}.brand{width:210px}header>.slogan{width:min(410px,43vw);height:85px}.header-right{min-width:100px}.header-right span{max-width:120px}
 .row{height:55px}.row.head{height:32px}
 nav{overflow-x:auto;flex-wrap:nowrap}
}
@media(max-width:560px){
 header{height:220px;display:flex;flex-direction:column;justify-content:end;align-items:center;padding:40px 12px 8px;gap:0}
 .brand{width:245px}.brand>img{max-height:92px}
 header>.slogan{width:100%;max-width:430px;height:72px;flex-shrink:0}
 .header-right{position:absolute;right:10px;top:3px;min-width:0;padding:0}
 nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));height:auto;overflow:visible;padding:7px 0;gap:3px}
 nav button{font-size:12px;padding:5px 3px;min-height:40px}
 nav button:last-child{grid-column:auto}
 nav button:nth-last-child(2){grid-column:span 2}
 .toolbar h2{font-size:18px}
 .toolbar-actions{gap:6px}
 .admin-actions button{font-size:11px;padding:5px 7px;min-height:36px}
 .row{height:auto;min-height:102px}
 .row.head{height:33px;min-height:33px}
 .row input{font-size:16px}
 .weapon-button img{height:44px;width:44px}
 .totals{gap:5px}
 .attendance-filters{padding:12px;gap:10px}
 .source-switch{width:100%}.source-switch button{flex:1}
 .attendance-filters label{width:calc(50% - 5px)}.attendance-filters input{width:100%;min-width:0;min-height:44px}
 .attendance-summary{gap:12px}.attendance-summary strong{font-size:20px}
 .leaderboards{grid-template-columns:1fr;gap:12px}
 .rank-row{min-height:48px}
 .board-heading button{min-height:40px}
 .snapshot-fields{display:grid;grid-template-columns:1fr 1fr}
 .snapshot-fields input,.snapshot-fields select{width:100%;min-width:0;font-size:16px}
 .api-tools input{width:100%;font-size:16px}
 .history-row{grid-template-columns:1fr 70px}.history-row>span:nth-child(3){grid-column:1/-1}
}
/* Shared roster member refresh stays available across all six squads. */
.toolbar .members-refresh-button{font-size:13px;min-height:36px;padding:7px 12px;border:1px solid #668ba1;border-radius:7px;color:#cae4f1;background:#193344;white-space:nowrap}
.toolbar .members-refresh-button:disabled{opacity:.6;cursor:wait}
@media(max-width:800px){.team-title{flex-wrap:wrap}.toolbar .members-refresh-button{font-size:12px;min-height:34px}}

/* Manual form refresh: compact beside the team count, with touch-sized target. */
.roster-refresh-button{min-height:40px;padding:8px 14px;border:1px solid #bd9357;border-radius:8px;background:#382a20;color:#ffdda4;font-weight:700;white-space:nowrap;cursor:pointer}
.roster-refresh-button:hover:not(:disabled){background:#513a27;border-color:#f1c785}
.roster-refresh-button:focus-visible{outline:2px solid #ffe0a5;outline-offset:3px}
.roster-refresh-button:disabled{opacity:.55;cursor:default}
@media(max-width:600px){.toolbar-actions{flex-wrap:wrap;gap:8px}.roster-refresh-button{min-height:44px;padding:8px 12px}}

/* reports.css */
.team-title{display:flex;flex-direction:row;align-items:center;gap:16px}
.team-title>button{min-height:30px;font-size:12px;padding:5px 12px}
.team-title>button:disabled{background:#192432;color:#687c92;border-color:#29394c;opacity:.8}
.admin-actions{flex-direction:row}
.toolbar{min-height:64px}
.attendance-filters{padding:16px 20px;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(110deg,#162b41,#102034)}
.source-switch{margin:0;background:#0a1728;border:1px solid #304762;padding:5px;border-radius:10px;gap:5px}
.source-switch button{min-height:44px;border:0;background:transparent;border-radius:7px;padding:10px 24px;color:#8ca5be;font-size:15px}
.source-switch button.selected{background:#315574;color:#f0f9ff;box-shadow:inset 0 1px #80a7c950,0 3px 8px #0003}
.date-controls{display:flex;gap:10px;align-items:center}
.date-controls>span{align-self:flex-end;margin-bottom:12px;color:#6984a0}
.date-controls>button{align-self:flex-end;min-height:41px}
.date-controls label{font-size:11px}
.featured-board{grid-column:span 2}
.podium{display:flex;align-items:flex-end;justify-content:center;gap:12px;padding:18px 15px 0;min-height:235px}
.podium-place{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:9px;width:30%;max-width:210px;border:0;background:transparent!important;min-width:0;padding:0;color:#d1dae7}
.podium-place strong{font-size:17px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.podium-place small{font-size:12px;color:#9cb2c8}
.podium-medal{display:grid;place-items:center;font-family:Georgia,serif;font-size:28px;width:57px;height:57px;border:1px solid currentColor;border-radius:50%;background:#ffffff09;box-shadow:0 0 25px #a8c9e010}
.place-1{color:#edcd7a}.place-2{color:#c5d5e5}.place-3{color:#c99471}
.place-1 .podium-medal{width:68px;height:68px;font-size:42px;box-shadow:0 0 35px #dfb95720}
.podium-step{display:grid;place-items:center;font:700 35px Georgia,serif;width:100%;height:56px;border:1px solid #afcce742;border-radius:7px 7px 0 0;background:linear-gradient(#a3bfd922,#24384b44)}
.place-1 .podium-step{height:90px;background:linear-gradient(#b28d4040,#24384b44);border-color:#c5a15466}
.place-3 .podium-step{height:43px;background:linear-gradient(#a06a4140,#24384b44);border-color:#bb8f6166}
.podium-runners{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;padding-top:14px}
#rankingDialog{width:680px;max-height:90dvh}
#rankSearch{width:100%;font-size:16px;margin-bottom:8px;min-height:44px}
#rankResults{min-height:100px;max-height:58dvh;overflow:auto}
.pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin:18px 0 4px;font-size:13px;color:#9bb4ce}
.pagination button{min-height:38px}
.pagination button:disabled{opacity:.35}
.report-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:16px;border:1px solid #354b64;background:#14263a;border-radius:8px}
.report-controls label{display:grid;gap:7px;font-size:11px;color:#9eb8d2}
.report-controls input{font-size:15px;min-height:42px}
.report-controls button{min-height:42px}
#reportSearch{margin-left:auto;min-width:220px}
.report-selection{display:flex;align-items:center;justify-content:space-between;margin:16px 0;gap:12px}
.report-selection small,.report-footnote{color:#849fb9;font-size:12px}
.report-selection>div{display:flex;align-items:center;gap:12px;font-size:13px}
.report-table-wrap{overflow-x:auto;border:1px solid #33485f;border-radius:8px;background:#111f31}
.report-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}
.report-table th{padding:14px;background:#192c41;font-size:12px;color:#96b0ca;white-space:nowrap}
.report-table td{padding:12px 14px;border-top:1px solid #293e54}
.report-table tr:nth-child(even){background:#16283c55}
.report-table input[type=checkbox]{width:18px;height:18px;accent-color:#75c9fb}
.report-table button{white-space:nowrap;font-size:12px}
.report-table .guild-list{max-width:460px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.blue-number{color:#68baff}.red-number{color:#f67d88}.gold-number{color:#efd07d}
.report-detail-heading{display:flex;align-items:center;gap:20px;margin-bottom:18px}
.report-detail-heading h3{margin:0;font-size:21px}.report-detail-heading>button:last-child{margin-left:auto}
.battle-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-bottom:18px}
.battle-metrics>div{border:1px solid #38536e;border-radius:8px;padding:16px 20px;background:linear-gradient(130deg,#203a53,#14243a)}
.battle-metrics span{display:block;color:#8faeca;font-size:12px}.battle-metrics b{display:block;font-size:28px;margin-top:7px}
.battle-tabs{display:flex;align-items:center;gap:8px;margin-bottom:15px;flex-wrap:wrap}
.battle-tabs button{min-width:70px}.battle-tabs .selected{border-color:#94c8f1;background:#2b4f6c}
.battle-tabs input[type=search]{margin-left:auto;min-width:260px}
.battle-tabs label{font-size:13px;color:#a6bed6;display:flex;align-items:center;gap:7px}
.battle-weapons{min-width:110px;max-width:250px}
.battle-weapons img{width:40px;height:40px;object-fit:contain;vertical-align:middle}
.missing-data{color:#657e99}
.report-footnote{display:block;margin:15px 0}
@media(max-width:1100px){
 .attendance-filters{justify-content:center}.date-controls{margin-left:auto}
 .leaderboards{grid-template-columns:1fr 1fr}.featured-board{grid-column:span 2}
 nav button{padding:0 7px;font-size:12px}
}
@media(max-width:560px){
 .toolbar{min-height:80px}.team-title>button{min-height:36px}.admin-actions>div{flex-direction:column;gap:4px}
 nav button:nth-last-child(2),nav button:last-child{grid-column:auto}
 .attendance-filters{padding:12px;gap:13px}
 .source-switch{width:100%;display:grid;grid-template-columns:1fr 1fr}
 .source-switch button{padding:10px}
 .date-controls{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:9px}
 .date-controls label{width:auto;min-width:0}.date-controls>span{display:none}.date-controls>button{grid-column:span 2}
 .leaderboards{grid-template-columns:1fr}.featured-board{grid-column:auto}
 .podium{gap:7px;padding:14px 0 0;min-height:220px}
 .podium-place{width:33%}.podium-place strong{font-size:13px}.podium-place small{font-size:10px}
 .podium-medal{width:43px;height:43px;font-size:23px}.place-1 .podium-medal{width:53px;height:53px;font-size:32px}
 .podium-runners{grid-template-columns:1fr}.rank-row{min-height:45px}
 .report-controls{padding:12px;gap:9px}.report-controls label{width:calc(50% - 5px)}.report-controls label input{width:100%;min-width:0}
 #reportSearch{order:3;width:100%;min-width:0}.report-controls input{font-size:16px}
 .report-selection{flex-direction:column;align-items:flex-start}.report-selection>div{width:100%;justify-content:space-between;gap:5px}
 .report-table{min-width:690px}.report-table td{padding:9px}.report-table th{padding:11px 9px}
 .report-detail-heading{gap:9px;flex-wrap:wrap}.report-detail-heading h3{font-size:16px}
 .battle-metrics{grid-template-columns:1fr 1fr;gap:9px}.battle-metrics>div{padding:12px 15px}.battle-metrics b{font-size:24px}
 .battle-tabs input[type=search]{order:4;width:100%;min-width:0;font-size:16px}
 .battle-tabs label{margin-left:auto}
}

.report-sync-status{margin:8px 0;padding:10px 14px;border-left:3px solid #77caff;background:#152a3d;color:#c3e5ff;font-size:13px;line-height:1.6}

/* Keep participation observations visible when new death counts arrive. */
.report-weapon-evidence{display:flex;flex-wrap:wrap;gap:10px 15px;align-items:flex-start}.report-weapon-evidence>div{min-width:0}.weapon-evidence-label{display:block;font-size:10px;color:#9dafbc;margin:0 0 4px;white-space:nowrap}.observed-weapon-group{padding-right:12px;border-right:1px solid #8c79613b}.observed-weapon-group>div{display:flex;gap:4px;flex-wrap:wrap}.report-weapon-evidence .death-weapon-list{justify-content:flex-start!important}.report-weapon-evidence .unknown-weapon{font-size:17px;color:#c3a985}
@media(max-width:700px){.report-weapon-evidence{gap:8px}.report-weapon-evidence .weapon-evidence-label{font-size:9px}.observed-weapon-group{padding-right:8px}}

/* regear-tools.css */
.regear-favorite{font-size:24px!important;line-height:1;padding:5px 9px!important;background:transparent;color:#a4b4c7;border:1px solid #52657b;border-radius:7px;cursor:pointer}.regear-favorite.selected{color:#ffd36e;border-color:#c59f50;background:#483b20}.favorite-filter.selected{color:#ffd36e!important;border-color:#d4aa57!important;background:#483b20!important}.regear-question{margin:10px 0;padding:12px;border:1px solid #bd8c50;border-radius:8px;background:#3d3024}.regear-question.question-resolved{border-color:#427d69;background:#19382d}.regear-question p{display:grid;gap:5px;border-top:1px solid #ffffff24;padding-top:8px}.regear-question span{white-space:pre-wrap;overflow-wrap:anywhere}.regear-question time{font-size:12px;color:#b8c4d1}.regear-question-button{display:inline-block;width:auto!important;margin:8px 8px 8px 0;padding:9px 13px!important;border:1px solid #e8b968!important;background:#513d23!important;color:#ffe1a4!important}.regear-question-dialog{width:min(94vw,560px);box-sizing:border-box;max-height:90dvh;overflow:auto;background:#172737;color:#e6eff9;border:1px solid #91a8bb;border-radius:12px;padding:20px}.regear-question-dialog textarea{width:100%;min-height:120px;box-sizing:border-box;font:inherit;padding:12px;background:#0e1b29;color:inherit}.regear-question-dialog button{padding:9px 15px;cursor:pointer}.question-error{color:#ffaaaa}

/* regear.css */
body>header{height:144px;background-image:linear-gradient(90deg,#050c18ed,#06101bcc 45%,#07101bc9 72%,#050c18e8)}
.toolbar{min-height:44px}.toolbar h2{font-size:26px}.team-title{flex-direction:row;align-items:center}
.nav-separator{color:#73869b;align-self:center;margin:0 3px}.formation-source{margin-left:auto;color:#c4b486;border:1px solid #6b6048;padding:5px 9px;border-radius:5px;font-size:12px}
.detail-filters{display:flex;gap:12px;margin-bottom:12px}.detail-filters input{flex:1}.detail-filters select{min-width:200px}
.guild-cell{max-width:210px;font-size:13px}.guild-cell small{display:block;color:#8a9cb2;margin-top:4px;font-size:11px}
.sort-button{border:0;background:transparent;padding:0;color:inherit}.sort-button:hover{color:#fff}
.battle-summaries{display:grid;grid-template-columns:1fr 1fr;gap:16px}.summary-panel{min-width:0;border:1px solid #344b63;border-radius:9px;overflow:hidden}.summary-panel h4{margin:0;padding:15px;background:#20354c}.summary-panel td:first-child{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.page-size{display:flex;align-items:center;gap:6px;white-space:nowrap}.page-size select{padding:5px 8px;min-height:36px}
.history-head{color:#9eb8d2;border-bottom:1px solid #3c536a}.history-row a,.death-card a{color:#9dd4ff;text-decoration:none}.history-row a:hover,.death-card a:hover{text-decoration:underline}
.regear-overview{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin:20px 0;color:#b7cce2}.regear-overview strong{color:#eef6ff}.regear-overview small{margin-left:auto;color:#9aabc0}
.death-card{background:linear-gradient(120deg,#192d42,#101e30);border:1px solid #344d66;border-radius:12px;margin:16px 0;overflow:hidden}.death-card.complete{border-color:#446e5f}
.death-card>header{height:auto;min-height:76px;padding:16px 22px;background:#182a3e;box-shadow:none;border-bottom:1px solid #30475e;display:flex;flex-direction:row;align-items:center;gap:22px;justify-content:space-between}.death-card header>div{display:flex;align-items:center;gap:18px}.death-card header strong{font-size:20px;color:#edf5ff}.death-card header span,.death-card header time,.death-card header a{font-size:12px}.death-card header span{color:#8eabc4}.death-card header b{font-size:12px;color:#d3b97e}.death-card.complete header b{color:#87cfa8}
.death-equipment{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));gap:12px;padding:20px}.regear-item{position:relative;display:flex;align-items:center;flex-direction:column;gap:6px;border:1px solid #45617c;border-radius:9px;background:radial-gradient(ellipse at center,#37516c66,#112033);padding:10px;min-width:0;cursor:pointer;color:#dceafd}.regear-item>span{font-size:12px;color:#a8c0d5}.regear-item img{width:100%;max-width:108px;aspect-ratio:1;object-fit:contain;transition:filter .2s}.regear-item>strong{font-size:23px;letter-spacing:1px;color:#eed398}.regear-item em{font-style:normal;font-size:12px;color:#c4d6e9}.regear-item.done{border-color:#538c72;background:#19392b44}.regear-item.done img{filter:grayscale(1);opacity:.45}.regear-item.done em{color:#98dfb5}.regear-item.done>strong{color:#a3b3b0}.regear-item.missing{cursor:default;border-style:dashed;opacity:.45;justify-content:center}.regear-item.missing b{font-size:35px}.regear-item.missing small{font-size:12px}
@media(min-width:901px) and (max-height:850px){body>header{height:110px}.toolbar h2{font-size:23px}}
@media(max-width:1100px){.death-equipment{grid-template-columns:repeat(4,1fr)}.death-card header>div{flex-wrap:wrap;gap:7px}.battle-summaries{gap:10px}.summary-panel td,.summary-panel th{padding:9px}}
@media(max-width:900px){body>header{height:145px}.toolbar h2{font-size:23px}.battle-summaries{grid-template-columns:1fr}.nav-separator{display:none}.death-card>header{align-items:flex-start;gap:12px}.death-card header>div{flex-direction:column;align-items:flex-start}.pagination{flex-wrap:wrap;gap:10px}.summary-panel .report-table{min-width:0}}
@media(max-width:560px){body>header{height:220px}.team-title{gap:9px}.toolbar h2{font-size:21px}.team-title>button{padding:5px 9px;min-height:30px}.detail-filters{flex-direction:column}.battle-metrics{grid-template-columns:repeat(2,1fr)}.battle-metrics>div:last-child{grid-column:span 2}.death-equipment{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:12px}.death-card>header{padding:12px;flex-wrap:wrap}.death-card header strong{font-size:18px}.death-card header b{margin-left:auto}.regear-item{padding:7px}.regear-item img{max-width:90px}.regear-overview{gap:10px;font-size:13px}.regear-overview small{margin-left:0;width:100%}.formation-source{margin-left:0}.page-size select{font-size:16px}}
.death-entry+.death-entry{border-top:2px solid #405771}.death-meta{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:15px 20px 0;color:#a8bdd2;font-size:12px}.death-meta b{color:#e0c690}.death-meta button{margin-left:auto;font-size:12px}.death-card>header{position:static}
.death-weapon-list{display:flex;flex-wrap:wrap;gap:7px}.death-weapon{display:flex;flex-direction:column;align-items:center}.death-weapon small{font-size:10px;color:#a7bdd3}.unknown-weapon{width:40px;height:40px;display:grid;place-items:center;background:#25364a;border:1px dashed #718398;color:#9aacc1;font-size:22px}
#detailRole{display:block;margin-top:6px;font-size:12px;padding:5px;max-width:110px}.report-table .battle-date-divider th{background:#314c67;color:#e1f1ff;border-top:3px solid #6a8ba8;font-size:15px;padding:11px 16px}.report-table tr.battle-day-0{background:#1a3144}.report-table tr.battle-day-1{background:#2d293d}.report-table tr.battle-selected{background:#315c6e;box-shadow:inset 4px 0 #a7e4ff}.report-table tr.battle-day-0:hover,.report-table tr.battle-day-1:hover{background:#344c62}
.custom-clock{display:flex;gap:8px;margin-top:7px}.custom-clock select{min-height:44px;font-size:16px}.key-weapon{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.key-weapon img{width:100px;height:100px;object-fit:contain}.key-weapon strong{font-size:27px;color:#9fe8b7}.missing .key-weapon strong{color:#f58c94}.setting-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.setting-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-filters{flex-wrap:wrap}.summary-panel{overflow-x:auto}.death-meta{gap:8px;padding:12px}}
@media(max-width:560px){.setting-grid{grid-template-columns:1fr}.custom-clock{flex-wrap:wrap}.death-meta button{margin-left:0}.report-controls>select{max-width:100%}.summary-panel .report-table{font-size:12px}}
.death-sets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:14px;padding:16px;align-items:start}.death-sets>.death-entry{border:1px solid #526b84;border-radius:9px;background:#102135;min-width:0;overflow:visible}.death-sets .death-meta{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:13px}.death-sets .death-meta>b{font-size:15px;color:#f0cf83}.death-sets .death-meta button{margin:0}.death-sets .death-equipment{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px;gap:8px}.missing-death{color:#e0b984;padding:0 13px;font-size:12px}.death-sets .regear-item.missing{min-height:150px}.ip-low{display:inline-block;background:#642d3b;color:#ffadb3;border:1px solid #b75a66;border-radius:5px;padding:4px 7px;font-weight:800}.select-day{float:right;display:inline-flex;align-items:center;gap:8px;padding:4px 9px;border:1px solid #7099b9;border-radius:5px;background:#20384c;font-size:13px;cursor:pointer}.select-day input{accent-color:#9ad7ff}.death-card{overflow:visible}
@media(max-width:560px){.death-sets{padding:9px;gap:10px;grid-template-columns:1fr}.select-day{float:none;margin-left:10px}}
#detailGuild,#detailAlliance{display:block;width:100%;min-width:130px;max-width:210px;margin-top:6px;padding:6px 8px;font-size:13px;color:#e5edf8;background:#102137;border:1px solid #6685a2}#detailGuild:focus,#detailAlliance:focus{border-color:#a9d8fc}

/* Withdrawal stays separate from the primary request action on touch screens. */
#regear .withdraw-request{display:inline-flex;align-items:center;justify-content:center;min-height:44px;width:auto;max-width:100%;padding:8px 16px;margin:8px 0;border:1px solid #a86f79;border-radius:9px;background:#382936;color:#ffc0c8;font-weight:700;cursor:pointer;touch-action:manipulation}
#regear .withdraw-request:not(:disabled):hover,#regear .withdraw-request:not(:disabled):focus-visible{background:#543342;border-color:#f37d87;outline:2px solid #f37d8744;outline-offset:2px}
#regear .withdraw-request:disabled{opacity:.55;cursor:not-allowed}
#regear .regear-review{display:flex;align-items:flex-start;gap:8px;margin:8px 0;padding:9px 10px;border:1px solid #b9875270;border-radius:8px;background:#b77a2417;color:#efd0a4;font-size:12px;line-height:1.45}
#regear .regear-review>strong{flex-shrink:0;padding:3px 6px;border-radius:5px;background:#c78a3530;color:#ffd199;font-size:13px}
#regear .regear-review>div{flex:1;min-width:0;display:grid;gap:5px}
#regear .review-reason{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px}#regear .review-reason>b{font-weight:700}#regear .review-reason>small{font-size:12px;color:#e7bfc1}#regear .review-window{font-size:11px;color:#b8b1ab;overflow-wrap:anywhere}
#regear .review-review,#regear .review-pending{border-color:#b75a66;background:#642d3b;color:#ffadb3}#regear .review-review>strong,#regear .review-pending>strong{background:#8b394c;color:#ffadb3}#regear .review-review .review-reason>small,#regear .review-pending .review-reason>small{color:#ffadb3}#regear .review-ok{border-color:#68b18b50;background:#69b2870b;color:#96c9ac}#regear .review-ok>strong{background:#5b9b7125;color:#9cd4b1}
#regear .regear-review>button{flex-shrink:0;min-height:36px;padding:5px 8px;font-size:12px;touch-action:manipulation}
@media(max-width:600px){#regear .regear-review{flex-wrap:wrap}#regear .regear-review>div{flex-basis:calc(100% - 70px)}#regear .regear-review>button{margin-left:auto;min-height:42px}}

.regear-history-status{padding:9px 12px;border-left:3px solid #7ca8c4;background:#18304380;color:#c4deeb;font-weight:700;font-size:12px}.regear-history-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 10px;margin-bottom:8px;background:#172c3b;border-bottom:1px solid #607c8d40}.regear-history-meta time{font-weight:800;font-size:13px;color:#c6e0ef}.regear-history-meta button{min-height:27px;padding:4px 8px;font-size:11px}.regear-history-meta .regear-tag{font-size:12px;padding:4px 7px}#regearDate:disabled{opacity:.5}

/* Closed day rows must stay compact even when the equipment grid has explicit display rules. */
.death-card:not([open]) > .death-sets{display:none}

.regear-search-field{position:relative;min-width:190px}.regear-search-field input{width:100%;box-sizing:border-box}.regear-search-results{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:60;max-height:280px;overflow:auto;padding:5px;border:1px solid #82b4d3;background:#142435;box-shadow:0 10px 28px #0009;border-radius:8px}.regear-search-results[hidden]{display:none}.regear-search-results button{display:block;width:100%;text-align:left;margin:0;border:0;border-radius:4px;background:transparent;color:#e2edf7;padding:11px 12px;font-size:16px;cursor:pointer}.regear-search-results button:hover,.regear-search-results button.selected{background:#31536d;color:#fff}.regear-search-results>.hint{display:block;padding:12px}@media(max-width:560px){.regear-search-field{width:100%;min-width:0}}

.my-regear-box{display:flex;align-items:center;gap:12px;padding:10px 16px;border:1px solid #78a6bf;border-radius:7px;background:#24455a;color:#d4e7f2}.my-regear-box strong{font-size:24px;color:#f0cd8d;white-space:nowrap}
.personal-controls .my-regear-box{margin-left:auto}.personal-controls .my-siphon-balance{margin-left:0}@media(max-width:560px){.personal-controls .my-regear-box{margin-left:0}}
.supply-box-filter{margin:12px 0 16px;padding:10px 14px;border:1px solid #536f83;border-radius:8px;background:#1a304355}.supply-box-filter summary{cursor:pointer;font-weight:700}.supply-box-filter summary b{color:#e9c581;margin-left:14px}.supply-box-choices{display:grid;grid-template-columns:repeat(8,minmax(42px,1fr));gap:8px;margin:14px 0}.supply-box-choices label{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #4e687e;padding:9px;border-radius:6px;cursor:pointer;color:#c4d6e4}.supply-box-choices label.selected{border-color:#9ed5f5;background:#315976;color:#fff}.supply-box-filter small{margin-left:14px;color:#9bb5c9}.supply-box-filter:not([open])>:not(summary){display:none}.box-map-mini{padding:4px 8px!important;min-height:30px!important;font-size:12px!important;color:#aacfe8;border-color:#597b95}.my-regear-box small{font-size:12px;color:#b0cfe1}.box-map-dialog{width:min(1680px,96vw);box-sizing:border-box;max-height:94dvh;overflow:auto}.box-map-actions{display:flex;align-items:center;gap:20px;margin:12px 0}.box-map-actions a{color:#a8d6f3}.box-map-scroll{overflow:auto;background:#081320;max-height:75dvh}.box-map-scroll img{display:block;width:100%;height:auto}.box-map-scroll.zoomed img{width:2054px;max-width:none}.box-map-dialog p{color:#b3c7d6;line-height:1.6}@media(max-width:600px){.supply-box-choices{grid-template-columns:repeat(4,minmax(42px,1fr))}.supply-box-filter small{display:block;margin:10px 0}.my-regear-box{flex-wrap:wrap}}

/* regear-evidence.css */
.proof-required{margin:12px 0;padding:16px;border:2px solid #f08b64;border-radius:10px;background:#5e202b;color:#ffe6d8;box-shadow:0 0 15px #ff614822}.proof-required>strong{display:block;font-size:20px;color:#fff0bf;line-height:1.5}.proof-required>b{display:block;font-size:19px;color:#ffd58c;margin-top:7px}.proof-required p{font-size:14px;line-height:1.6}.proof-required button,.appeal-button{background:#a54e29;color:#fff6da;border:1px solid #ffbd74;font-weight:800;padding:11px 18px;border-radius:7px;min-height:44px}.appeal-button{margin:12px 0;background:#534276;border-color:#b0a0e4}.appeal-state,.proof-records{padding:14px;margin:10px 0;border:1px solid #77709e;border-radius:9px;background:#27243b}.appeal-state>b{color:#d4c5ff}.appeal-state.appeal-rejected{border-color:#b26675;background:#452832}.appeal-state.appeal-accepted{border-color:#6caa85;background:#20392e}.proof-submission{padding:9px 0;border-bottom:1px solid #89796755;overflow-wrap:anywhere}.proof-submission time{font-size:12px;color:#aaa}.appeal-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.proof-error{color:#ffad9f;font-weight:800;min-height:24px}.owner-regear-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:15px;padding:14px;border:1px solid #cfaf69;border-radius:9px;background:#25231c}.owner-preview-notice{width:100%;margin:0;color:#f4c77a}#proofDialog{width:min(600px,calc(100vw - 30px));max-height:90dvh;overflow:auto}#proofDialog label{display:block}#proofDialog textarea{display:block;box-sizing:border-box;width:100%;margin:9px 0}#proofDialog .native-file-picker{display:inline-block;position:static;padding:10px}#proofDialog .native-file-picker input{position:static;width:100%;opacity:1;height:auto}#proofFileList>div{padding:8px;border-bottom:1px solid #7775;overflow-wrap:anywhere}#proofDialog progress{width:100%}
.trash-item{display:grid;place-content:center;min-height:72px;color:#a5a7ad;border:1px dashed #7b7d86;border-radius:8px;background:#222631;font-size:14px}
.proof-dialog-tip{color:#ffb5bc;font-weight:700}
.proof-attachments{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px}.proof-attachment{min-width:0;margin:8px 0;padding:8px;border:1px solid #766a8455;border-radius:8px;background:#111c29}.proof-attachment .proof-image-button{display:block;width:100%;padding:0;border:0;background:#080f17;cursor:zoom-in;overflow:hidden;border-radius:6px}.proof-attachment .proof-image-button img{display:block;width:100%;height:auto;max-height:240px;object-fit:contain}.proof-attachment .proof-image-button span{display:block;padding:6px;color:#aaccdf;font-size:12px}.proof-attachment video{display:block;width:100%;max-height:280px;background:#080f17;border-radius:6px}.proof-attachment>small{display:block;font-size:11px;color:#9bacbb;margin-top:5px}.proof-attachment figcaption{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;padding-top:7px;overflow-wrap:anywhere}.proof-attachment figcaption>span{flex:1;min-width:0}.proof-attachment figcaption a{color:#a7ccdd;white-space:nowrap}
#proofMediaDialog{box-sizing:border-box;width:min(1100px,calc(100vw - 24px));max-height:94dvh;overflow:auto}#proofMediaDialog>img{display:block;max-width:100%;max-height:76dvh;object-fit:contain;margin:auto}#proofReviewDialog{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:90dvh;overflow:auto}#proofReviewDialog label{display:block;color:#cfbfda;font-weight:700}#proofReviewDialog textarea{box-sizing:border-box;width:100%;display:block;margin-top:9px;min-height:120px;padding:12px;resize:vertical}#proofReviewDialog .appeal-actions button{min-height:44px;padding:10px 20px}#proofReviewDialog #proofReviewSubmit{background:#45513f;border-color:#abc297}
.regear-save-pending .regear-item:disabled,.regear-save-pending .regear-bulk:disabled{opacity:1;cursor:progress}.regear-save-pending .regear-item em{color:#f1d796}.regear-save-pending .death-equipment{outline:1px solid #d4b76855;outline-offset:3px;border-radius:7px}
.death-sets{align-items:stretch}.death-sets>.death-entry{display:flex;flex-direction:column}.death-sets .death-equipment{margin-top:auto}
#regear .review-compact,#regear .proof-required{box-sizing:border-box;min-height:72px;margin:8px 0;padding:9px 10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-width:1px;border-radius:8px;font-size:12px;line-height:1.45;box-shadow:none}
#regear .proof-required{background:#642d3b;border-color:#b75a66;color:#ffadb3}#regear .proof-required>div{flex:1;min-width:130px}#regear .proof-required strong{display:block;font-size:14px;line-height:1.45;color:#ffced0}#regear .proof-required small{display:block;font-size:12px;color:#ffd4b4}
#regear .proof-required button{padding:6px 9px;min-height:36px;font-size:12px}#regear .review-member-need{flex:1;min-width:130px;font-weight:700;color:#ffced0}#regear .review-member-need small{display:block;color:#d8b3b8;font-weight:400}
#regear .review-private{margin-left:auto;font-size:12px;max-width:100%}#regear .review-private summary{cursor:pointer;color:#aac0d2;text-decoration:underline;text-underline-offset:3px}#regear .review-private[open]{flex-basis:100%;margin-left:0}#regear .review-private>div{display:grid;gap:5px;padding-top:8px}

/* auth.css */
#accessButton{white-space:nowrap;font:inherit;font-weight:800;padding:5px 12px;border:1px solid #50667a;background:#142438;color:#e1eaf3;border-radius:5px;cursor:pointer}
body.signed-out main{visibility:hidden;pointer-events:none}
#accessDialog{box-sizing:border-box;width:min(440px,calc(100vw - 32px));padding:32px;color:#e7eef6;background:linear-gradient(145deg,#142a40,#0a1522);border:1px solid #577591;border-radius:14px;box-shadow:0 20px 100px #000a;font-family:system-ui,"Microsoft JhengHei",sans-serif;font-weight:700}
#accessDialog::backdrop{background:#050b16d9;backdrop-filter:blur(7px)}
#accessDialog h2{font-size:27px;margin:18px 0 7px}#accessDialog>p{color:#a9bfd3;margin:0 0 24px}
.access-brand{display:flex;align-items:center;gap:12px;color:#d6e4f1;letter-spacing:3px;font-weight:900}.access-brand img{width:48px;height:48px}
.access-roles{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;background:#071421;border-radius:8px;margin-bottom:22px}
.access-roles button{font:inherit;border:0;color:#8da5bb;background:transparent;border-radius:5px;padding:11px;cursor:pointer}.access-roles button.selected{background:#294960;color:white;box-shadow:inset 0 0 0 1px #6488a0}
#accessForm label{display:block;margin-bottom:9px}.access-input{display:flex;align-items:center;gap:8px;background:#091420;border:1px solid #58748d;border-radius:6px;padding:0 8px}.access-input input{box-sizing:border-box;width:100%;min-width:0;border:0!important;background:transparent!important;color:white!important;font-size:19px;padding:12px 6px!important;height:auto!important;outline:none}.access-input:focus-within{outline:2px solid #75bcdf}
#toggleCode{font:inherit;font-size:13px;color:#a9d0ea;background:transparent;border:0;white-space:nowrap;cursor:pointer}#accessError{min-height:22px;color:#ffadb0;font-size:14px;line-height:1.6;margin:12px 0}
#accessSubmit{width:100%;border:1px solid #78a4c2;border-radius:6px;background:linear-gradient(#386885,#23445d);padding:12px;color:#fff;font:inherit;font-size:17px;cursor:pointer}#accessSubmit:disabled{opacity:.6;cursor:wait}
@media(max-width:600px){#accessDialog{padding:24px}.header-right{flex-wrap:wrap}#accessButton{font-size:12px;padding:5px 8px}}

#accessDialog [hidden]{display:none!important}#accessError.access-success{color:#8fd3ab}#accountConfirmField{margin-top:16px}#accountConfirmField input{box-sizing:border-box;max-width:100%;font-size:18px}#accessDialog .forgot-password-link{display:block;margin:15px auto 0;padding:10px 16px;border:0;background:transparent;color:#a1d7f5;font:inherit;cursor:pointer;min-height:44px;text-decoration:underline;text-underline-offset:4px}#accessDialog .forgot-password-link:focus-visible{outline:2px solid #78c5ee;border-radius:6px}

.member-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0}.member-filters label{display:grid;gap:8px;color:#b9cddd}.member-filters select{width:100%;min-width:0;background:#152736;border:1px solid #476173;color:#e2edf3;padding:11px;border-radius:7px}.member-guild-state{padding:6px 10px;border-radius:6px;background:#1c3841;color:#9dd7c1}.member-guild-state.state-departed{background:#43252d;color:#f5b3b7}.member-guild-state.state-missing{background:#403624;color:#e6c98f}.member-result-note,.member-check-help{color:#a8bdcc;font-size:13px;line-height:1.8;margin:12px 0}.member-check-help summary{cursor:pointer;color:#ddc491}.account-card{min-width:0}.account-card small{overflow-wrap:anywhere}@media(max-width:650px){.member-filters{grid-template-columns:1fr}.account-search{flex-wrap:wrap}.account-search input{width:100%;min-width:0}.account-card{flex-wrap:wrap}}

#accessForm .password-help{font-size:13px;line-height:1.6;color:#b7cadb;margin:10px 0}#accessForm .password-input-hint{font-size:13px;line-height:1.6;color:#f3c07c;margin:8px 0}#accessDialog{max-height:calc(100dvh - 24px);overflow-y:auto}

/* enhancements.css */
body{--team-accent:#76b8e8}body[data-group=bomb1]{--team-accent:#eba66c}body[data-group=bomb2]{--team-accent:#c49be8}body[data-group=solo]{--team-accent:#75d1be}
#tabs button[data-team="0"],#tabs button[data-team="1"],#tabs button[data-team="2"]{border-top:2px solid #76b8e877}#tabs button[data-team="3"]{border-top:2px solid #eba66c88}#tabs button[data-team="4"]{border-top:2px solid #c49be888}#tabs button[data-team="5"]{border-top:2px solid #75d1be88}#tabs button.active{box-shadow:inset 0 -2px var(--team-accent)}
.team-title h2{color:var(--team-accent)}.roster .table{border:1px solid #ffffff12;border-radius:12px;overflow:hidden;background:#111c2ac9;box-shadow:0 6px 24px #0002}.roster .row{border-bottom:1px solid #ffffff09;background:transparent;align-items:center}.roster .row:nth-child(odd):not(.head){background:#ffffff03}.roster .row:hover:not(.head){background:#a9cee909}.roster .row.head{background:#20304799;color:#a8bacb;font-size:12px;letter-spacing:.04em}.roster .row input{border:1px solid transparent;background:transparent;border-radius:6px;margin:3px 2px;width:calc(100% - 4px);height:calc(100% - 6px)}.roster .row input:hover{background:#ffffff06;border-color:#ffffff0e}.roster .row input:focus{background:#1b2e41;border-color:var(--team-accent);outline:none}.roster .number{font-family:system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#7890a8;font-size:15px}.roster .weapon-button{border:0!important;background:none!important;gap:6px}.roster .weapon-button:not(:disabled){box-shadow:inset 2px 0 #76b8e844}.roster .weapon-button img{object-fit:contain}.roster .weapon-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.roster{gap:18px}
.setting-grid{grid-template-columns:repeat(auto-fit,minmax(165px,220px));gap:12px;justify-content:start}.setting-card{padding:12px!important;border-radius:10px}.key-weapon{justify-content:flex-start!important;gap:12px;margin-bottom:8px!important}.key-weapon img{width:64px!important;height:64px!important}.key-weapon strong{font-size:24px!important;white-space:nowrap}.setting-card label{font-size:12px}.setting-card input{max-width:72px}
#claimDialog{width:min(880px,94vw);max-height:90dvh;padding:24px;border-radius:16px;background:#142030;color:#edf3f8;border:1px solid #6d8da04d}#claimDialog::backdrop{background:#030911bd}.claim-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.claim-form label,.claim-note{display:flex;flex-direction:column;gap:6px}.claim-note{margin:14px 0}.claim-note textarea{min-height:70px;resize:vertical}.claim-selectors{display:flex;gap:8px;flex-wrap:wrap}#claimChoices{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px;max-height:230px;overflow:auto;margin:12px 0}#claimChoices button{display:flex;flex-direction:column;align-items:center;padding:8px;font-size:12px;line-height:1.4}#claimChoices img{width:64px;height:64px}.selected-claim{display:flex;align-items:center;gap:8px;padding:5px 0;border-bottom:1px solid #ffffff10}.selected-claim img{width:52px;height:52px}.selected-claim strong{flex:1}.claim-add{font-size:12px;white-space:nowrap;margin-left:auto}.claim-entry{border-color:#bd9f633d!important}.claim-files{display:grid;gap:10px;margin-top:12px}.claim-files a{display:block;overflow-wrap:anywhere;color:#92c9ed;margin-bottom:6px}.claim-files video,.claim-files img{width:100%;max-height:240px;object-fit:contain;background:#080c13}.claim-files small{display:block;color:#93a4b5}#claimProgress{width:100%;height:12px;accent-color:#83bbdf}.regear-item:disabled{opacity:1;cursor:default}.regear-item:disabled:hover{transform:none;filter:none}.death-card>header{gap:12px;flex-wrap:wrap}
@media(max-width:600px){.claim-form{grid-template-columns:1fr 1fr}#claimDialog{padding:15px}.selected-claim{flex-wrap:wrap}.selected-claim strong{min-width:120px}.claim-selectors input{width:100%}.setting-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.key-weapon{gap:6px}.key-weapon img{width:48px!important;height:48px!important}.key-weapon strong{font-size:20px!important}.roster{gap:12px}}

@media(min-width:1151px){.roster .row{grid-template-columns:32px 36px minmax(150px,.85fr) minmax(145px,1fr) minmax(170px,1.35fr);gap:8px;padding:0 12px}.roster .weapon-button img{width:42px;height:42px}.roster .weapon-button span:not(.weapon-placeholder){font-size:14px}}
@media(min-width:901px){body>header{height:128px}.brand>img{max-height:112px}}@media(max-width:560px){body>header{height:148px}.brand{width:240px}.brand>img{max-height:110px}.header-right{min-width:0}}

.utc-clock{display:flex;align-items:center;gap:7px}.utc-clock select{min-width:72px;font-size:17px;font-variant-numeric:tabular-nums}.utc-clock>b{font-size:14px;color:#a6c7e0}.exclude-action{color:#efadab;border-color:#9e625c;background:#492c2b66}.excluded-entry{border-style:dashed!important;background:#1c2028!important}.excluded-entry .death-equipment{opacity:.48}.excluded-badge{color:#ffb6a5;background:#542c29;border:1px solid #ae7163;padding:5px 9px;border-radius:5px}.death-ip{padding:5px 8px;border:1px solid #456278;border-radius:5px;color:#c3dbe9}.claim-files{padding:10px}.claim-entry .death-meta>span{overflow-wrap:anywhere}
.formation-tabs{height:48px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #ffffff12;margin:0;padding:3px 0}.formation-tabs>span{color:#8fa6bd;font-size:12px;margin-right:8px}.formation-tabs button{height:36px;padding:0 23px;min-width:155px;border:1px solid #435c71;border-radius:8px;background:#122235;color:#a2b9cd;margin:0!important;display:flex;align-items:center;justify-content:center;box-shadow:none}.formation-tabs button strong{font-size:16px;font-variant-numeric:tabular-nums;letter-spacing:.035em}.formation-tabs button.active{background:#244760;border-color:#8fc8ee;color:#f3faff;box-shadow:inset 0 -2px #9ad5fb}.formation-tabs button:disabled:not(.active){opacity:.55}.formation-tabs[hidden]{display:none}.roster .row{height:clamp(37px,calc((100dvh - 388px)/10),55px)}.roster .row.head{height:30px}body:has(.formation-tabs button:disabled.active) .roster{pointer-events:none;opacity:.65}
@media(max-width:600px){.formation-tabs{height:48px;gap:6px}.formation-tabs button{min-width:0;flex:1;padding:0 8px}.formation-tabs>span{font-size:11px;margin-right:1px}.formation-tabs button strong{font-size:15px}.roster .row{height:48px}}

.claim-player-field{position:relative;min-width:0;display:flex;flex-direction:column;gap:6px}.claim-player-field>input[type=search]{width:100%;min-width:0}.claim-player-results{position:absolute;top:100%;left:0;right:0;max-height:240px;overflow-y:auto;z-index:10;background:#14293d;border:1px solid #7baccd;border-radius:8px;box-shadow:0 8px 24px #0008;padding:5px}.claim-player-results[hidden]{display:none}.claim-player-results button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:10px 12px;border-radius:5px;font-size:15px}.claim-player-results button:hover,.claim-player-results button[aria-selected=true]{background:#315575}.claim-player-results p{color:#a4b7c9;padding:8px;font-size:13px}.utc-fixed-minute{display:inline-grid;place-items:center;min-height:42px;padding:0 12px;font-size:17px;font-variant-numeric:tabular-nums;background:#101e2e;border:1px solid #3f566c;border-radius:5px;color:#a4bad0}
.claim-dropzone{border:2px dashed #527d9c;border-radius:10px;padding:22px 16px;display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;background:#102539;cursor:pointer;transition:border-color .15s,background .15s}.claim-dropzone.dragging,.claim-dropzone:focus{border-color:#b7e4ff;background:#244d67;outline:none}.claim-dropzone>strong{font-size:15px}.claim-dropzone>span{color:#92aac1}#claimFileList>div{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:9px 4px;border-bottom:1px solid #ffffff15}#claimFileList span{overflow-wrap:anywhere}#claimFileList small{margin-left:10px;color:#8fa9c0}
.supply-summary{background:#122236;border:1px solid #405a71;border-radius:12px;padding:16px;margin-bottom:16px}.supply-heading{display:flex;gap:15px;align-items:center;margin-bottom:12px}.supply-heading h3{margin:0;font-size:19px}.supply-heading>span{font-size:12px;color:#a0b8cd}.supply-roles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.supply-role{border:1px solid #466078;border-radius:8px;min-width:0;background:#102031}.supply-role>summary,.supply-tier>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:12px;font-weight:800;list-style:none}.supply-role>summary:before,.supply-tier>summary:before{content:'▸';color:#8db6d1}.supply-role[open]>summary:before,.supply-tier[open]>summary:before{content:'▾'}.supply-role>summary b{margin-left:auto;color:#f4c480}.supply-tier{border-top:1px solid #344c63}.supply-tier>summary{font-size:13px;padding:9px 12px;color:#c6d6e5}.supply-items{padding:6px;max-height:340px;overflow:auto}.supply-items>button{display:flex;width:100%;align-items:center;gap:6px;margin-bottom:5px;padding:6px;text-align:left;font-size:11px}.supply-items img{width:40px;height:40px}.supply-items>button>span{flex:1;min-width:0;overflow-wrap:anywhere}.supply-items small{display:block;font-size:10px;color:#99b3ca}.supply-items b{white-space:nowrap;color:#f2c489}.player-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;cursor:pointer;padding:16px 20px;background:#182d42;list-style:none;border-radius:11px}.player-summary>div:first-child{display:flex;gap:12px;align-items:center}.player-summary strong{font-size:20px;color:#eef6ff}.player-summary>div>span{font-size:12px;color:#a3bcd2}.player-summary>button{font-size:12px;padding:6px 9px}.player-labels{display:flex;flex-wrap:wrap;gap:5px;margin-left:auto}.player-labels>span{background:#39516d;border:1px solid #69829d;border-radius:4px;padding:3px 6px;color:#e8d6a6!important;font-size:11px!important}.expand-hint{font-size:12px;color:#98b5cd}.death-request{padding:12px;display:flex;flex-direction:column;gap:8px;border-top:1px solid #33495e;margin-top:12px}.death-request textarea{min-height:65px;resize:vertical;font-size:13px}.death-request small{color:#c7ab77;font-size:11px}.death-request p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#b9cede;font-size:13px}.request-badge{color:#9ad9ba;font-size:12px}.regear-bulk{min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#28493755;border:1px solid #6d9d80;border-radius:9px;padding:12px;color:#c3e3cd}.regear-bulk:disabled{opacity:.55;cursor:default}.regear-bulk strong{font-size:14px}.regear-bulk small{font-size:10px;line-height:1.5}.bulk-check{width:48px;height:48px;display:grid;place-items:center;font-size:30px;border:2px solid #92bca2;border-radius:50%}.death-inventory{margin:8px 10px 12px;border-top:1px solid #3c546c;padding-top:10px}.death-inventory>summary{color:#9fc3de;cursor:pointer;font-size:12px;padding:7px}.inventory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(65px,1fr));gap:5px;padding:8px 0}.inventory-grid>div{border:1px solid #3b5166;border-radius:5px;display:flex;flex-direction:column;align-items:center;min-width:0}.inventory-grid img{width:60px;height:60px}.inventory-grid span{font-size:11px;color:#c9dae9;padding-bottom:5px}#regearLabelsDialog{width:min(480px,92vw)}.regear-label-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:15px 0}.regear-label-options label{display:flex;gap:8px;align-items:center;font-size:15px}
@media(max-width:900px){.supply-roles{grid-template-columns:repeat(2,minmax(0,1fr))}.player-summary{padding:13px}.player-labels{margin-left:0}.supply-heading{align-items:flex-start;flex-direction:column;gap:5px}}@media(max-width:480px){.supply-roles{gap:7px}.supply-summary{padding:10px}.supply-role>summary{padding:10px;font-size:13px}.claim-dropzone{padding:16px 10px;gap:8px}.player-summary>div:first-child{flex-wrap:wrap;gap:6px}}
.death-sets{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:12px;align-items:start}
.death-sets .death-entry{display:flex;flex-direction:column;min-width:0}
.death-sets .death-meta{gap:7px;padding:13px;font-size:12px}
.death-sets .death-request{margin-top:0;background:#0c1c2d;border-top:1px solid #29435a;gap:9px}
.death-request textarea{font:inherit;color:#e3eef8;background:#10283d;border:1px solid #426581;border-radius:7px;padding:10px;min-height:76px;line-height:1.5;width:100%;resize:vertical}
.death-request textarea::placeholder{color:#8da9bf}
.death-request textarea:focus{outline:2px solid #6eb6e6;outline-offset:1px;background:#142e44}
.death-request .request-action{align-self:flex-start;min-height:42px;padding:10px 18px;font-weight:800;background:#286597;border:1px solid #7cc8fa;color:#fff;box-shadow:0 3px 12px #06101e66}
.death-request .request-action:hover{background:#347fb8}
.death-request .request-action.submitted{background:#1d513e;color:#c1f5d4;border-color:#61b98c;box-shadow:none}
.death-entry.request-sent{border-color:#4a9276!important}
.death-request .request-badge{display:inline-flex;align-self:flex-start;padding:5px 9px;border-radius:5px;background:#184331;border:1px solid #4b9774;color:#b5f0cf}
.death-sets .regear-item img{max-width:88px}
.death-sets .regear-item>strong{font-size:19px}
.death-sets .regear-bulk{min-height:135px}
.report-auto-status{color:#9db8cc;font-size:12px;margin:12px 0;line-height:1.7}
@media(max-width:560px){.death-sets{grid-template-columns:1fr}.death-request .request-action{width:100%;justify-content:center}.death-sets .regear-item img{max-width:98px}}
.supply-role-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.supply-role-tab{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;text-align:left;background:#102437;border:1px solid #45647e;border-radius:8px;font-weight:800}
.supply-role-tab b{color:#f0c583}.supply-role-tab.selected{background:#214762;border-color:#8cc8ed;color:#f4faff;box-shadow:inset 0 -3px #8cc8ed}
.supply-wide-panel{width:100%;margin-top:14px;padding:16px;background:#0c1c2b;border:1px solid #375d78;border-radius:8px}
.supply-wide-panel h4{margin:0 0 14px;font-size:17px;color:#c8e4f7}.supply-tier-section{margin:12px 0;border-top:1px solid #294358;padding-top:10px}
.supply-tier-section h5{font-size:15px;margin:0 0 10px;display:flex;gap:12px;color:#bad8ef}.supply-tier-section h5 span{color:#e6c58a;font-size:13px}
.supply-wide-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:9px}
.supply-wide-items>button{display:flex;align-items:center;gap:9px;padding:9px;text-align:left;min-width:0}.supply-wide-items img{width:56px;height:56px;object-fit:contain}.supply-wide-items>button>span{flex:1;min-width:0;font-size:13px}.supply-wide-items small{display:block;color:#91adc3;margin-top:5px}.supply-wide-items b{color:#f0cc87;white-space:nowrap}
.claim-note textarea{font:inherit;background:#10283d;color:#e4eef7;border:1px solid #426581;padding:10px;border-radius:7px}.claim-note textarea::placeholder{color:#8ca5bb}
.claim-dropzone:focus,.claim-dropzone:focus-within{outline:2px solid #7cbfe9;outline-offset:2px}.claim-dropzone strong{line-height:1.7}
@media(max-width:650px){.supply-role-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.supply-wide-panel{padding:10px}.supply-wide-items{grid-template-columns:1fr}}
.player-regear-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-left:auto}.player-regear-meta .player-labels{margin-left:0;display:flex;align-items:center;gap:5px}
.player-summary .player-regear-meta button{font-size:12px;padding:7px 10px;min-height:34px}.regear-box-button,.regear-box-badge{font-variant-numeric:tabular-nums;color:#b8ddf4;border:1px solid #537c98;background:#18394d;border-radius:5px;padding:6px 10px;font-weight:800;white-space:nowrap}
.player-labels .regear-tag.tag-tank{color:#b0dcff!important;background:#183c5a;border-color:#558eb8}.player-labels .regear-tag.tag-heal{color:#b5f0ce!important;background:#18452f;border-color:#4d9a70}.player-labels .regear-tag.tag-support{color:#ffe5a1!important;background:#4b3e1b;border-color:#a48a3e}
.player-labels .regear-tag.tag-dps{color:#f5f7fb!important;background:#3b434d;border-color:#8b99a7}.player-labels .regear-tag.tag-caller{color:#ffe397!important;background:#4d391d;border-color:#b28b47}.player-labels .regear-tag.tag-bomb{color:#ffd0ad!important;background:#4b3025;border-color:#b17c59}
.player-summary .player-missing-count{display:inline-flex;color:#ffdaa0;background:#483716;border:1px solid #8e703b;border-radius:5px;font-size:13px;padding:5px 9px;white-space:nowrap}
#regearBoxDialog{width:min(420px,92vw)}.box-field{display:flex;flex-direction:column;gap:8px;margin-top:16px}.box-field input{font-size:20px;min-height:46px;font-variant-numeric:tabular-nums}
@media(max-width:650px){.player-regear-meta{margin-left:0;width:100%;gap:7px}.player-summary .player-regear-meta button{padding:6px 8px}}

/* Player identity and daily supply information stay together. */
.player-summary>div.player-identity{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;flex:1}
.player-identity-line{display:flex;align-items:center;flex-wrap:wrap;gap:9px;max-width:100%}
.player-identity-line>strong{overflow-wrap:anywhere}
.player-identity-line .player-labels{margin-left:0;gap:5px;align-items:center}
.player-summary .player-death-count{font-size:12px;color:#a3bcd2;line-height:1.4}
.player-regear-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-left:auto}
.player-summary .player-regear-actions button,.player-summary .regear-box-button{font-size:12px;padding:7px 10px;min-height:34px}
@media(max-width:650px){.player-summary>div.player-identity{flex-basis:100%;gap:6px}.player-identity-line{gap:7px}.player-regear-actions{margin-left:0;width:100%;gap:7px}.player-summary .player-regear-actions button{padding:6px 8px}}
/* Responsive density: use the available viewport, with readable text on QHD/UHD. */
main{max-width:none;width:96%;padding-inline:clamp(10px,1.1vw,34px)}
#tabs{height:auto;min-height:52px;flex-wrap:wrap;align-items:stretch;gap:3px 5px;padding-block:5px}
#tabs button{min-height:44px;padding-inline:clamp(7px,.7vw,20px);margin-left:0;font-size:clamp(14px,.76vw,21px)}
@media(min-width:1400px){body{font-size:clamp(15px,.78vw,23px)}body>header{height:clamp(128px,8vw,210px)}.brand{width:clamp(330px,23vw,640px)}.brand>img{max-height:180px}.roster .row{height:clamp(43px,calc((100dvh - 420px)/10),86px);grid-template-columns:2em 2.5em minmax(0,.9fr) minmax(0,1fr) minmax(0,1.3fr)}.roster .row.head{height:2.3em;font-size:clamp(13px,.72vw,20px)}.roster .row input,.roster .weapon-button span:not(.weapon-placeholder),.roster .number{font-size:clamp(15px,.86vw,24px)}.roster .weapon-button img{width:clamp(42px,2.6vw,72px);height:clamp(42px,2.6vw,72px)}.total,.disarray{height:clamp(44px,3vw,72px)}.total b,.disarray b{font-size:clamp(22px,1.3vw,36px)}.toolbar h2{font-size:clamp(22px,1.4vw,36px)}.report-controls input,.report-controls select,.report-controls button{font-size:clamp(15px,.8vw,23px)}.report-table{font-size:clamp(14px,.8vw,22px)}.player-summary strong{font-size:clamp(22px,1.35vw,36px)}}
.player-summary .regear-box-button,.player-summary .regear-box-badge{font-size:27.5px!important;padding:10px 14px;line-height:1.25;min-height:54px}
.player-summary .player-labels .regear-tag{font-size:27.5px!important;padding:8px 12px;line-height:1.25}
.player-summary .player-missing-count{font-size:32px;padding:8px 12px;line-height:1.25}
.player-identity-line{gap:12px}.player-summary{padding-block:18px}.player-death-count{margin-top:2px}
.supply-completed>.player-summary{background:#143730;border:1px solid #397b64;box-shadow:inset 4px 0 #63bf93}
.supply-completed .player-missing-count{color:#b2ecd0;background:#1b4938;border-color:#538e70}
.supply-unrequested .player-missing-count{font-size:16px;background:#25384a;color:#a5bacd;border-color:#42596b}
.set-completed{border-color:#4d9176!important;background:#153329!important}.set-completed .regear-item.done{background:#224c3e}
.missing-wrap{position:relative;display:inline-flex;cursor:help}.missing-preview{display:none;position:absolute;top:calc(100% + 7px);left:0;z-index:30;width:min(540px,80vw);max-height:330px;overflow:auto;padding:12px;background:#0c1c2b;border:1px solid #759cb6;border-radius:9px;box-shadow:0 10px 30px #0009;gap:9px;grid-template-columns:repeat(4,minmax(0,1fr))}.missing-wrap:hover .missing-preview,.missing-wrap:focus .missing-preview,.missing-wrap.preview-open .missing-preview{display:grid}.missing-preview>span{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}.missing-preview img{width:72px;height:72px}.missing-preview small{font-size:12px;color:#c6d7e8;text-align:center}
.supply-tier-section h5{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.supply-category{margin-left:6px;min-height:36px}
.personal-heading{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin:20px 0}.personal-heading strong{font-size:26px}.personal-heading span{color:#92aec8}.personal-day{margin:20px 0 28px;border:1px solid #344d64;border-radius:12px;padding:16px;background:#11213455}.personal-day h3{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:0 0 14px;color:#b7ddf6}.personal-day h3 small{font-size:13px;color:#8faac1}.personal-day .death-sets{padding:0}
.claim-dropzone{cursor:text}.claim-dropzone.paste-ready{border-color:#c2eaff;background:#214c67;box-shadow:0 0 0 3px #8bcbef29}.claim-dropzone.paste-ready>strong{color:#e0f4ff}
.account-modes{display:flex;gap:10px;margin:16px 0}.account-modes button{flex:1}.account-modes button.selected{background:#2a5978;border-color:#94c6e8}#accessForm>input,#accessForm [data-account-field]>input{width:100%;min-height:45px;margin-bottom:14px}#accessForm>label,#accessForm [data-account-field]>label{margin-top:10px}#accessDialog{max-height:92dvh;overflow:auto}#ownerSetupButton{margin-top:16px;width:100%;font-size:12px}.account-search{display:flex;gap:10px;margin-bottom:16px}.account-search input{flex:1;min-width:0}.account-list{display:grid;gap:12px}.account-card{display:flex;align-items:center;flex-wrap:wrap;gap:14px;border:1px solid #456078;background:#142a3c;border-radius:9px;padding:18px}.account-card>div:first-child{flex:1;min-width:180px}.account-card strong{font-size:20px}.account-card small{display:block;color:#a2b9cf;overflow-wrap:anywhere;margin-top:5px}.permission-options{display:flex;gap:14px;flex-wrap:wrap}.permission-options label{display:flex;gap:5px;align-items:center}.account-status{color:#d7c48c}.usual-weapons>div{display:flex;gap:10px;flex-wrap:wrap}.usual-weapons>div>span{display:flex;align-items:center;gap:8px;border:1px solid #3d5c76;padding:6px 12px;border-radius:8px}.usual-weapons img{width:52px;height:52px}.usual-weapons small{color:#92c9ed}
@media(max-width:900px){main{width:100%}.roster{grid-template-columns:1fr}.report-controls{display:flex;flex-wrap:wrap;gap:10px}.report-controls>*{max-width:100%}.player-summary .regear-box-button,.player-summary .regear-box-badge,.player-summary .player-labels .regear-tag{font-size:22px!important;min-height:42px;padding:7px 10px}.player-summary .player-missing-count{font-size:25px}.player-identity-line{gap:8px}.death-sets{grid-template-columns:1fr}.missing-preview{position:fixed;left:5vw;top:auto;bottom:20px;width:90vw;max-height:40dvh}.account-card{align-items:flex-start}.account-card>div:first-child{width:100%}}
@media(max-width:600px){#tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}#tabs button:last-child{grid-column:auto;border-radius:0}#tabs .nav-separator{display:none}.roster .row{height:auto!important;min-height:102px;grid-template-columns:24px 30px minmax(0,1fr) minmax(0,1fr);grid-template-rows:54px 38px;gap:3px 5px;padding:5px 6px}.roster .row.head{height:33px!important;min-height:33px;grid-template-rows:1fr}.roster .row input{font-size:16px}.roster .row input[data-field=note]{grid-column:3/-1}.roster .weapon-button{min-width:0}.roster .weapon-button span{font-size:14px!important}.claim-form{grid-template-columns:1fr}.claim-selectors>*{min-width:0;max-width:100%}.claim-selectors select{flex:1}.personal-day{padding:10px}.supply-role-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.supply-wide-items{grid-template-columns:1fr}.death-equipment{grid-template-columns:repeat(3,minmax(0,1fr))!important}.player-regear-actions{width:100%;margin-left:0}.account-card select{width:100%}.permission-options{width:100%}.history-row{grid-template-columns:1fr 1fr!important}.history-row>span:last-of-type{grid-column:1/-1}.claim-dropzone>strong{font-size:14px}#claimChoices{grid-template-columns:repeat(3,minmax(0,1fr))}}

.death-card{overflow:visible}.player-summary .regear-box-button,.player-summary .regear-box-badge{font-size:30px!important}@media(max-width:900px){.player-summary .regear-box-button,.player-summary .regear-box-badge{font-size:22px!important}}
@media(min-width:2000px){.death-meta time,.death-meta span,.death-meta button,.death-request p,.death-request textarea,.death-request small,.expand-hint,.report-auto-status,.player-summary .player-death-count,.regear-overview,.hint{font-size:clamp(15px,.78vw,23px)}.player-summary .player-regear-actions button,.toolbar-actions button,.supply-heading>span,.supply-tier-section h5,.supply-wide-items>button,.supply-wide-items small,.regear-item>span,.regear-item em,.guild-cell,.guild-cell small,.tile-caption{font-size:clamp(16px,.8vw,24px)}.personal-day h3,.account-card strong,.supply-heading h3,.supply-wide-panel h4{font-size:clamp(23px,1.1vw,31px)}.category-option{font-size:clamp(18px,.9vw,26px)}.weapon-tile{min-height:160px}.weapon-tile img{width:140px;height:140px}.death-equipment{gap:14px}.death-equipment .regear-item img{max-width:140px}}
/* v13: compact identity labels and calm, ranked battle accents. */
.player-summary .regear-box-button,.player-summary .regear-box-badge{font-size:15px!important;min-height:34px;padding:6px 10px}
.player-summary .player-labels .regear-tag{font-size:14px!important;padding:5px 8px;line-height:1.35}
.player-summary .player-missing-count{font-size:22px;padding:6px 10px}
.player-identity-line{gap:9px}.player-summary{padding-block:14px}

.report-table tr.guild-rank-0{--guild-tint:#d2b36f;--guild-wash:#b9984c0a}.report-table tr.guild-rank-1{--guild-tint:#bbcbd9;--guild-wash:#bccbdb08}.report-table tr.guild-rank-2{--guild-tint:#bc8f74;--guild-wash:#b9876809}.report-table tr.guild-rank-3{--guild-tint:#8596ab;--guild-wash:#9daec106}.report-table tr.guild-rank-4{--guild-tint:#64758a;--guild-wash:#8291a005}
.report-table tr[class*=guild-rank-]{background:var(--guild-wash)}.report-table tr[class*=guild-rank-]>td:first-child{border-left:3px solid color-mix(in srgb,var(--guild-tint),transparent 40%)}.report-table tr[class*=guild-rank-] .guild-cell{color:var(--guild-tint)}
.report-player-name{border:0;background:transparent;padding:5px 0;text-align:left;font-weight:750;text-decoration:underline;text-decoration-color:#82a9c94d;text-underline-offset:5px}.report-player-name:hover{background:transparent;color:#c6e8ff}
.detail-filters{flex-wrap:wrap}#detailAlliance:disabled{opacity:.85;color:#aabfd2;background:#132536;cursor:default}#resetDetailFilters{border-color:#668da9}
.supply-wide-items>button.gear-selected{border-color:#a9ddff;background:#2c536c;box-shadow:inset 0 0 0 2px #8dc9ee66,0 0 16px #86c5ee1a;position:relative}.supply-wide-items>button.gear-selected:after{content:'✓';color:#d3f2ff;margin-left:5px;font-size:20px}.clear-gear-highlight{color:#f7dcaa!important;background:#574223!important;border-color:#d8b477!important;box-shadow:0 0 0 2px #d9bc7722;font-weight:800}.clear-gear-highlight:hover{background:#73582d!important}
body[data-regear-view=manage] #regear{padding-bottom:340px;overflow-anchor:none}.missing-wrap .missing-preview{display:none!important}
#playerHistoryPreview,#regearMissingPreview{position:fixed;z-index:250;max-height:min(430px,calc(100dvh - 24px));overflow:auto;overscroll-behavior:contain;border:1px solid #7ba4bf;border-radius:12px;padding:16px;background:#102333;box-shadow:0 14px 55px #000b;box-sizing:border-box}
#regearMissingPreview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}#regearMissingPreview>span{display:flex;align-items:center;flex-direction:column;gap:6px;min-width:0}#regearMissingPreview img{width:76px;height:76px;object-fit:contain}#regearMissingPreview small{font-size:12px;color:#c4d9eb;text-align:center}
.preview-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.preview-heading strong{font-size:23px}.preview-heading button{font-size:22px;padding:2px 10px}.preview-skeleton{min-height:180px;display:grid;place-items:center;color:#8fa9bf}.recent-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0}.recent-metrics>span{display:flex;flex-direction:column;gap:6px;padding:10px;background:#1a3448;border-radius:7px;color:#a8c5dc}.recent-metrics b{font-size:26px;color:#e8f3fb}.recent-scope{font-size:14px;color:#bdd6e8}.recent-weapons{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:14px}.recent-weapons>div{display:flex;align-items:center;gap:7px;background:#1a3043;border-radius:7px;padding:6px;min-width:0}.recent-weapons img{width:42px;height:42px;object-fit:contain}.recent-weapons span{font-size:12px;flex:1;overflow-wrap:anywhere}.recent-weapons b{font-size:13px;white-space:nowrap;color:#c7d9ac}
.formation-rename{display:flex;align-items:flex-end;gap:10px;margin-top:14px}.formation-rename label{display:flex;flex-direction:column;gap:6px}.formation-rename input{font-size:18px;max-width:260px}.formation-tabs button[data-formation=other]{border-color:#8c799a}.formation-tabs button[data-formation=other].active{background:#443e59;border-color:#bda6d0}
#testCredentialsDialog{width:min(560px,94vw)}#testCredentialsDialog>label{display:flex;flex-direction:column;gap:6px;margin:14px 0}#testCredentialsDialog input{font-size:20px;font-family:ui-monospace,monospace;width:100%}#createTestAccount{border-color:#7aa9c6;background:#25465c;white-space:nowrap}.account-search{flex-wrap:wrap}
.weapon-insights{border:1px solid #3c5870;background:linear-gradient(130deg,#182f4355,#0e1d2b77);border-radius:14px;padding:20px;margin-top:20px}.insight-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.insight-heading h3{font-size:24px;margin:0}.insight-heading p{color:#9cb8ce}.insight-note{font-size:12px;color:#9ab3c6;line-height:1.7}.insight-category-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:20px 0}.insight-category-tabs button{font-size:13px;padding:7px 10px}.insight-category-tabs .selected,.insight-weapon-grid .selected{background:#2b526b;border-color:#a2d9fa;box-shadow:inset 0 -2px #9ed8fa}.insight-weapon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:10px}.insight-weapon-grid button{display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px;min-width:0}.insight-weapon-grid img{width:64px;height:64px}.insight-weapon-grid strong{font-size:14px;overflow-wrap:anywhere}.insight-weapon-grid span{font-size:12px;color:#aec9de}.weapon-top-players{margin-top:24px;border-top:1px solid #354d63;padding-top:12px}.weapon-top-players h3{display:flex;align-items:center;gap:10px}.weapon-top-players h3 img{width:52px;height:52px}.weapon-top-players>button{display:grid;grid-template-columns:28px minmax(100px,1fr) 2fr 80px;align-items:center;gap:12px;width:100%;text-align:left;margin-bottom:7px;padding:12px;background:#172e4199}.insight-bar{height:8px;background:#304a5d;border-radius:5px;overflow:hidden}.insight-bar i{display:block;height:100%;background:linear-gradient(90deg,#5e9bbf,#b0d9ee);border-radius:5px}.player-weapon-analysis{margin-top:25px;border-top:1px solid #3b5267;padding-top:16px}.insight-player-search{display:flex;gap:12px;flex-wrap:wrap}.insight-player-search input{flex:1;min-width:150px}.insight-player-search select{min-width:200px}.insight-player-metrics{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:20px 0;color:#adc8dc}.insight-player-metrics strong{font-size:24px;color:#edf5fc}.weapon-donut{display:grid;grid-template-columns:minmax(180px,280px) minmax(180px,1fr);align-items:center;gap:26px;max-width:900px;padding:10px 0}.weapon-donut svg{width:100%;max-height:280px;filter:drop-shadow(0 8px 18px #0005)}.donut-value{font-family:system-ui,sans-serif;font-size:30px;font-weight:800;fill:#e9f5fc}.donut-caption{font-family:system-ui,sans-serif;font-size:10px;fill:#a8c4db}.donut-legend{display:grid;gap:12px}.donut-legend>div{display:grid;grid-template-columns:10px minmax(100px,1fr) 40px 50px;align-items:center;gap:10px}.donut-legend i{width:9px;height:9px;border-radius:50%}.donut-legend span{font-size:14px}.donut-legend b{font-size:19px;color:#e2eef7}.donut-legend small{color:#9eb7cc;text-align:right}
@media(max-width:650px){.player-summary .regear-box-button,.player-summary .regear-box-badge{font-size:14px!important;min-height:32px}.player-summary .player-labels .regear-tag{font-size:13px!important}.player-summary .player-missing-count{font-size:19px}.formation-tabs{display:flex;flex-wrap:wrap;height:auto;padding-block:6px}.formation-tabs>span{width:100%}.formation-tabs button{min-width:0;padding:0 9px}.formation-tabs button strong{font-size:14px}.formation-rename{flex-wrap:wrap}.weapon-insights{padding:12px}.insight-heading{align-items:flex-start;flex-wrap:wrap}.insight-heading h3{font-size:21px}.insight-weapon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.weapon-donut{grid-template-columns:1fr;gap:16px}.weapon-donut svg{max-height:220px}.weapon-top-players>button{grid-template-columns:22px 1fr 60px;gap:8px}.weapon-top-players .insight-bar{grid-row:2;grid-column:2/-1}.recent-weapons{grid-template-columns:1fr 1fr}#regearMissingPreview{grid-template-columns:repeat(3,minmax(0,1fr))}.account-search input{flex-basis:100%}}
/* v14: one shared palette, compact guild columns, explicit popup toggles. */
#reports .blue-number,#reports .battle-metrics .metric-blue b,#reports .battle-metrics .metric-blue span{color:#68baff}
#reports .report-table th:nth-child(3):has(#detailGuild),#reports .report-table th:nth-child(4):has(#detailAlliance){width:13%;padding-inline:9px}
#reports .report-table:has(#detailGuild){table-layout:fixed;width:100%}
#reports .report-table:has(#detailGuild) th:first-child{width:15%}#reports .report-table:has(#detailGuild) th:nth-child(2){width:29%}
#reports .report-table:has(#detailGuild) th:nth-child(n+5){width:7.5%}
#reports .report-table .guild-cell{padding-inline:9px;overflow-wrap:anywhere}
#reports #detailGuild,#reports #detailAlliance{width:100%;max-width:190px}
#reports .summary-panel tr[class*=guild-rank-]>td:first-child{color:var(--guild-tint)}
.total:hover .tooltip,.total:focus .tooltip{display:none}.total:not(.tip-dismissed):hover .tooltip,.total:not(.tip-dismissed):focus-visible .tooltip,.total.tip-pinned .tooltip{display:block}.total.tip-dismissed .tooltip{display:none!important}
.team-tab-icon{width:16px;height:16px;fill:currentColor;stroke:currentColor;stroke-width:1.6;vertical-align:-3px;margin-right:6px;opacity:.8}
.disarray.alternative{margin-left:0;background:#172b3f8c;border-style:dashed}.totals{flex-wrap:wrap}.disarray.alternative span{font-size:11px}
.insight-player-search{display:block}.insight-player-combobox{position:relative;max-width:650px}.insight-player-combobox input{width:100%}
#insightPlayerSuggestions{position:absolute;inset:calc(100% + 5px) 0 auto;z-index:50;max-height:310px;overflow:auto;background:#12283b;border:1px solid #719bb9;border-radius:8px;padding:5px;box-shadow:0 12px 25px #0008}
#insightPlayerSuggestions button{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;text-align:left;padding:11px 12px;background:transparent;border-radius:5px}
#insightPlayerSuggestions button:hover,#insightPlayerSuggestions button.selected{background:#32546e;color:#eff8ff}#insightPlayerSuggestions small{color:#9ebcd3}#insightPlayerSuggestions>span{display:block;padding:12px;color:#acc3d5}
.siphon-heading,.siphon-heading>div,.my-siphon-balance,.siphon-ledger-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.siphon-heading{margin-bottom:16px}.siphon-heading>div{margin-right:auto}.siphon-heading strong{font-size:23px}.siphon-heading span,.siphon-ledger-heading span{color:#9db8cf;font-size:13px}
.siphon-icon{width:42px;height:42px;object-fit:contain}.siphon-import{padding:18px;background:#15293a;border:1px solid #34516b;border-radius:10px;margin-bottom:20px}.siphon-file{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.siphon-import textarea{display:block;width:100%;box-sizing:border-box;margin-bottom:12px;font-size:13px}.siphon-import .hint{line-height:1.7}.siphon-import button{background:#2b526b;border-color:#83b9da}
.siphon-ledger-heading{justify-content:space-between;margin-bottom:12px}.siphon-ledger-heading input{max-width:400px}.siphon-table{max-width:850px}.siphon-table td:last-child{text-align:right;font-variant-numeric:tabular-nums;font-size:18px}.siphon-table th:last-child{text-align:right}.siphon-positive{color:#a4d5b9}.siphon-negative{color:#e7abb8}
.my-siphon-balance{margin-left:auto;padding:4px 12px;background:#203a4b;border:1px solid #567a94;border-radius:7px;font-size:13px}.my-siphon-balance b{color:#c8e9ff;font-size:22px}.my-siphon-balance small{color:#94acbf}.my-siphon-balance .siphon-icon{width:35px;height:35px}
@media(max-width:700px){.my-siphon-balance{margin-left:0;width:100%;box-sizing:border-box}.siphon-heading>div{width:100%}.siphon-ledger-heading input{width:100%}.siphon-ledger-heading span{font-size:11px}.disarray{margin-left:0}.team-tab-icon{width:13px;height:13px;margin-right:4px}}
/* v15: consistent metric colors across every report and player preview. */
:root{--stat-kill:#8fd3ab;--stat-death:#f37d87;--stat-fame:#efbd67;--siphon-positive:#8fd3ab;--siphon-negative:#f17d87}
body .kill-number,body .kill-number b,#reports .kill-number,#reports [data-sort=kills],#reports .metric-kills b,#reports .metric-kills span{color:var(--stat-kill)}
body .death-number,body .death-number b,#reports .death-number,#reports [data-sort=deaths],#reports .battle-metrics .metric-deaths b,#reports .metric-deaths span{color:var(--stat-death)}
body .fame-number,body .fame-number b,#reports .fame-number,#reports [data-sort=fame],#reports .metric-fame b,#reports .metric-fame span{color:var(--stat-fame)}
#reports .summary-panel th:nth-child(3),#reports .report-table:has(#selectReportPage) th:nth-child(5){color:var(--stat-kill)}
#reports .summary-panel th:nth-child(4){color:var(--stat-death)}#reports .summary-panel th:nth-child(5),#reports .report-table:has(#selectReportPage) th:nth-child(6){color:var(--stat-fame)}
body .siphon-positive,body #mySiphonBalance .siphon-positive{color:var(--siphon-positive)}body .siphon-negative,body #mySiphonBalance .siphon-negative{color:var(--siphon-negative)}
.header-right{row-gap:15px!important}#language{margin-bottom:7px}#accessButton{margin-top:3px}
.source-switch{flex-wrap:wrap}.source-switch button{white-space:nowrap}
.gytt-key-card .key-weapon img{border-radius:9px;object-fit:cover}.gytt-key-card>span{display:block;color:#a8c2d9;font-size:13px}
.siphon-heading{justify-content:flex-end}.siphon-heading>span{margin-right:auto}.siphon-import>summary{font-weight:750;cursor:pointer;padding:2px 0}.siphon-import[open]>summary{margin-bottom:17px}
.siphon-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);gap:22px;align-items:start}
.siphon-events-panel,.siphon-balances-panel{min-width:0;padding:18px;border:1px solid #344c62;border-radius:12px;background:#101f2e}
.siphon-balances-panel{border-color:#5b829c;background:#172f42;box-shadow:inset 0 3px #86b8d533}.siphon-columns h3{margin:0 0 17px;font-size:19px}.siphon-balance-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:14px}.siphon-balance-heading h3{margin:0 auto 0 0}.siphon-balance-heading button{font-size:12px}
.siphon-events-panel .report-table-wrap,.siphon-copy-scope{max-height:740px;overflow:auto}.siphon-events-table{font-size:12px}.siphon-events-table th,.siphon-events-table td{padding:11px 9px;white-space:nowrap}.siphon-events-table{user-select:none}.siphon-balances-panel .siphon-table{width:100%;max-width:none;user-select:text}.siphon-table th button{border:0;background:transparent;padding:0;font-size:14px}.siphon-table td{padding:12px 15px}.siphon-columns .pagination{flex-wrap:wrap}.siphon-ledger-heading input[type=search]{width:100%;max-width:none}.siphon-low-toggle{display:flex;gap:9px;align-items:center;font-size:13px;cursor:pointer;color:#d4e4ef}.siphon-low-toggle input{width:17px;height:17px;accent-color:#86c6ed}
.siphon-copy-text{width:100%;box-sizing:border-box;margin-top:12px;min-height:84px;max-height:160px;font-family:ui-monospace,monospace;font-size:12px;white-space:pre;resize:vertical;color:#bbd5e7;background:#112435}
.player-analysis-view .insight-player-search{margin-top:18px}.player-analysis-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.85fr);gap:30px;align-items:start;margin-top:20px}
.player-analysis-layout .weapon-donut{grid-template-columns:minmax(170px,245px) minmax(180px,280px);gap:18px;max-width:560px}.player-analysis-layout .donut-legend>div{grid-template-columns:9px minmax(95px,1fr) 28px 38px;gap:7px}.player-analysis-layout .donut-legend b{font-size:17px}.player-analysis-layout .donut-legend span{font-size:13px}
.featured-player-weapon{padding:22px;border:1px solid #527e9d;background:radial-gradient(ellipse at top,#325a7377,transparent 70%),#132a3d;border-radius:14px;text-align:center}.featured-weapon-art{display:grid;place-items:center;min-height:140px}.featured-weapon-art img{width:130px;height:130px;filter:drop-shadow(0 8px 18px #0008)}.featured-player-weapon h3{margin:9px 0 20px;font-size:23px}.weapon-battle-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.weapon-battle-metrics>span{display:flex;flex-direction:column;gap:7px;font-size:13px}.weapon-battle-metrics b{font-size:30px}.featured-player-weapon .hint{font-size:11px;line-height:1.6;margin-top:18px}
.player-weapon-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.player-weapon-choices button{display:flex;align-items:center;gap:8px;text-align:left;padding:8px;min-width:0}.player-weapon-choices img{width:44px;height:44px}.player-weapon-choices span{font-size:12px;flex:1;overflow-wrap:anywhere}.player-weapon-choices b{font-size:12px;white-space:nowrap}.player-weapon-choices .selected{border-color:#acdfff;background:#2d526d;box-shadow:inset 0 0 0 1px #a5d7ee55}
@media(max-width:1100px){.siphon-columns{grid-template-columns:1fr}.player-analysis-layout{grid-template-columns:1fr}.player-weapon-showcase{display:grid;grid-template-columns:1fr 1fr;gap:15px}.player-weapon-choices{align-content:start;margin-top:0}.source-switch{width:100%}}
@media(max-width:650px){.header-right{row-gap:12px!important}.siphon-events-panel,.siphon-balances-panel{padding:12px}.player-weapon-showcase{grid-template-columns:1fr}.player-analysis-layout .weapon-donut{grid-template-columns:minmax(130px,190px) minmax(130px,1fr);gap:10px}.player-analysis-layout .donut-legend>div{grid-template-columns:8px minmax(65px,1fr) 22px 30px;gap:4px}.player-analysis-layout .donut-legend span,.player-analysis-layout .donut-legend small{font-size:11px}.player-analysis-layout .donut-legend b{font-size:14px}.weapon-insights{padding:13px}.insight-heading h3{font-size:21px}.insight-heading button{font-size:12px}.siphon-ledger-heading{gap:12px}.siphon-columns .pagination{gap:8px}}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* v17: compact phone navigation and formation rows; desktop stays unchanged. */
@media(max-width:760px){
 main{width:100%;padding:0 10px 22px;min-width:0}
 #formationTabs{display:flex;flex-wrap:nowrap;height:46px;min-height:46px;gap:6px;padding:4px 0;overflow:visible}
 #formationTabs>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
 #formationTabs button{flex:1 1 0;min-width:0;height:36px;min-height:36px;padding:0 6px;grid-column:auto}
 #formationTabs button strong{font-size:14px;letter-spacing:0}
 #tabs{display:flex;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:5px;height:48px;min-height:48px;max-width:100%;padding:4px 0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#526f88 transparent}
 #tabs button,#tabs button:nth-last-child(2),#tabs button:last-child{flex:0 0 auto;grid-column:auto;min-width:0;min-height:38px;height:38px;margin:0;padding:0 11px;border-radius:4px;font-size:13px;gap:6px}
 #tabs button:last-child{border:0;border-bottom:2px solid transparent}
 #tabs button.active:last-child{border-bottom-color:#b4dcff}
 #tabs button b{font-size:11px;padding:2px 4px}.team-tab-icon{width:13px;height:13px;margin-right:2px}
 #tabs .nav-separator{display:block;flex:0 0 auto;align-self:center;color:#638199;padding:0 3px;font-size:17px}
 #totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:9px 0 5px;align-items:stretch}
 #totals>.summary-label{display:none}
 #totals>.total{grid-column:span 1;min-width:0;height:36px;padding:3px 5px;justify-content:center;gap:6px;flex-wrap:nowrap;margin:0}
 #totals .role{width:24px;height:24px}#totals .role svg{width:21px;height:21px}#totals>.total b{font-size:19px}
 #totals>.mount-total,#totals>.overall,#totals>.disarray{grid-column:span 2;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;gap:6px;min-width:0;height:42px;margin:0;padding:5px 7px}
 #totals>.mount-total>span,#totals>.overall>span,#totals>.disarray>span{width:auto;font-size:11px;text-align:left;line-height:1.25}
 #totals>.disarray{height:46px}#totals>.disarray b{font-size:21px}#totals>.disarray small,#totals>.overall small{font-size:10px;white-space:nowrap}#totals>.disarray.alternative{gap:5px}#totals>.disarray.alternative span{max-width:90px}
 .toolbar{margin:10px 0 8px;gap:8px;min-height:36px}.toolbar h2{font-size:20px;letter-spacing:0}.team-title{gap:8px}.toolbar #configure{font-size:11px;min-height:32px;padding:5px 7px}.toolbar-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end}.toolbar-actions>span{font-size:12px}.admin-actions button{font-size:10px;padding:5px;min-height:30px}
 #roster{display:grid;grid-template-columns:1fr;gap:12px;min-width:0}
 #roster .row{height:auto!important;min-height:78px;grid-template-columns:24px 28px minmax(0,1.15fr) minmax(88px,1fr);grid-template-rows:44px 26px;gap:2px 4px;padding:3px 6px}
 #roster .row.head{height:30px!important;min-height:30px;grid-template-rows:24px;font-size:11px;padding:3px 6px}
 #roster .row.head>span:last-child{display:none}#roster .row.head>span:first-child{font-size:10px;white-space:nowrap}
 #roster .row .number{font-size:13px}#roster .row .role-button{height:44px;min-height:44px;padding:0;width:28px}#roster .row .role{width:26px;height:26px}
 #roster .row .weapon-button{min-width:0;padding:0;height:44px;gap:4px;overflow:hidden}#roster .row .weapon-button img{width:34px;height:34px;flex:0 0 34px}#roster .row .weapon-button span:not(.weapon-placeholder){font-size:13px!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#roster .row .weapon-button em{font-size:12px;flex-shrink:0}
 #roster .row input{font-size:16px;min-width:0;min-height:0;height:38px;margin:0;width:100%;padding:4px 5px}
 #roster .row input[data-field=note]{grid-column:3/-1;height:26px;min-height:26px;font-size:16px;padding:2px 5px;background:#ffffff03;border-color:#ffffff08}
 #roster .row input[data-field=note]:focus{background:#1b2e41;border-color:#7bb6df}
}
/* v18: native file selection and touch-safe dialogs. */
.native-file-picker{display:inline-block;position:relative;min-height:42px;max-width:100%;isolation:isolate}.native-file-picker>button{min-height:42px;pointer-events:none}.native-file-picker>input[type=file]{position:absolute;inset:0;z-index:2;opacity:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer;font-size:16px}.native-file-picker:focus-within{outline:2px solid #9bd6ff;outline-offset:3px;border-radius:6px}
.media-paste-input{min-height:42px;padding:11px 13px;margin-top:10px;border:1px dashed #527f9f;border-radius:8px;background:#11283b;outline:none;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px}.media-paste-input:empty:before{content:attr(data-placeholder);color:#93b1c9;pointer-events:none}.media-paste-input:focus{border-color:#a2ddff;box-shadow:0 0 0 2px #a1d8f333}.claim-loading{display:grid;place-items:center;min-height:180px;color:#afd9f3}.form-error,.dialog-toast.error{color:#f3a8ad}.dialog-toast{padding:12px;border:1px solid #6d98b8;background:#213d55;border-radius:8px;line-height:1.6}.dialog-toast.error{border-color:#a57279;background:#442c3a}
.guild-dialog-open{overflow:hidden}dialog.guild-dialog-fallback[open]{display:block!important;position:fixed!important;inset:4dvh auto auto 50%;transform:translateX(-50%);z-index:10000;width:min(960px,94vw);max-height:92dvh;overflow:auto;margin:0;box-shadow:0 0 0 100vmax #020914dd,0 20px 80px #0009}.guild-dialog-fallback form[method=dialog] button{touch-action:manipulation}
#claimDialog{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#claimDialog button{touch-action:manipulation}
#formationTabs>span.highlight-nav-divider{position:static;width:auto;height:auto;clip-path:none;overflow:visible;margin:0 3px;font-size:19px;color:#6e8da7;flex:0 0 auto}#highlightTab{border-color:#8fb6cc;background:linear-gradient(120deg,#254d6644,#57466a33)}#highlightTab.active{background:linear-gradient(120deg,#31617e,#5a4e72);border-color:#c6dff2}
/* Highlights: a horizontal media surface, framed like a guild's shared story reel. */
.highlights-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:27px 0 21px}.highlights-heading h2{font-size:34px;letter-spacing:.05em;margin:7px 0;color:#d8edfc}.highlights-heading p{margin:0;color:#99b5cc;font-size:14px}.highlights-heading>div:last-child{display:flex;gap:10px;align-items:center}.highlight-eyebrow{font-size:11px;letter-spacing:.2em;color:#8bbbd8;font-weight:800}.highlight-publish-button{background:linear-gradient(120deg,#2c688b,#4d5c8a);border:1px solid #8bbbd9;padding:12px 19px;font-weight:800;color:#effaff;box-shadow:0 4px 18px #2a638833}.highlight-publish-button:hover{background:#3b7297}.highlight-publish-button:disabled{opacity:.55}
.highlight-people{display:flex;gap:20px;padding:15px 4px 20px;overflow-x:auto;border-bottom:1px solid #46607955;scrollbar-width:thin;scrollbar-color:#597c98 transparent}.highlight-person{border:0;background:none!important;padding:0;display:flex;align-items:center;flex-direction:column;gap:9px;flex:0 0 78px;min-width:0}.highlight-person>span{display:grid;place-items:center;position:relative;width:64px;height:64px;border:3px solid #8ac6e2;border-radius:50%;background:radial-gradient(circle at 30% 10%,#49738b,#142b42 80%);box-shadow:0 0 0 3px #102334,0 0 0 5px #5d536c;font-size:20px;font-weight:900;color:#def3ff}.highlight-person.selected>span{border-color:#f4dfb5;box-shadow:0 0 0 4px #bda9d65c}.highlight-person small{position:absolute;right:-6px;bottom:-3px;background:#86bfdb;color:#0b2032;border:2px solid #112233;border-radius:50%;font-size:10px;min-width:22px;height:22px;display:grid;place-items:center}.highlight-person strong{width:86px;text-align:center;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.highlight-create>span{background:#193348;border-style:dashed;font-size:31px;box-shadow:none}.highlight-filters{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:20px 0}.highlight-filters button{border-radius:20px;padding:7px 15px;font-size:13px}.highlight-filters .selected{background:#315b76;border-color:#9ccee9}.highlight-filters>span{color:#c0d5e5;font-size:13px}.highlight-filters .highlight-format-hint{margin-left:auto;color:#8ca7bf;font-size:12px}
.highlight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding-bottom:30px}.highlight-card{border:1px solid #48678177;border-radius:15px;overflow:hidden;background:linear-gradient(145deg,#193044,#101f30);box-shadow:0 8px 25px #0002;min-width:0}.highlight-cover{position:relative;display:block;aspect-ratio:16/9;width:100%;padding:0;border:0;border-radius:0;overflow:hidden;background:#0b1928;isolation:isolate}.highlight-cover:after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#071524b0);pointer-events:none}.highlight-cover img{width:100%;height:100%;object-fit:contain;display:block}.highlight-video-art{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:15px;background:radial-gradient(ellipse at 45% 40%,#52769077,transparent 60%),linear-gradient(135deg,#1d4660,#35324c 60%,#142b3d);color:#93b4ce}.highlight-video-art:before{content:'✦';position:absolute;right:13%;top:8%;font-size:100px;opacity:.07;transform:rotate(20deg)}.highlight-play{display:grid;place-items:center;width:61px;height:61px;border:1px solid #c4e6fa88;border-radius:50%;padding-left:4px;background:#162e4666;color:#edf9ff;font-size:23px;box-shadow:0 0 35px #83c6ee22}.highlight-video-art>span:last-child{font-size:10px;letter-spacing:.3em}.highlight-expiry{position:absolute;top:12px;right:12px;background:#071524bf;border:1px solid #9bb7cd66;border-radius:18px;padding:5px 9px;font-size:11px;letter-spacing:.04em;font-variant-numeric:tabular-nums;z-index:1}.highlight-cover-label{position:absolute;bottom:13px;left:14px;font-size:12px;color:#d4e6f4;z-index:1}.highlight-card-info{padding:15px 17px 17px}.highlight-card-author{display:flex;align-items:center;gap:9px}.highlight-card-author>span{display:grid;place-items:center;width:29px;height:29px;background:#3b5d75;border-radius:50%;font-size:13px;color:#d8eefc}.highlight-card-author strong{font-size:15px}.highlight-card-author small{font-size:10px;color:#92b9d4}.highlight-card-author button{margin-left:auto;padding:0 6px;background:transparent;border:0;font-size:25px;min-width:36px;min-height:32px}.highlight-card-info p{font-size:14px;line-height:1.6;margin:12px 0 10px;min-height:22px;overflow-wrap:anywhere;white-space:pre-wrap}.highlight-card-info>small{font-size:11px;color:#839fb8}.highlight-empty{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;min-height:290px;border:1px dashed #3e607d;border-radius:16px;background:#18334a33;margin:25px 0;color:#9abbd3;padding:20px}.highlight-empty>span{font-size:50px;color:#abd5ee}.highlight-empty h3{font-size:22px;color:#d3e9f7}.highlight-empty p{font-size:14px;line-height:1.7}.highlight-more{text-align:center;margin-bottom:35px}
#highlightUploadDialog{width:min(760px,94vw);max-height:92dvh;overflow-y:auto;border:1px solid #729bb7;border-radius:18px;padding:24px;background:#11263a;color:#e3f0fa}#highlightUploadDialog::backdrop,#highlightViewer::backdrop{background:#030b15e8;backdrop-filter:blur(8px)}#highlightUploadDialog .dialog-heading h2{margin:4px 0;font-size:25px}.highlight-upload-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;aspect-ratio:16/9;background:radial-gradient(ellipse at 45% 15%,#436b8577,transparent 70%),#0b1b2b;border:1px solid #52718d66;border-radius:12px;overflow:hidden;margin:18px 0;color:#acc8df;min-width:0}.highlight-upload-preview>span{font-size:44px;color:#b0daef}.highlight-upload-preview>strong{font-size:21px}.highlight-upload-preview>small{font-size:12px}.highlight-upload-preview img,.highlight-upload-preview video{width:100%;height:100%;max-height:370px;object-fit:contain;display:block}.highlight-dropzone{justify-content:space-between;padding:15px;min-height:76px}.highlight-caption-label{display:block;margin:20px 0 9px;font-size:14px;color:#b5cfe3}#highlightCaption{width:100%;resize:vertical;background:#0c2032;border:1px solid #4b6e8d;border-radius:8px;padding:12px;color:#e2f0fa;font:inherit;box-sizing:border-box;font-size:16px}#highlightUploadMessage{font-size:13px;line-height:1.7;color:#e3c5a9;overflow-wrap:anywhere}#highlightUploadProgress{width:100%;accent-color:#8dcced;height:10px;margin-top:15px}#publishHighlight{width:100%;min-height:46px;margin-top:6px}#highlightUploadDialog .hint{font-size:12px;line-height:1.7}
#highlightViewer{width:min(1200px,96vw);max-height:96dvh;padding:15px;background:#07131f;border:1px solid #6a93b1;border-radius:15px;overflow:auto;color:#e6f3fc}.highlight-viewer-heading{display:flex;align-items:center;gap:15px;margin-bottom:13px}.highlight-viewer-heading>strong{font-size:18px}.highlight-viewer-heading>span{margin-left:auto;font-size:12px;color:#a8c7dc;font-variant-numeric:tabular-nums}.highlight-viewer-heading button{font-size:25px;padding:2px 10px;border:0;background:transparent;min-width:40px;min-height:40px}.highlight-view-progress{height:3px;border-radius:2px;background:#466078;margin-bottom:10px;overflow:hidden}.highlight-view-progress>i{display:block;width:0;height:100%;background:#b1def7;transition:width .25s linear}.highlight-stage{aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden;background:#000;border-radius:8px}.highlight-stage img,.highlight-stage video{width:100%;height:100%;max-height:70dvh;object-fit:contain}.highlight-viewer-footer{display:flex;align-items:center;gap:16px;margin-top:14px}.highlight-viewer-footer>span{flex:1;min-width:0;overflow-wrap:anywhere;white-space:pre-wrap;font-size:14px;line-height:1.6}.highlight-viewer-footer button{font-size:27px;min-width:42px;min-height:42px;padding:0}.highlight-viewer-footer button:disabled{opacity:.3}.highlight-viewer-tools{display:flex;align-items:center;gap:15px;margin-top:15px;color:#8daec6}.highlight-viewer-tools button{font-size:12px;min-height:36px}.highlight-viewer-tools small{font-size:12px}.highlight-viewer-tools a{margin-left:auto;font-size:12px;color:#96c5e3}
@media(min-width:2100px){.highlight-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.highlight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#formationTabs{overflow-x:auto;overflow-y:hidden}#formationTabs #highlightTab{min-width:91px;flex:1.15 0 auto;padding-inline:6px}#formationTabs #highlightTab strong{font-size:12px}#formationTabs>span.highlight-nav-divider{width:8px;min-width:8px;margin:0;font-size:14px}.highlights-heading{margin:20px 0;align-items:flex-start;gap:12px}.highlights-heading h2{font-size:27px}.highlights-heading p{font-size:12px;max-width:200px;line-height:1.6}.highlights-heading>div:last-child{flex-direction:column-reverse;gap:6px}.highlights-heading button{font-size:12px;padding:9px 12px;min-height:38px}.highlight-people{gap:13px;padding-top:9px}.highlight-person{flex-basis:66px}.highlight-person>span{width:56px;height:56px;font-size:17px}.highlight-person strong{width:72px;font-size:11px}.highlight-grid{gap:13px}.highlight-filters .highlight-format-hint{width:100%;margin-left:0;margin-top:4px;font-size:11px}.highlight-expiry{font-size:10px;top:8px;right:8px}.highlight-card-info{padding:12px}.highlight-card-author strong{font-size:13px}.highlight-card-info p{font-size:13px}.highlight-play{width:45px;height:45px;font-size:18px}.highlight-video-art{gap:7px}#highlightUploadDialog{padding:15px;max-height:94dvh}#highlightUploadDialog .highlight-dropzone{justify-content:center;text-align:center}.highlight-upload-preview>strong{font-size:18px}#highlightViewer{padding:10px}.highlight-stage img,.highlight-stage video{max-height:65dvh}.highlight-viewer-footer{gap:10px}.highlight-viewer-footer>span{font-size:13px}.highlight-viewer-heading>strong{font-size:16px}.highlight-eyebrow{font-size:9px;letter-spacing:.12em}.dialog-toast{font-size:13px}}
@media(max-width:500px){.highlight-grid{grid-template-columns:1fr}.highlight-cover{aspect-ratio:16/9}.highlight-card-info p{min-height:0}.highlight-cover .highlight-video-art{gap:13px}.highlight-play{width:55px;height:55px;font-size:22px}#formationTabs button strong{font-size:12px}}
#guildDialogBackdrop{position:fixed;inset:0;z-index:9999;background:#020914d9;touch-action:none}
/* vh fallbacks keep the compatibility modal reachable before dvh support. */
dialog.guild-dialog-fallback[open]{top:4vh;left:50%;right:auto;bottom:auto;max-height:92vh;max-height:92dvh}
#highlightUploadDialog,#claimDialog{max-height:92vh;max-height:92dvh}
#highlightViewer{max-height:96vh;max-height:96dvh}

/* guild-intelligence.css */
.guild-analysis,.intel-caller-heading{color:#d9e9f5}.intel-heading,.intel-caller-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:20px 0}.intel-heading h3,.intel-caller-heading h3{font-size:clamp(23px,2vw,32px);margin:0 0 8px}.intel-heading p,.intel-caller-heading p,.intel-note,.intel-status{color:#9db5c9;font-size:14px;line-height:1.7}.intel-note{margin:12px 0}.intel-head-number{display:flex;gap:12px;align-items:center;padding:12px 24px;border:1px solid #4b6c86;border-radius:12px;background:#142b40}.intel-head-number strong{font-size:38px;color:#9dd8f6}.intel-head-number span{color:#9eb4c9}.intel-status{padding:8px 13px;background:#14293c;border-left:3px solid #78b9dc}.intel-warning{color:#f1c47c}.intel-search-row,.caller-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0}.intel-search-row input{flex:1;min-width:180px}.intel-search-row label,.caller-filters label{display:flex;align-items:center;gap:10px}.intel-search-row button,.caller-actions button,#intelSync,#intelQuery,.caller-mark-dialog button{min-height:42px;padding:8px 15px;border-radius:8px;border:1px solid #4d728b;background:#19354a;color:#ccecff;font:inherit;cursor:pointer}.rival-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.rival-card{padding:20px;border:1px solid #344d65;border-radius:14px;background:linear-gradient(140deg,#19334a,#101f30);color:#c7dbea;text-align:left;cursor:pointer;font:inherit;transition:border-color .15s,background .15s}.rival-card:hover,.rival-card.selected{border-color:#8dd0ef;background:linear-gradient(140deg,#244964,#12293d)}.rival-card>div:first-child{display:flex;justify-content:space-between;gap:12px}.rival-card strong{font-size:19px;overflow-wrap:anywhere}.rival-card small{color:#9cb1c3}.rival-rate{display:flex;align-items:baseline;gap:12px;margin:17px 0 9px}.rival-rate>b{font-size:35px;color:#98d2ee}.rival-rate>b small{font-size:17px}.rival-rate>span{font-size:13px;color:#a8bbcc}.rival-rate-bar{height:5px;background:#3e2834;border-radius:4px;overflow:hidden}.rival-rate-bar i{height:100%;display:block;background:#8fd3ab}.rival-card p{display:flex;gap:18px;margin:13px 0}.rival-card-metrics{display:grid;grid-template-columns:35px repeat(3,minmax(0,1fr));gap:8px;font-size:12px;border-top:1px solid #365066;padding-top:12px}.fame-number{color:#efbd67}.rival-detail{margin-top:24px;border:1px solid #45637b;border-radius:16px;padding:24px;background:#0d1d2de0}.rival-versus{display:grid;grid-template-columns:1fr auto 1fr;gap:20px;text-align:center;align-items:center;padding:16px}.rival-versus>div{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.rival-versus>div>span:first-child{flex-basis:100%;font-size:23px;font-weight:850}.rival-versus strong{flex-basis:100%;color:#93b6cf}.rival-versus>b{font-size:22px;color:#718ea5}.intel-top-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.intel-top{padding:18px;border-radius:12px;background:#142c40}.intel-top h4{margin:0 0 12px}.intel-top>small{color:#91a8bd;font-size:12px}.intel-top-player{display:flex;gap:14px;padding:12px 0;border-top:1px solid #2b465c}.intel-top-player>div{min-width:0;flex:1}.intel-top-player strong{font-size:18px;margin-right:12px}.top-rank{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:#263d4d;color:#dda85e}.rank-0{color:#edcf81}.rank-1{color:#c9d9e4}.intel-weapon-images{display:flex;gap:5px;flex-wrap:wrap;margin:6px 0}.intel-weapon-images>span{position:relative}.intel-weapon-images img{width:48px;height:48px;object-fit:contain}.intel-weapon-images small{position:absolute;bottom:0;right:0;background:#081321;padding:1px 4px;font-size:11px;border-radius:4px}.intel-battle-list summary,.caller-records summary{cursor:pointer;padding:14px 0;color:#97ccec}.intel-battle-list button,.caller-records button{display:flex;align-items:center;gap:12px;flex-wrap:wrap;width:100%;padding:12px;text-align:left;border:0;border-top:1px solid #294357;background:#132a3b;color:#b8d0e4;font:inherit;cursor:pointer}.intel-battle-list time{margin-right:auto}.intel-result{padding:3px 9px;border-radius:5px}.result-win{background:#2a4c40;color:#8fd3ab}.result-loss{background:#4a2e3c;color:#f37d87}.result-draw{background:#354359;color:#bec9d6}.intel-eyebrow{font-size:11px;letter-spacing:3px;color:#7cb5d5}.caller-filters label{flex:1;min-width:200px}.caller-filters input[type=search]{flex:1;min-width:0}.caller-filters .caller-marked{flex:0 0 auto;min-width:unset}.caller-kind-tabs{display:flex;gap:9px;flex-wrap:wrap;padding:12px 0}.caller-kind-tabs button{display:flex;gap:9px;align-items:center;min-height:48px;padding:6px 13px;border:1px solid #3a536b;background:#142a3d;color:#b7cddd;border-radius:10px;font:inherit;cursor:pointer}.caller-kind-tabs img{width:40px;height:40px}.caller-kind-tabs button.selected{color:#edfbff;border-color:#87ccee;background:#264d67;box-shadow:inset 0 -3px #8ed5f4}.caller-list{display:grid;gap:12px;margin-top:18px}.caller-row{display:grid;grid-template-columns:44px minmax(0,1fr) 100px auto;align-items:center;gap:15px;background:linear-gradient(100deg,#19334a,#102235);border:1px solid #354f66;border-radius:13px;padding:18px}.caller-rank{font-size:25px;color:#89a5bd}.caller-person strong{font-size:21px;overflow-wrap:anywhere}.caller-person>small{display:block;color:#8da7bd;margin-top:4px}.caller-count{text-align:center}.caller-count b{display:block;font-size:28px;color:#a3d9f3}.caller-count span{font-size:12px;color:#a0b6c8}.caller-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.caller-badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;border:1px solid currentColor;border-radius:6px;padding:3px 7px;background:#07182766}.caller-badge svg{width:21px;height:23px;fill:currentColor;stroke:currentColor;stroke-width:1.6}.caller-badge .caller-bomb{width:19px;height:22px;fill:none}.crown-gold{color:#edca77}.crown-silver{color:#c8d8e4}.crown-bronze{color:#cd986c}.caller-records{grid-column:1/-1;border-top:1px solid #2c475d}.caller-record-weapons{display:flex}.caller-record-weapons img{width:42px;height:42px}.caller-mark-dialog{width:min(520px,calc(100vw - 30px));box-sizing:border-box;background:#12283b;color:#d6e8f6;border:1px solid #759bb7;border-radius:14px;padding:24px}.caller-mark-dialog::backdrop{background:#050d19cc}.caller-label-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.caller-label-options label{display:flex;align-items:center;gap:8px;border:1px solid #36566b;padding:12px;border-radius:8px;cursor:pointer;min-height:44px}.caller-label-options input{width:18px;height:18px}.caller-mark-dialog #callerMarkError{color:#f37d87}.caller-mark-dialog #saveCallerMark{width:100%;background:#294e66}.caller-label-options .caller-badge{border:0;background:transparent;padding:0}
@media(min-width:2100px){.rival-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.rival-card-metrics{font-size:15px}}
@media(max-width:1100px){.rival-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.intel-top-grid{gap:12px}.rival-detail{padding:16px}.rival-versus{padding:8px;gap:10px}}
@media(max-width:650px){.rival-grid,.intel-top-grid{grid-template-columns:1fr}.rival-card{padding:17px}.rival-card-metrics{font-size:12px}.rival-versus{grid-template-columns:1fr}.rival-versus>b{font-size:15px}.rival-versus>div>span:first-child{font-size:20px}.caller-row{grid-template-columns:28px minmax(0,1fr) 60px;gap:10px;padding:14px}.caller-rank{font-size:20px}.caller-person strong{font-size:18px}.caller-actions{grid-column:2/4}.caller-actions button{width:100%}.caller-filters label{min-width:100%;box-sizing:border-box}.caller-kind-tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:10px}.caller-kind-tabs button{flex:0 0 auto;font-size:13px}.caller-kind-tabs img{width:34px;height:34px}.intel-caller-heading{gap:8px}.intel-caller-heading .date-controls{width:100%}.caller-label-options{grid-template-columns:1fr}.intel-search-row label{flex:1}.intel-heading p{font-size:13px}.intel-battle-list button{font-size:12px}.intel-top-player strong{font-size:17px}.caller-records button{font-size:12px}.caller-records time{flex-basis:100%}}

.intel-weapon-caption{display:block;color:#8fa8bc;font-size:11px;margin-top:6px}
/* Caller discovery: guilds first, with equipment details only in the player preview. */
.caller-guild-search{display:flex;align-items:center;gap:16px;margin:22px 0 8px}.caller-guild-search input{flex:1;min-width:180px}.caller-guild-search>span{font-size:13px;color:#8da9bf}.caller-hover-hint{font-size:13px;color:#91b8d1;margin:8px 0 18px}.caller-guild-list{display:grid;gap:12px}.caller-guild-card{border:1px solid #35546c;border-radius:13px;background:#102235}.caller-guild-card.expanded{border-color:#77b7dc;background:#142d42}.caller-guild-toggle{display:grid;grid-template-columns:36px minmax(0,1fr) auto 24px;align-items:center;gap:17px;box-sizing:border-box;width:100%;padding:20px 23px;border:0;background:transparent;color:#d4e7f5;text-align:left;font:inherit;cursor:pointer;border-radius:12px}.caller-guild-toggle:hover,.caller-guild-toggle:focus-visible{background:#20445d;outline:2px solid #719fba;outline-offset:-2px}.caller-guild-toggle strong{font-size:20px;overflow-wrap:anywhere}.caller-guild-rank{font-size:21px;color:#7f9eb8}.caller-guild-battles{display:flex;align-items:baseline;gap:9px}.caller-guild-battles b{font-size:28px;color:#a8d9f1}.caller-guild-battles small{color:#9fb9cd;font-size:13px}.caller-guild-chevron{font-size:23px;color:#88afc9;transition:transform .15s}.expanded .caller-guild-chevron{transform:rotate(180deg)}.caller-guild-content{border-top:1px solid #385e78;padding:15px 23px 5px}.caller-player-controls{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.caller-player-controls>input{flex:1;min-width:160px}.caller-player-controls>label{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:13px;color:#a9c1d4}.caller-rank-head{display:grid;grid-template-columns:44px minmax(0,1fr) 100px 94px;gap:15px;padding:17px 18px 0;font-size:12px;color:#789bb6}.caller-guild-content .caller-list{margin-top:8px}.caller-guild-content .caller-row{grid-template-columns:44px minmax(0,1fr) 100px 94px;background:#0f2234;border:1px solid #29495f;padding:13px 18px}.caller-player-name{padding:7px 0;border:0;background:transparent;color:#dceefa;font:inherit;font-size:20px;font-weight:800;cursor:pointer;text-align:left;overflow-wrap:anywhere;text-decoration:underline;text-decoration-color:#496f8b;text-underline-offset:5px;min-height:44px}.caller-player-name:hover,.caller-player-name:focus-visible,.caller-player-name[aria-expanded=true]{color:#99d9ff;text-decoration-color:#99d9ff;outline:none}.caller-guild-content .caller-count b{font-size:26px}.caller-guild-content .caller-actions button{font-size:13px}.caller-guild-content .caller-tags:empty{display:none}
#callerWeaponPreview{position:fixed;z-index:1000;box-sizing:border-box;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;padding:19px;border-radius:13px;border:1px solid #7ca7c6;background:linear-gradient(145deg,#1b3b53,#0c1c2c);box-shadow:0 14px 50px #000a;color:#d5e9f7;font-family:inherit}#callerWeaponPreview[hidden]{display:none!important}#callerWeaponPreview .preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}#callerWeaponPreview .preview-heading strong{overflow-wrap:anywhere;font-size:21px}#callerWeaponPreview button{width:36px;min-height:36px;border:1px solid #4e7896;background:#142b3d;color:#dcefff;border-radius:7px;font-size:23px;cursor:pointer}#callerWeaponPreview>p{font-size:14px;color:#9dbed4}#callerWeaponPreview>p>b{font-size:24px;color:#b0def5}#callerWeaponPreview>small{display:block;line-height:1.6;color:#8faec3;font-size:12px;margin-top:13px}.caller-preview-weapons{display:grid;gap:7px}.caller-preview-weapons>div{display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px;background:#0b1c2c88;border-radius:8px}.caller-preview-weapons img{width:50px;height:50px;object-fit:contain}.caller-preview-weapons span{font-size:14px}.caller-preview-weapons b{font-size:16px;color:#a8d8f0}
@media(max-width:650px){.caller-guild-search{flex-direction:column;align-items:stretch;gap:7px}.caller-guild-toggle{grid-template-columns:23px minmax(0,1fr) auto 17px;padding:15px 13px;gap:10px}.caller-guild-toggle strong{font-size:17px}.caller-guild-battles{flex-direction:column;align-items:center;gap:0}.caller-guild-battles b{font-size:24px}.caller-guild-battles small{font-size:11px}.caller-guild-content{padding:12px 10px 0}.caller-rank-head{grid-template-columns:24px minmax(0,1fr) 55px;gap:8px;padding:15px 10px 0}.caller-rank-head>span:last-child{display:none}.caller-guild-content .caller-row{grid-template-columns:24px minmax(0,1fr) 55px;gap:8px;padding:10px}.caller-player-name{font-size:17px}.caller-guild-content .caller-actions{grid-column:2/4}.caller-guild-content .caller-count b{font-size:24px}.caller-player-controls{gap:8px}.caller-player-controls>label{font-size:12px}.caller-hover-hint{font-size:12px}#callerWeaponPreview{padding:15px}.caller-preview-weapons{gap:5px}}

.caller-guild-content.caller-readonly .caller-rank-head,.caller-guild-content.caller-readonly .caller-row{grid-template-columns:44px minmax(0,1fr) 100px}.caller-readonly .caller-rank-head>span:last-child,.caller-readonly .caller-actions{display:none}@media(max-width:650px){.caller-guild-content.caller-readonly .caller-rank-head,.caller-guild-content.caller-readonly .caller-row{grid-template-columns:24px minmax(0,1fr) 55px}}

.caller-symbol-badge img{width:30px;height:30px;object-fit:contain;filter:drop-shadow(0 2px 2px #0008)}.caller-mark-divider{border:0;border-top:1px solid #7892a466;margin:22px 0}.caller-marker-options label{gap:10px}.caller-marker-options .marker-occupied{opacity:.5}.caller-marker-options small{font-size:11px;overflow-wrap:anywhere}.caller-marker-options input:checked+.caller-symbol-badge{color:#fff}.caller-mark-dialog h3{margin-bottom:6px}.caller-marker-options{margin-bottom:18px}.caller-text-dialog{width:min(700px,94vw);box-sizing:border-box}.caller-text-dialog textarea{box-sizing:border-box;width:100%;min-height:260px;font-size:17px;line-height:1.8;background:#101c2a;color:#e6f0fa;padding:14px;border:1px solid #6086a0;border-radius:8px}.caller-text-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.caller-high-tier{display:inline-block;margin-left:8px;padding:3px 7px;border:1px solid #b589df;border-radius:5px;background:#69438255;font-size:12px;font-weight:800;color:#e6c3ff;white-space:nowrap}

/* responsive.css */
/* v24: caller cards and viewport-safe mobile controls. */
#totals .alternative-heading{display:flex;flex-direction:column;gap:2px;text-align:left;line-height:1.25}
#totals .alternative-heading small{display:block;font-size:10px;color:#91aeca;font-weight:600;white-space:normal}
#disarrayWithoutBoom{min-height:50px;height:auto}
.caller-controls-only{justify-content:flex-end;margin-top:12px}
.caller-player-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:18px 0}
.caller-player-card{display:flex;flex-direction:column;min-width:0;padding:14px 10px;border:1px solid #385a73;border-radius:12px;background:linear-gradient(155deg,#1b384d,#0d2032);text-align:center;transition:border-color .15s,background .15s}
.caller-player-card:focus-within,.caller-player-card:hover{border-color:#8cc7e9;background:linear-gradient(155deg,#24485f,#112a3e)}
.caller-card-top{display:flex;justify-content:space-between;align-items:center;padding:0 4px;color:#9ab6cb}
.caller-card-top .caller-rank{font-size:15px;color:#83a4bd}
.caller-card-count{font-size:12px}.caller-card-count b{font-size:22px;color:#b4e2fa}
.caller-card-person{display:flex;align-items:center;flex-direction:column;gap:10px;min-width:0;width:100%;padding:10px 0;border:0;background:transparent!important;cursor:pointer}
.caller-card-person strong{font-size:16px;overflow-wrap:anywhere;min-height:38px;display:grid;place-items:center;line-height:1.25}
.caller-card-person[aria-expanded=true]{color:#a9ddff}
.caller-avatar{position:relative;width:76px;height:76px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:radial-gradient(circle at 35% 20%,#4d7d99,#142b3e 75%);border:1px solid #6f9cb8;overflow:hidden;box-shadow:0 4px 20px #0004}
.caller-avatar>span{font-size:28px;color:#b8e0f5}.caller-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.caller-card-weapons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;min-height:98px;align-content:start}
.caller-card-weapons>span{position:relative;display:grid;place-items:center;min-width:0;background:#081b2b66;border-radius:6px;padding-bottom:7px}
.caller-card-weapons img{width:44px;height:44px;max-width:100%;object-fit:contain}
.caller-card-weapons b{position:absolute;right:2px;bottom:0;color:#bce5fb;font-size:11px;background:#081727e8;padding:1px 4px;border-radius:4px}
.caller-player-card .caller-tags{justify-content:center;min-height:0;margin-top:10px}.caller-player-card .caller-tags:empty{display:none}
.caller-player-card .caller-badge{font-size:10px;padding:3px 4px}.caller-player-card .caller-badge svg{width:17px;height:19px}
.caller-card-mark{margin-top:auto;min-height:36px;width:100%;font-size:12px;background:#1a394f;border-color:#52758e}
.caller-card-person{padding:6px 0;min-height:42px}.caller-card-person strong{min-height:26px}
.caller-card-weapons{min-height:54px;margin:4px 0 10px}
.caller-guild-toggle{grid-template-columns:36px minmax(0,1fr) auto auto 24px}
.caller-guild-candidates{display:flex;align-items:baseline;gap:7px;color:#b5d8ef;font-size:23px}.caller-guild-candidates small{font-size:12px;color:#93b4ca}
.ip-inferred{color:#a8cce5;font-size:12px}
.withdrawn-entry{border-color:#a26a84!important;background:#302333!important}
.withdrawn-entry>.death-meta{background:#422c3c!important}.withdrawal-notice{margin:12px;padding:14px;border:1px solid #a16b85;border-left:4px solid #da91ad;border-radius:8px;background:#4c2f3f55;color:#efbed0}
.withdrawal-notice>b{font-size:15px}.withdrawal-notice p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6;color:#e4c6d3}
.withdrawal-notice small{font-size:12px;color:#b99eae}.request-locked{color:#d2a5bb!important;background:#3a2937!important}
.withdraw-request:disabled{opacity:.5;cursor:not-allowed}.personal-controls label{display:grid;gap:7px}.personal-controls select{min-height:42px}
#withdrawDialog{width:min(560px,calc(100vw - 24px))}#withdrawReason{display:block;width:100%;font:inherit;font-size:16px;color:#e5eff9;background:#0b1d2c;border:1px solid #5d7b95;border-radius:7px;padding:12px;margin:10px 0;resize:vertical}
.withdraw-dialog-actions{display:flex;gap:10px;justify-content:flex-end}.withdraw-dialog-actions button{min-width:90px;min-height:44px}#submitWithdrawal{background:#654054;border-color:#be8aa3}#withdrawError{color:#f0a7b0;font-size:13px}
.caller-player-card:has(.caller-card-mark) .caller-tags{margin-bottom:10px}
.battle-detail-selectors{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:12px 0 16px}
.battle-detail-selectors label{display:grid;gap:6px;color:#9fb9ce;font-size:12px;flex:1;min-width:140px;max-width:290px}
.battle-detail-selectors select{width:100%;min-width:0;max-width:100%;min-height:44px;font-size:14px}
.mobile-battle-sort{display:none}
.battle-column-filters th{vertical-align:top;padding:6px 12px 12px;text-align:left}
.battle-column-filters label{display:grid;gap:5px;min-width:0;color:#9fb9ce;font-size:11px;font-weight:500}
#reports .battle-column-filters select{display:block;width:100%;min-width:0;max-width:100%;height:36px;min-height:36px;margin:0;padding:5px 6px;font-size:12px;box-sizing:border-box}
.battle-column-filters #detailRole{max-width:180px}
.battle-column-filters .ip-rule-label{font-size:10px;line-height:1.4}
.battle-player-table{table-layout:fixed}.battle-player-table th:first-child{width:15%}.battle-player-table th:nth-child(2){width:29%}.battle-player-table th:nth-child(3),.battle-player-table th:nth-child(4){width:13%}.battle-player-table th:nth-child(n+5){width:7.5%}.battle-player-table td{overflow-wrap:anywhere}
#highlightViewer{box-sizing:border-box;width:min(1200px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
#highlightViewer .highlight-stage{position:relative;width:100%;aspect-ratio:16/9}
#highlightViewer .highlight-stage>img,#highlightViewer .highlight-stage>video{display:block;width:100%;height:100%;max-height:none;object-fit:contain}
.highlight-playback-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;min-height:40px;margin-top:8px;font-size:13px;color:#a9cce3}
.highlight-playback-status button{min-height:40px}.highlight-playback-status[data-state=error]{color:#f0bd9c}
.highlight-viewer-heading>strong{min-width:0;overflow-wrap:anywhere}.highlight-viewer-heading>span{white-space:nowrap}
@media(max-width:1500px){.caller-player-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1150px){.caller-player-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:850px){.caller-player-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(hover:none),(pointer:coarse){
 #totals .total:hover .tooltip,#totals .total:focus .tooltip,#totals .total:focus-visible .tooltip{display:none!important}
 #totals .total.tip-pinned:not(.tip-dismissed) .tooltip{display:block!important}
}
@media(max-width:760px){
 html,body{max-width:100%;overflow-x:clip}
 main,main>section{min-width:0;max-width:100%}
 /* ID-specific desktop widths may remain, but can never exceed this cap. */
 dialog,dialog.guild-dialog-fallback[open]{box-sizing:border-box!important;min-width:0!important;max-width:calc(100vw - 20px)!important;max-height:calc(100vh - 24px)!important;max-height:calc(100dvh - 24px)!important;padding:14px!important;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
 dialog:not(.guild-dialog-fallback){margin:auto}
 dialog input,dialog select,dialog textarea{max-width:100%;min-width:0}
 .dialog-heading{position:sticky;top:-14px;z-index:3;background:#0f1d2f;padding:10px 0;gap:10px;margin-bottom:10px}
 dialog>form[method=dialog]:first-child{position:sticky;top:-14px;z-index:4;background:#0f1d2f}
 dialog>form[method=dialog]:first-child>.dialog-heading{position:static}
 #highlightViewer>form[method=dialog]:first-child{background:#07131f}
 .dialog-heading h2{font-size:20px!important;min-width:0;overflow-wrap:anywhere}
 .dialog-heading button{flex:0 0 44px;min-height:44px}
 .pagination{flex-wrap:wrap;gap:8px;font-size:12px;max-width:100%}.pagination>span{overflow-wrap:anywhere;text-align:center}
 #rankingDialog,#disarrayDialog{width:calc(100vw - 20px)!important}
 #rankingDialog #rankSearch{box-sizing:border-box;min-width:0;width:100%}
 #rankResults{max-height:calc(100dvh - 250px);overflow-y:auto;overflow-x:hidden}
 #rankResults .rank-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:8px;width:100%;font-size:14px;padding:12px 2px}
 #rankResults .rank-row strong{min-width:0;white-space:normal;overflow-wrap:anywhere}
 #rankResults .rank-row b{font-size:13px}#rankResults .rank-row small{width:auto;grid-column:3}
 #disarrayContent{min-width:0;overflow-wrap:anywhere}
 #disarrayContent .formula{display:grid;grid-template-columns:1fr;gap:7px;padding:12px}
 #disarrayContent .formula>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;text-align:left;gap:5px 10px;padding:9px;background:#102338;border-radius:6px;font-size:13px}
 #disarrayContent .formula b{margin:0;font-size:32px;grid-column:2;grid-row:1/3}
 #disarrayContent .formula small{grid-column:1;font-size:11px}
 #disarrayContent .formula>span{text-align:center;color:#8caec7}
 #disarrayContent details,#disarrayContent p{white-space:normal;overflow-wrap:anywhere}
 #totals .total .tooltip{box-sizing:border-box;position:fixed;z-index:200;top:auto;bottom:calc(16px + env(safe-area-inset-bottom,0px));left:12px;width:calc(100vw - 24px);max-height:35dvh;overflow-y:auto;font-size:13px;padding:12px;border-radius:10px}
 #totals .alternative-heading{text-align:center}#totals .alternative-heading small{font-size:10px}
 #tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:visible!important;height:auto;gap:3px}
 #tabs button{min-width:0;min-height:44px;font-size:12px;padding:7px 3px;gap:4px;justify-content:center;white-space:normal}
 #tabs button b{white-space:nowrap;font-size:10px}#tabs .nav-separator{display:none}
 #tabs button:last-child{grid-column:auto!important;margin-left:0}
 .battle-detail-selectors{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .battle-detail-selectors label{min-width:0;max-width:none}.battle-detail-selectors label:first-child{grid-column:1/-1}
 .battle-detail-selectors label:last-child{grid-column:1/-1}
 .battle-detail-selectors select{font-size:16px}
 .mobile-battle-sort{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
 .mobile-battle-sort button{flex:1;min-height:40px;font-size:12px;padding:7px 9px}
 .mobile-battle-sort button[aria-pressed=true]{background:#294e69;border-color:#92c6e5;color:#e4f6ff}
 .report-table-wrap:has(.battle-player-table){overflow:visible;background:transparent;border:0}
 #reports .battle-player-table{display:block;table-layout:auto;min-width:0!important;width:100%!important}
 #reports .battle-player-table thead{display:block;margin-bottom:12px}
 #reports .battle-player-table thead>tr:first-child{display:none}
 #reports .battle-player-table thead tr.battle-column-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #37536b;border-radius:10px;background:#13283a}
 #reports .battle-player-table .battle-column-filters th{display:block;width:auto;min-width:0;padding:0;border:0}
 #reports .battle-player-table .battle-column-filters th.filter-spacer{display:none}
 #reports .battle-column-filters select{height:44px;min-height:44px;font-size:16px}
 #reports .battle-column-filters #detailRole{max-width:100%}
 #reports .battle-player-table tbody{display:grid;gap:12px;width:100%}
 #reports .battle-player-table tr{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;align-items:center;width:100%;padding:13px 12px;border:1px solid #37536b;border-left:3px solid var(--guild-tint,#567690);border-radius:10px;background:linear-gradient(120deg,#172e43,#101f30)}
 #reports .battle-player-table td{display:block;padding:0;border:0!important;min-width:0;overflow-wrap:anywhere}
 #reports .battle-player-table td:first-child{grid-column:1/4;font-size:16px}
 #reports .battle-player-table td.battle-weapons{grid-column:4/7;grid-row:1;min-width:0;max-width:none}
 #reports .battle-player-table .death-weapon-list{display:flex;flex-wrap:wrap;gap:3px;justify-content:flex-end;max-width:100%}
 #reports .battle-player-table .battle-weapons img{width:36px;height:36px}
 #reports .battle-player-table td:nth-child(3),#reports .battle-player-table td:nth-child(4){grid-column:span 3;font-size:12px;line-height:1.5}
 #reports .battle-player-table td:nth-child(5){grid-column:span 6;font-size:13px}
 #reports .battle-player-table td:nth-child(n+6){grid-column:span 2;font-size:21px;font-weight:800;padding-top:8px;border-top:1px solid #344c61!important}
 #reports .battle-player-table td[data-label]::before{content:attr(data-label);display:block;color:#90aabe;font-size:10px;font-weight:600;margin-bottom:3px}
 #reports .battle-player-table td:nth-child(5)::before{display:inline;margin-right:8px}
 .battle-summaries{display:grid;grid-template-columns:1fr;gap:12px}.summary-panel{min-width:0;overflow-x:auto}
 .summary-panel .report-table{min-width:0!important;font-size:11px}.summary-panel .report-table td,.summary-panel .report-table th{padding:8px 5px}
 .battle-tabs{gap:6px}.battle-tabs button{min-width:0;font-size:12px;padding:8px 9px}
 .intel-caller-heading .date-controls{min-width:0;max-width:100%;margin:0}.caller-guild-content{min-width:0}
 .caller-guild-toggle{grid-template-columns:20px minmax(0,1fr) auto auto 15px;gap:7px}
 .caller-guild-candidates{flex-direction:column;align-items:center;gap:0;font-size:21px}.caller-guild-candidates small{font-size:10px}
}
@media(max-width:540px){
 .caller-player-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .caller-player-card{padding:12px 8px}.caller-card-person strong{font-size:15px}.caller-card-top{padding:0}
 .caller-avatar{width:64px;height:64px}.caller-card-weapons img{width:40px;height:40px}
 .caller-guild-content .pagination{gap:7px}.caller-controls-only .date-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
 .caller-controls-only .date-controls label{min-width:0}.caller-controls-only .date-controls input{width:100%;font-size:16px}
 #highlightViewer .highlight-viewer-footer{margin-top:8px}.highlight-viewer-tools{margin-top:8px}
 .highlight-viewer-heading{gap:8px}.highlight-viewer-heading>strong{font-size:15px}.highlight-viewer-heading>span{font-size:11px}
}
@media(max-height:600px) and (orientation:landscape){
 #highlightViewer{width:min(calc(100vw - 24px),calc((100dvh - 130px)*1.7778))!important;padding:8px!important;max-height:calc(100dvh - 12px)!important}
 #highlightViewer .highlight-viewer-heading{margin-bottom:3px}#highlightViewer .highlight-view-progress{margin-bottom:4px}
 #highlightViewer .highlight-viewer-heading button{min-height:30px;height:30px}
 #highlightViewer .highlight-viewer-footer{margin-top:5px;gap:8px}#highlightViewer .highlight-viewer-footer button{min-height:30px;font-size:22px}
 #highlightViewer .highlight-viewer-tools{margin-top:5px;gap:10px}#highlightViewer .highlight-viewer-tools button{min-height:30px}
 #highlightViewer .highlight-playback-status{min-height:30px;margin-top:4px}
}

/* combat-preview.css */
.combat-count{color:inherit!important;font:inherit!important;font-weight:800!important;background:transparent!important;border:0!important;border-bottom:1px dotted currentColor!important;border-radius:0!important;padding:8px 10px!important;min-width:40px;min-height:40px;cursor:pointer}
.combat-count:hover,.combat-count:focus-visible{background:#ffffff12!important;outline:1px solid currentColor}
.combat-detail-trigger{color:#efc793!important;border-color:#a9774c!important;background:#372721!important;cursor:pointer}
#combatPreview{position:fixed;z-index:11000;width:min(800px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;box-sizing:border-box;border:1px solid #8c6a50;border-radius:16px;background:#1c171c;color:#eee4dc;box-shadow:0 18px 80px #000c;padding:0 16px 16px;text-align:left;font-size:14px;touch-action:pan-y}
#combatPreview[hidden]{display:none!important}
#combatPreview .combat-preview-heading{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;background:#1c171c;border-bottom:1px solid #70543e;margin-bottom:12px}
#combatPreview .combat-preview-heading>div{display:flex;flex-direction:column;gap:3px;min-width:0}
#combatPreview .combat-preview-heading strong{font-size:17px;overflow-wrap:anywhere}
#combatPreview .combat-preview-heading small{color:#b79f8d;font-size:11px}
#combatPreview button[data-close-combat]{min-width:42px;min-height:42px;font-size:26px;flex-shrink:0;background:#33272b;border:1px solid #70543e;border-radius:8px;color:#eee4dc;cursor:pointer}
.combat-event-card{border:1px solid #70543e;border-radius:12px;background:linear-gradient(135deg,#3b302a,#282127);margin:12px 0;overflow:hidden}
.combat-event-card>header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;height:auto;min-height:0;max-height:none;padding:14px 16px;background:#d7b58b13;box-shadow:none;font-size:16px;font-weight:800;line-height:1.45;color:#f0dcc4}
.combat-event-card>header>time{font-size:clamp(17px,2.4vw,22px);font-variant-numeric:tabular-nums;white-space:nowrap}
.combat-duel{display:grid;grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr);padding:14px 12px;gap:6px}
.combat-person{display:flex;flex-direction:column;align-items:center;min-width:0;gap:5px;padding:10px 8px;background:#ead1a70b;border:1px solid #d6b68e29;border-radius:8px}
.combat-person-label{font-size:11px;color:#bdac9d}.combat-person>strong{font-size:18px;text-align:center;overflow-wrap:anywhere;line-height:1.3}.combat-guild{font-size:12px;color:#c6ac8c;overflow-wrap:anywhere;text-align:center}
.combat-killer>.combat-person-label{color:#79b8ed}.combat-victim>.combat-person-label{color:#e49b9f}.combat-victim{background:#b3b8c013;border-color:#c4c8cf30}.combat-victim>.combat-guild,.combat-victim>.combat-person-label{color:#c7c1c5}.combat-victim .combat-equipment img{filter:grayscale(.7);opacity:.78}.combat-victim .combat-slot>b{color:#c4c8cf}
.combat-equipment{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,auto);gap:7px;width:100%;max-width:285px;margin-top:10px;align-items:start}.combat-gear-position{min-width:0}.combat-gear-position .combat-slot>small{font-size:10px}.combat-gear-position .combat-slot img{max-width:76px}.slot-Head{grid-area:1/2}.slot-Cape{grid-area:1/3}.slot-MainHand{grid-area:2/1}.slot-Armor{grid-area:2/2}.slot-OffHand{grid-area:2/3}.slot-Potion{grid-area:3/1}.slot-Shoes{grid-area:3/2}.slot-Food{grid-area:3/3}.slot-Mount{grid-area:4/2}.slot-Bag{grid-area:1/1}
.combat-inventory{padding:12px 16px 16px;border-top:1px solid #c4bca52b;background:#10101530}.combat-inventory h4{font-size:13px;text-align:center;color:#bec1c9;margin:0 0 12px}.combat-inventory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:8px}.combat-loot-item{position:relative;min-width:0}.combat-loot-item .combat-slot{padding:5px}.combat-loot-item>span{position:absolute;right:4px;bottom:4px;background:#100e11e8;border:1px solid #b4a28c77;border-radius:4px;padding:2px 4px;color:#eee6de;font-size:12px;font-weight:800}.combat-loot-item .combat-slot>small:empty{display:none}
.combat-versus{align-self:center;justify-self:center;color:#e5bb80;font-size:25px}
.combat-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:5px;margin-top:8px}
.combat-slot{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;background:#0d0b1038;padding:4px 2px;border-radius:5px}.combat-slot>small{font-size:10px;color:#c1b5ab}.combat-slot img{width:100%;max-width:74px;height:auto;aspect-ratio:1;object-fit:contain}.combat-slot>b{font-size:11px;color:#e8c591}.combat-slot-empty{display:grid;place-items:center;min-height:52px;color:#ad9f95}.combat-offhand{width:52px;align-self:flex-start;margin-top:2px}
.combat-event-card>footer{display:flex;justify-content:space-between;gap:12px;padding:9px 14px;background:#0a080c44;font-size:11px;color:#aa9b8d}.combat-event-card>footer .fame-number{color:#efbd67}
.combat-list-status,.combat-loading{color:#bdac9d;font-size:12px;padding:9px 0}.combat-more{display:block;width:100%;min-height:44px;padding:10px 15px;color:#f1cf9d;background:#463227;border:1px solid #96704c;border-radius:8px;cursor:pointer}
.combat-event-row{border:1px solid #70543e;border-radius:9px;padding:9px 11px;margin:8px 0;background:#e5bb8010}.combat-event-row>time{display:block;font-size:10px;color:#bca896;margin-bottom:6px}.combat-event-row>div{display:grid;grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);align-items:center;gap:8px}.combat-row-person{display:flex;align-items:center;gap:8px;min-width:0}.combat-row-person>img{width:52px;height:52px;object-fit:contain;flex-shrink:0}.combat-row-person>div{display:flex;flex-direction:column;gap:4px;min-width:0}.combat-row-person strong{font-size:14px;overflow-wrap:anywhere}.combat-row-person small{font-size:11px;color:#bdac9d;overflow-wrap:anywhere}.combat-row-person .combat-weapon-name{font-size:10px;color:#dbc09f}.combat-row-action{text-align:center;font-size:11px}.combat-row-empty{display:grid;place-items:center;width:52px;height:52px;background:#0003;color:#bdac9d;flex-shrink:0}
@media(max-width:500px){.combat-event-row{padding:8px}.combat-event-row>div{grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr);gap:4px}.combat-row-person{align-items:flex-start;gap:5px}.combat-row-person>img,.combat-row-empty{width:36px;height:36px}.combat-row-person strong{font-size:12px}.combat-row-person small{font-size:10px}.combat-row-action{font-size:10px}}
@media(max-width:600px){#combatPreview{padding:0 10px 10px;border-radius:12px}#combatPreview .combat-preview-heading strong{font-size:15px}.combat-duel{padding:8px 6px;gap:3px;grid-template-columns:minmax(0,1fr) 19px minmax(0,1fr)}.combat-person{padding:8px 5px}.combat-person>strong{font-size:14px}.combat-guild{font-size:10px}.combat-slots{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.combat-slots img{max-width:66px}.combat-event-card>header{padding:10px;gap:6px 10px}.combat-location{width:100%;margin-left:0}.combat-versus{font-size:19px}.combat-event-card>footer{padding:8px;font-size:10px}}

/* lottery.css */
#lottery{padding:22px 0 32px}.lottery-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.lottery-heading h2{margin:5px 0;font-size:32px;color:#f4dbad}.lottery-heading p{margin:0;color:#bda990}.lottery-eyebrow{font-size:10px;letter-spacing:3px;color:#b69568}.lottery-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.lottery-stage{position:relative;overflow:hidden;border:1px solid #a78351;border-radius:18px;background:#d9bc87;box-shadow:0 14px 60px #0005;isolation:isolate}.lottery-stage canvas{display:block;width:100%;height:auto;aspect-ratio:720/625}.lottery-score{position:absolute;z-index:1;left:16px;right:16px;top:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border:1px solid #d4b477;border-radius:12px;background:#332c20e8;color:#fbe7be;font-size:16px;pointer-events:none}.lottery-score b{font-size:26px}.lottery-caption{position:absolute;bottom:0;left:0;right:0;padding:12px 16px;text-align:center;background:#322b24eb;color:#f4dfb9;font-size:13px}.lottery-panel{padding:18px;border:1px solid #725542;border-radius:14px;background:#211b20;display:flex;flex-direction:column;gap:13px}.lottery-panel h3{margin:0;color:#e7c698}.lottery-panel>label{display:flex;flex-direction:column;gap:7px;color:#cab497;font-size:13px}.lottery-panel select{width:100%;min-height:42px}.lottery-teams{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:13px;color:#d4c1ae}.lottery-teams label{display:flex;align-items:center;gap:6px;min-height:28px}.lottery-teams input{accent-color:#d6a558}.lottery-panel button{min-height:43px}.lottery-source-note{line-height:1.6;color:#b7a38c}.lottery-panel .lottery-start{background:#a77132;color:#fff1d3;border-color:#e3b268;font-size:19px;font-weight:900}.lottery-panel .lottery-start:disabled{opacity:.55}.sound-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 0;border-block:1px solid #65503c}.sound-controls label,.sound-controls small{grid-column:1/-1;color:#b7a58e;font-size:11px}.sound-controls label{display:flex;align-items:center;gap:10px}.sound-controls input{width:100%;accent-color:#e4ba75}.lottery-name-heading{display:flex;justify-content:space-between;font-size:12px;color:#d4bc94}.lottery-name-heading>span{color:#9c8b7a}.lottery-names{display:flex;flex-wrap:wrap;gap:6px;max-height:280px;overflow:auto}.lottery-names>span{padding:5px 8px;border:1px solid #6d5940;border-radius:5px;background:#d0b18a12;color:#f3dfbf;font-size:11px}.lottery-names>span.eliminated{opacity:.4;text-decoration:line-through;background:#111}.lottery-winner{position:absolute;z-index:2;inset:30% 12% auto;padding:30px 18px;border:2px solid #eac986;border-radius:18px;text-align:center;color:#f9e6b4;background:#2c2317f5;box-shadow:0 0 90px #e2bd6e66}.lottery-winner span{display:block;font-size:15px;letter-spacing:6px}.lottery-winner strong{display:block;font-size:clamp(24px,4vw,48px);margin:12px 0;overflow-wrap:anywhere}.lottery-winner small{color:#cbb48c}.lottery-stage:fullscreen,.lottery-stage.lottery-expanded{display:grid;place-items:center;background:#171414;border:0;border-radius:0}.lottery-stage:fullscreen canvas,.lottery-expanded canvas{width:auto;max-width:100vw;max-height:100dvh;height:100dvh;object-fit:contain;aspect-ratio:720/625}.lottery-expanded{position:fixed;inset:0;z-index:12000}.lottery-expanded:after{content:'Esc';position:absolute;right:12px;bottom:46px;color:#fff8;font-size:12px}.formation-tabs [data-lottery]{border-color:#b59258;color:#e6c98d}.formation-tabs [data-lottery].active{background:#71502a;border-color:#e2bf77;color:#fff1cc}
.lottery-close{display:none;position:absolute;z-index:4;right:12px;top:72px;width:44px;height:44px;font-size:26px;background:#251c16dd;color:#fff1d0;border:1px solid #d4b477}.lottery-expanded .lottery-close,.lottery-stage:fullscreen .lottery-close{display:block}
.colossus-log:empty{display:none}.colossus-log{margin:14px 0;padding:12px 18px;min-height:80px;background:#211a14;border:1px solid #876642;border-radius:12px;color:#e9d1a5;line-height:1.8;font-size:14px}.colossus-log>div:first-child{color:#ffe5a4;font-weight:800}.lottery-winner{background:#241b11fa;max-height:60%;overflow:auto;box-shadow:0 0 0 999px #090b0a55,0 0 70px #e2bd6e55}.lottery-winner strong{font-size:clamp(22px,3vw,40px)}
.lottery-games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;max-width:1100px;margin:auto}.lottery-games button{display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px;background:#211f21;border:1px solid #a48352;border-radius:18px;color:#f3dfb9;transition:transform .2s,border-color .2s}.lottery-games button:hover{transform:translateY(-4px);border-color:#ffe2a1}.lottery-games img{height:clamp(150px,25vh,260px);width:100%;object-fit:contain;border-radius:12px}.lottery-games strong{font-size:26px}.lottery-games span{font-size:14px;color:#bca88e}.lottery-heading{flex-wrap:wrap}.lottery-heading>div{flex:1}.lottery-stage{height:var(--scene-height,60dvh);display:grid;place-items:center;background:#171815}.lottery-stage canvas{width:100%;height:100%;object-fit:contain;max-height:var(--scene-height,60dvh)}.lottery-panel{max-height:var(--scene-height,75dvh);overflow:auto}.lottery-panel input[type=number]{width:100%;min-height:42px}.lottery-panel .lottery-exclude{flex-direction:row;align-items:center}.lottery-history{display:grid;grid-template-columns:70px 90px 1fr;gap:10px;padding:14px;border-bottom:1px solid #6c5745;color:#c7b59d}.lottery-history strong{grid-column:2/-1;color:#f6d797}.lottery-history time{font-size:12px}.gather-leaders:empty,.gather-events:empty{display:none}.gather-leaders>div{display:flex;gap:12px;padding:8px;border-bottom:1px solid #5d4c3b}.gather-leaders span{flex:1;overflow-wrap:anywhere}.gather-events{margin:16px 0;padding:14px 18px;background:#1f2921;border:1px solid #61774a;border-radius:10px;min-height:100px;color:#dce6be;line-height:1.8;font-size:14px}.gather-events time{color:#e2c784;font-weight:800}#lotteryManual{width:min(560px,calc(100vw - 24px));max-height:85dvh;overflow:auto}#lotteryManual label{display:flex;flex-direction:column;gap:8px;margin:14px 0}#lotteryManual input,#lotteryManual textarea{width:100%;box-sizing:border-box}#lotteryManual textarea{resize:vertical;min-height:150px}#lotteryManual [data-member-results]{display:flex;flex-wrap:wrap;gap:6px;max-height:180px;overflow:auto}#lotteryManual .selected{background:#486b4c;border-color:#8edca1}.lottery-stage:fullscreen,.lottery-stage.lottery-expanded{height:100dvh}.lottery-stage:fullscreen canvas,.lottery-expanded canvas{max-height:100dvh}.lottery-panel .lottery-names{min-height:30px;flex-shrink:0}.lottery-panel .sound-controls{flex-shrink:0}
@media(max-width:600px){.lottery-games{grid-template-columns:1fr}.lottery-games button{padding:16px}.lottery-games img{height:170px}.lottery-history{grid-template-columns:55px 75px 1fr;font-size:12px}.lottery-heading h2{font-size:22px}.lottery-panel{max-height:none}.lottery-stage{min-height:280px}.lottery-name-heading,.gather-leaders,[data-name-search],.lottery-exclude{grid-column:1/-1}}
@media(max-width:900px){.lottery-layout{grid-template-columns:minmax(0,1fr)}.lottery-panel{display:grid;grid-template-columns:1fr 1fr}.lottery-panel h3,.lottery-teams,.lottery-source-note,.sound-controls,.lottery-name-heading,.lottery-names{grid-column:1/-1}.lottery-names{max-height:160px}.lottery-heading h2{font-size:26px}.lottery-score{top:8px;left:8px;right:8px;padding:6px 10px;font-size:12px}.lottery-score b{font-size:20px}.lottery-caption{font-size:11px;padding:8px}.lottery-winner{padding:20px 12px}.formation-tabs{overflow-x:auto}.formation-tabs [data-lottery]{min-width:110px}}

/* lottery-layout44.css */
/* The scene is unobstructed; status, podium and event feed share the right column. */
#lottery .lottery-layout{grid-template-columns:minmax(0,1fr) var(--side-width,330px);align-items:stretch;gap:18px;margin-inline:auto}
#lottery .lottery-stage{height:var(--scene-height);min-height:0;aspect-ratio:var(--scene-ratio,1.77778);border-radius:16px;background:#171815}
#lottery .lottery-stage canvas{width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain}
#lottery .lottery-side{height:var(--scene-height);min-height:0;display:flex;flex-direction:column;gap:10px;overflow:auto;scrollbar-width:thin;padding-right:3px}
#lottery .lottery-side section,#lottery .lottery-roster-card{border:1px solid #81653d;border-radius:12px;background:linear-gradient(135deg,#252017,#13181a);padding:13px 16px;margin:0;box-sizing:border-box}
#lottery .lottery-side h3{font-size:14px;color:#d7b878;margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid #7f65334d}
#lottery .lottery-side .lottery-score{position:static;display:grid;grid-template-columns:1fr auto;gap:4px 10px;pointer-events:auto;flex-shrink:0}
#lottery .lottery-score>span{color:#e9d3a6;font-size:14px;font-weight:800}.lottery-side .lottery-score>b{grid-row:1/3;grid-column:2;font-size:clamp(27px,2.3vw,40px);line-height:1.1;color:#ffe3a2}.lottery-score>small{color:#9c9584;font-size:12px}
#lottery .lottery-wave{flex-shrink:0}#lottery .lottery-caption{position:static;background:none;padding:0;text-align:left;font-size:15px;line-height:1.5;font-weight:800;color:#ffe1a2}
#lottery .lottery-events-card{flex:1 0 130px;min-height:120px;overflow:hidden;display:flex;flex-direction:column}
#lottery .colossus-log,#lottery .gather-events{padding:0;margin:0;background:none;border:0;min-height:0;overflow:auto;font-size:12px;line-height:1.55;scrollbar-width:thin}
#lottery .colossus-log>div,#lottery .gather-events>div{display:flex;align-items:flex-start;gap:9px;border-bottom:1px solid #7c6b442e;padding:7px 0;font-weight:500;color:#d7d0bd}
#lottery .colossus-log>div:last-child,#lottery .gather-events>div:last-child{border:0;color:#ffe4ab}
.lottery-side time{font-variant-numeric:tabular-nums;color:#c4a86d;white-space:nowrap;flex-shrink:0;font-size:11px}
#lottery .gather-leaders{flex-shrink:0;background:linear-gradient(135deg,#302719,#161d1b)}#lottery .gather-leaders:empty{display:none}
#lottery .gather-rank{position:relative;display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:4px 8px;padding:8px 0;border-color:#80693d44;align-items:center}
#lottery .gather-rank>b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#826b2e;color:#fff1bb;font-size:14px}
#lottery .gather-rank.rank-2>b{background:#5a6670;color:#e7edf1}#lottery .gather-rank.rank-3>b{background:#805738;color:#f5d6b5}
#lottery .gather-rank>span{font-size:14px;line-height:1.2;font-weight:800;overflow-wrap:anywhere;color:#e9e2d0}
#lottery .gather-rank>strong{font-size:23px;color:#ffdc88;font-variant-numeric:tabular-nums}#lottery .gather-rank>strong small{font-size:10px;margin-left:4px;color:#bcae88}
#lottery .gather-rank>em{grid-column:2/-1;font-size:10px;color:#a8b8a1;font-style:normal}#lottery .rank-1{background:#d9b3590c;border-radius:6px}
#lottery .lottery-roster-card{flex-shrink:0;padding:12px 14px}.lottery-roster-card summary{display:flex;justify-content:space-between;gap:8px;cursor:pointer;color:#dfc996;font-size:12px}.lottery-roster-card summary b{font-size:11px;color:#a9a48b}.lottery-roster-card input{width:100%;min-width:0;box-sizing:border-box;margin:10px 0;font-size:12px}.lottery-roster-card .lottery-names{max-height:120px;min-height:0}
#lottery .lottery-setup{margin:16px auto;max-width:1200px;border:1px solid #665039;border-radius:12px;background:#1b1919;overflow:hidden}.lottery-setup>summary{padding:14px 18px;cursor:pointer;color:#e4c58f;font-size:14px;font-weight:800;list-style-position:inside}.lottery-setup[open]>summary{border-bottom:1px solid #665039}
#lottery .lottery-setup .lottery-panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px;border:0;max-height:none;overflow:visible;border-radius:0;background:none;align-items:end}
#lottery .lottery-panel>label{font-size:12px}.lottery-panel .lottery-teams{grid-column:span 2;align-self:center}.lottery-panel .lottery-source-note{grid-column:span 2}.lottery-panel .sound-controls{grid-column:span 2;margin:0;padding:0;border:0}.lottery-panel .lottery-start{align-self:stretch}.lottery-panel .lottery-exclude{align-self:center;flex-direction:row;align-items:center}
#lottery .lottery-stage:fullscreen,#lottery .lottery-stage.lottery-expanded{height:100dvh;aspect-ratio:auto;min-height:0}
#lottery .lottery-stage:fullscreen canvas,#lottery .lottery-expanded canvas{height:100dvh;width:100vw;max-height:100dvh;object-fit:contain}
@media(max-width:959px){#lottery .lottery-layout{grid-template-columns:minmax(0,1fr);max-width:100%!important}#lottery .lottery-stage{width:100%;height:auto;aspect-ratio:var(--scene-ratio)}#lottery .lottery-side{height:auto;overflow:visible;display:grid;grid-template-columns:1fr 1fr;padding:0;gap:10px}#lottery .lottery-events-card,#lottery .gather-leaders,#lottery .lottery-roster-card{grid-column:1/-1}.lottery-side .lottery-events-card{max-height:230px}#lottery .lottery-setup .lottery-panel{grid-template-columns:1fr 1fr}.lottery-panel .lottery-source-note,.lottery-panel .sound-controls{grid-column:1/-1}#lottery .lottery-side .lottery-score{padding:12px}.lottery-side .lottery-score>b{font-size:28px}.lottery-side .lottery-wave{padding:12px}#lottery .lottery-caption{font-size:13px}}
@media(prefers-reduced-motion:reduce){#lottery *{scroll-behavior:auto}}

/* adventure48.css */
#lottery .lottery-games{grid-template-columns:repeat(2,minmax(0,1fr))}.rpg-game-cover{display:grid;place-items:center;min-height:155px;border-radius:12px;background:radial-gradient(ellipse at top,#6a4b2d,#18242a 70%);font-size:48px;letter-spacing:15px}
#lottery .adventure-theatre{height:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:20px;background:radial-gradient(ellipse at top,#2b3540,#101922 70%);color:#e6dfd0;overflow:hidden}#lottery .adventure-theatre[hidden],#lottery canvas[hidden]{display:none}#lottery .adventure-theatre header{position:static;display:block;padding:0 0 14px;border-bottom:1px solid #bd9d6266}#lottery .adventure-theatre header span{color:#c6a976;font-size:11px;letter-spacing:3px}#lottery .adventure-theatre h3{font-size:25px;margin:9px 0;color:#f1d6a4}#lottery .adventure-theatre small{color:#a6b7bd}#lottery [data-rpg-feed]{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:10px 0;line-height:1.8;font-size:15px}
#lottery .adventure-event{display:flex;align-items:baseline;gap:7px;padding:9px 0;border-bottom:1px solid #ffffff0b;overflow-wrap:anywhere}#lottery .adventure-event time{flex:0 0 30px;font-size:11px;color:#8295a6}#lottery .rpg-event-icon{flex:0 0 21px}#lottery .event-notice{color:#f3d09d}#lottery .rpg-killer{color:#8ae2ab;font-weight:800}#lottery .rpg-victim{color:#ff9a9f;font-weight:800}#lottery .rpg-npc{color:#ffc07a;font-weight:800}#lottery .rpg-weapon{color:#b6d5fa}#lottery .adventure-event.event-revive{background:#a9ffd306}#lottery .adventure-event.event-buff{background:#e7c96e07}
#lottery .adventure-player-board{flex:1;min-height:120px;overflow:auto}#lottery [data-adventure-players]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.adventure-player{min-width:0;border:1px solid #6b7b6d66;border-radius:7px;padding:8px;background:#112126}.adventure-player b,.adventure-player small,.adventure-player span,.adventure-player em{display:block;overflow-wrap:anywhere}.adventure-player b{font-size:12px;color:#e0e9df}.adventure-player small{font-size:10px;color:#9aafba;margin:5px 0}.adventure-player span{font-size:10px;color:#bec7c7}.adventure-player em{font-size:10px;color:#b9dcb6;margin-top:4px;font-style:normal}.adventure-player.player-dead{opacity:.55;background:#35232b;border-color:#9e6167}.adventure-hp{height:4px;background:#4f3338;border-radius:3px;margin:7px 0;overflow:hidden}.adventure-hp i{display:block;height:100%;background:#8ccea3}
#lottery .adventure-fairness{padding:12px 16px;background:#15202a;color:#abbcc9;font-size:12px;line-height:1.8;border:1px solid #617b8f44;border-radius:9px}#lottery[data-game=rpg] .lottery-events-card{display:none}#lottery .lottery-stage .lottery-winner{z-index:5}#lottery .adventure-theatre header{flex-shrink:0}
@media(max-width:700px){#lottery .lottery-games{grid-template-columns:1fr}#lottery .adventure-theatre{padding:12px}#lottery [data-rpg-feed]{font-size:13px}#lottery .adventure-theatre h3{font-size:19px}#lottery[data-game=rpg] .lottery-stage{min-height:400px}#lottery .adventure-player-board{max-height:340px}#lottery .lottery-heading button{padding:8px 10px}}
/* v50: actor cutouts, quiet woodland feed and six-second reading rounds. */
#lottery .lottery-games{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}#lottery .lottery-games button{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:16px;padding:20px 12px;background:linear-gradient(160deg,#23332a88,#101b1a88);border:1px solid #68827060;box-shadow:inset 0 1px #ffffff0b}#lottery .lottery-games button:hover{background:#293d32;border-color:#c4bd89;transform:translateY(-3px)}#lottery .lottery-games img{display:block;width:100%;height:210px;min-height:0;object-fit:contain;object-position:center;background:none;border:0;filter:drop-shadow(0 10px 9px #0008)}#lottery .lottery-games strong{font-size:clamp(17px,1.7vw,24px)}
#lottery .adventure-theatre{background:linear-gradient(#07130fe6,#07110fea),url('/assets/games50/forest.webp') center/cover;color:#e6eee6;padding:18px 22px}#lottery .adventure-theatre header{background:none!important;background-image:none!important;min-height:0!important;height:auto!important;width:auto!important;box-shadow:none!important;border-radius:0!important;display:flex;flex-direction:column;align-items:stretch;gap:9px;margin:0;padding:0 0 12px;border-bottom:1px solid #b3c39e33;flex:0 0 auto;overflow:visible}#lottery .adventure-theatre h3{margin:0;color:#e6efda;text-shadow:0 2px 7px #000;font-size:24px}#lottery .rpg-round-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#lottery .rpg-round-controls button{min-width:34px;padding:5px 10px;font-size:12px;background:#1c3027;border:1px solid #768d6855;line-height:1.4}#lottery .rpg-round-controls [data-rpg-round]{font-size:13px;letter-spacing:0;color:#cedcc1}#lottery .rpg-round-controls small{margin-left:auto;color:#b5c5ac}#lottery .rpg-round-controls .selected{border-color:#bdd88f;color:#dcefb9}#lottery [data-rpg-feed]{font-size:14px;line-height:1.55;padding-top:5px}#lottery .adventure-event{padding:7px 0;gap:7px}#lottery .adventure-event.event-death,#lottery .adventure-event.event-kill{background:#1b161633}#lottery .adventure-rules{padding:12px 16px;color:#aab8a7;font-size:12px;line-height:1.8}#lottery .adventure-rules p{margin:7px 0}#lottery[data-game=rpg] .lottery-layout{--scene-ratio:1.25!important}#lottery[data-game=rpg] .lottery-stage{aspect-ratio:auto;height:clamp(500px,76vh,880px);min-width:0}#lottery[data-game=rpg] .lottery-side{max-height:880px}#lottery .adventure-theatre:fullscreen{min-height:100dvh}
@media(max-width:1000px){#lottery .lottery-games{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#lottery .lottery-games{gap:10px}#lottery .lottery-games img{height:150px}#lottery .lottery-games button{padding:12px 8px;gap:8px}#lottery .lottery-games strong{font-size:16px}#lottery .adventure-theatre{padding:12px}#lottery [data-rpg-feed]{font-size:13px}#lottery .adventure-theatre h3{font-size:20px}#lottery[data-game=rpg] .lottery-stage{height:72dvh;min-height:480px;max-width:100%}#lottery .rpg-round-controls{gap:5px}#lottery .rpg-round-controls small{font-size:11px}#lottery .adventure-event{padding:7px 0}#lottery .adventure-event time{flex-basis:24px;font-size:10px}}

@media(min-width:960px){#lottery[data-game=rpg] .lottery-side{height:clamp(500px,76vh,880px)}}

/* rollcall.css */
.rollcall-dialog{width:min(1320px,95vw);max-height:92dvh;overflow:auto;box-sizing:border-box;color:var(--text,#e4edf6);background:#101b27;border:1px solid #597384;border-radius:16px;padding:24px}.rollcall-dialog .dialog-heading h2{margin:0 0 8px}.rollcall-dialog .dialog-heading span,.rollcall-note,.rollcall-import p{font-size:14px;color:#a6bacb;line-height:1.6}.rollcall-top,.rollcall-buttons,.rollcall-search{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.rollcall-top{margin-top:18px}.rollcall-top label{display:grid;gap:6px}.rollcall-top>span{font-size:13px;color:#9bb4c6}.rollcall-layout{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:24px}.rollcall-import{background:#152536;padding:18px;border:1px solid #30475b;border-radius:12px;align-self:start}.rollcall-import h3{margin-top:0}.rollcall-import textarea{display:block;box-sizing:border-box;width:100%;resize:vertical;font-family:monospace;font-size:14px;line-height:1.6;padding:12px;background:#0b1520;color:#e4edf6;border:1px solid #506577;border-radius:8px;margin:8px 0 14px}.rollcall-file{display:grid;gap:8px;font-size:14px}.rollcall-file input{min-width:0;max-width:100%;margin-bottom:16px}.rollcall-dialog button{cursor:pointer;min-height:40px}.rollcall-dialog button:disabled{cursor:wait;opacity:.55}.rollcall-save{background:#284e69!important;border-color:#83bbdb!important;color:#e4f6ff!important}.rollcall-search{justify-content:space-between}.rollcall-search input{flex:1;min-width:140px;box-sizing:border-box}.rollcall-counts{display:flex;gap:20px;flex-wrap:wrap;padding:18px 0;color:#b6cadd}.rollcall-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.rollcall-tabs button{display:flex;gap:10px;align-items:center;border:1px solid #40576b;background:#18293a;color:#b4c5d3;padding:10px;border-radius:8px}.rollcall-tabs button.selected{background:#284b65;color:#fff;border-color:#91d2f6;box-shadow:inset 0 -2px #91d2f6}.rollcall-tabs b{font-size:20px}.rollcall-players{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;max-height:55dvh;overflow:auto;padding:2px}.rollcall-player{padding:14px;display:grid;gap:8px;border:1px solid #385066;border-left:3px solid #75a4c9;border-radius:8px;background:#172636;overflow-wrap:anywhere}.rollcall-player strong{font-size:20px}.rollcall-player span,.rollcall-player small{font-size:13px;color:#a8bed0}.rollcall-player.unregistered{border-left-color:#ebbc68}.rollcall-player.offline{border-left-color:#d27b87}.rollcall-player.arrived{border-left-color:#76c79d}.rollcall-player.unlisted{border-left-color:#b4a2cf}.rollcall-caution{color:#e2bd80;font-size:14px}#rollcallError{color:#efb19c;white-space:pre-wrap}#rollcallButton{border-color:#90b7ce;color:#d3efff} @media(max-width:760px){.rollcall-dialog{padding:16px;width:96vw;max-height:94dvh}.rollcall-layout{grid-template-columns:1fr;gap:16px}.rollcall-import textarea{min-height:110px}.rollcall-players{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));max-height:none}.rollcall-dialog .dialog-heading span{font-size:12px}.rollcall-tabs button{flex:1;justify-content:space-between}.rollcall-search input{width:100%}}

.rollcall-paste{display:block;width:100%;min-height:52px!important;margin:12px 0;background:#285772!important;border:1px solid #92d2f2!important;color:#f3fbff!important;font-size:19px!important;font-weight:800;border-radius:9px;box-shadow:0 3px 16px #0003}.rollcall-paste:hover{background:#356e8e!important}.rollcall-paste:active{transform:translateY(1px)}

/* battle-profile.css */
@font-face{font-family:'GYTT Extra';src:url('/assets/profile63/profile-font68.woff') format('woff');font-display:swap}@font-face{font-family:'GYTT Profile';src:url('/assets/profile63/profile-font.woff') format('woff');font-display:swap}.battle-profile{max-width:1440px;margin:auto;padding:24px 0;font-family:"Microsoft JhengHei","PingFang TC","Microsoft YaHei","Noto Sans TC",system-ui,sans-serif}.profile-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.profile-heading h2{margin:0;color:#e6c58e;font-size:26px}.profile-heading p,.profile-note{font-size:13px;line-height:1.8;color:#a8b8c6}.profile-days,.profile-themes{display:flex;gap:7px;flex-wrap:wrap}.profile-days button,.profile-themes button{border:1px solid #516373;background:#152534;color:#dce6e9;border-radius:7px;padding:10px 17px}.profile-days button[aria-pressed=true],.profile-themes button[aria-pressed=true]{background:#d6b77c;border-color:#d6b77c;color:#172331}.profile-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,.7fr);gap:22px;align-items:start}.profile-panel{background:linear-gradient(140deg,#182c3b,#11212e);border:1px solid #3d5264;border-radius:12px;padding:23px;margin-bottom:18px}.profile-player-head{display:flex;align-items:center;gap:19px}.profile-avatar{width:88px;height:88px;border:2px solid #ccb17c;object-fit:cover;border-radius:50%;background:#223746;display:grid;place-items:center;font-size:24px;color:#d6bc86;flex:none}.profile-player-head h3{font-size:26px;margin:0 0 7px}.profile-player-head p{color:#a7bdc8;font-size:13px;margin:6px 0}.profile-upload{display:inline-block;cursor:pointer;color:#e2c38d;border:1px solid #75664d;border-radius:5px;padding:6px 11px;font-size:12px}.profile-upload input{position:absolute;width:1px;height:1px;opacity:0}.profile-select{display:flex;align-items:center;gap:10px;margin-bottom:18px;flex-wrap:wrap}.profile-select select{max-width:100%;min-width:200px;background:#142737;color:#e7e3d8;border:1px solid #516373;padding:9px;border-radius:6px}.profile-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.profile-metric{background:#102331;border:1px solid #344b5d;border-radius:9px;padding:17px 14px}.profile-metric h4{margin:0 0 12px;font-size:14px;color:#bcced9;font-weight:500}.profile-metric .profile-my-value{font-size:32px;color:#c2e6f1;font-weight:600}.profile-metric .profile-guild-value{font-size:13px;color:#d2b783;margin:8px 0}.profile-bars{display:grid;gap:4px;margin-top:13px}.profile-bar{height:5px;background:#273b48;border-radius:5px;overflow:hidden}.profile-bar i{height:100%;display:block;background:#a5d2df}.profile-bar.guild i{background:#c9ac76}.profile-metric small{display:block;margin-top:9px;font-size:11px;color:#91a7b4}.profile-subhead{display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-subhead h3{margin:0;font-size:18px;color:#e2c38f}.profile-subhead small{color:#8fa7b5;font-size:12px}.profile-weapons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.profile-weapon{display:flex;align-items:center;gap:10px;background:#102432;border:1px solid #324b5c;border-radius:7px;padding:10px;min-width:0}.profile-weapon img{width:49px;height:49px;object-fit:contain;border-radius:7px;background:#263a47}.profile-weapon div{min-width:0;flex:1}.profile-weapon strong{font-size:14px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.profile-weapon small{display:block;color:#95afbd;font-size:12px;margin-top:4px}.profile-empty{padding:35px;text-align:center;color:#a6bac6}.profile-card-box{padding:15px;background:#111f2c;border:1px solid #3f5261;border-radius:12px;position:sticky;top:16px}.profile-card-box canvas{display:block;width:100%;height:auto;aspect-ratio:9/16;border-radius:8px;background:#142331}.profile-themes{margin:14px 0}.profile-themes button{padding:8px 12px;font-size:13px;flex:1}.profile-export{width:100%;padding:12px;border:1px solid #d7b679;border-radius:7px;background:#d7b679;color:#142431;font-weight:600}.profile-export:disabled{opacity:.5;cursor:wait}.profile-error{color:#edb1ab;background:#322329;padding:14px;border-radius:7px}.profile-loading{padding:55px;text-align:center;color:#b6c8d5}.profile-note summary{cursor:pointer;color:#d7bd8e}.profile-note details{border-top:1px solid #334b5d;padding-top:12px}.profile-demo-label{color:#edc38c;border:1px solid #856346;padding:6px 10px;border-radius:5px;font-size:12px}.profile-show-all{margin-top:13px}button:focus-visible,.profile-upload:focus-within{outline:2px solid #e6c58e;outline-offset:3px}@media(max-width:900px){.profile-layout{grid-template-columns:1fr}.profile-card-box{position:static;max-width:420px;margin:auto;width:100%}.profile-metrics{gap:8px}.profile-metric{padding:13px 9px}.profile-my-value{font-size:27px}.battle-profile{padding:15px 0}}@media(max-width:520px){.profile-heading{align-items:start;flex-direction:column}.profile-panel{padding:16px}.profile-metrics{grid-template-columns:1fr}.profile-metric{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}.profile-metric .profile-my-value{grid-column:2;grid-row:1/3;text-align:right}.profile-bars,.profile-metric small{grid-column:1/-1}.profile-weapons{grid-template-columns:1fr}.profile-avatar{width:72px;height:72px}.profile-player-head h3{font-size:22px}}
.profile-banner{background:linear-gradient(90deg,rgba(12,29,39,.8),rgba(12,29,39,.93)),url('/assets/profile63/card-forest.webp') center 42%/cover;display:flex;justify-content:space-between;gap:18px;align-items:center}.profile-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.profile-summary strong{display:block;font-size:34px;margin-top:8px}.profile-summary small{color:#9ab4c1}.profile-dashboard{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:18px}.profile-dashboard .profile-panel{margin:0 0 2px;min-width:0}.profile-dashboard h3{margin:0 0 14px;color:#e0eaf0}.profile-positive{color:#7dd7b6!important}.profile-negative{color:#f0abad!important}.profile-baseline{color:#e2c184}.profile-compare-head,.profile-compare-row{display:grid;grid-template-columns:1.2fr .75fr .9fr 1.6fr;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #2b4350}.profile-compare-head{color:#99b2c0;font-size:12px}.profile-compare-row>span{font-size:23px}.profile-compare-row>strong{font-size:14px}.profile-reference-bar{position:relative;height:7px;background:#0d202a;margin:9px 0;min-width:0}.profile-reference-bar i{display:block;background:#8dbfd1;height:100%}.profile-reference-bar i.positive{background:#7dd7b6}.profile-reference-bar i.negative{background:#f0abad}.profile-reference-bar b{position:absolute;border-left:1px dashed #e2c184;height:17px;top:-5px}.profile-compare-row small{font-size:11px}.profile-role-hero{display:flex;align-items:center;gap:20px}.profile-role-hero svg{width:165px;max-width:48%;flex:none}.profile-role-hero text{fill:#e2ebef;font-size:21px}.profile-role-hero text.role-svg-note{font-size:8px;fill:#a4beca}.profile-role-hero h3{font-size:27px;margin:8px 0}.profile-role-hero p,.profile-role-hero small{color:#aec6d2}.profile-role-table>div{display:grid;grid-template-columns:1fr 1fr .7fr;gap:6px;font-size:13px;padding:10px 0}.profile-role-table span:last-child{text-align:right}.profile-role-table i{display:inline-block;width:8px;height:8px;margin-right:10px}.profile-trend{display:flex;gap:10px;padding:25px 0 8px}.profile-trend-column{flex:1;min-width:0;text-align:center}.profile-trend-column>div{height:160px;border-bottom:1px solid #47616f;display:flex;align-items:end;justify-content:center}.profile-trend-column i{display:block;position:relative;background:#8cbfd2;width:65%;border-radius:5px 5px 0 0;min-height:1px}.profile-trend-column i span{position:absolute;top:-25px;left:0;right:0;font-size:14px;font-style:normal}.profile-trend-column small{display:block;font-size:11px;color:#a1b9c6;margin-top:9px}.profile-favorite{display:flex;gap:20px;align-items:center;margin:30px 0}.profile-favorite img{width:90px;height:90px;object-fit:contain;background:#273f4d;border-radius:12px}.profile-favorite strong{font-size:23px}.profile-favorite p{font-size:28px;color:#acd8e9;margin:8px 0}.profile-favorite small{color:#a6c0cd}.profile-weapons{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-role-filters{display:flex;flex-wrap:wrap;gap:6px}.profile-role-filters button{font-size:12px;padding:7px 10px;background:#132a36;border:1px solid #3f5c69;border-radius:5px;color:#b6ced9}.profile-role-filters button[aria-pressed=true]{border-color:#d9bd86;background:#3a382d;color:#f3d89e}.profile-export-details{border:1px solid #425b69;border-radius:9px;padding:16px}.profile-export-details>summary{cursor:pointer;color:#e1c38c}.profile-card-box{position:static;max-width:380px;margin:18px auto 0}.profile-dashboard+.profile-panel{margin-top:18px}@media(max-width:1000px){.profile-dashboard{grid-template-columns:1fr}.profile-weapons{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.profile-banner{align-items:start;flex-direction:column}.profile-summary{gap:8px}.profile-summary .profile-panel{padding:13px 10px}.profile-summary strong{font-size:28px}.profile-compare-head,.profile-compare-row{grid-template-columns:1.1fr .7fr .8fr;gap:7px}.profile-compare-head>span:last-child{display:none}.profile-compare-row>div{grid-column:1/-1}.profile-compare-row>span{font-size:20px}.profile-weapons{grid-template-columns:1fr}.profile-subhead{align-items:start;flex-direction:column}.profile-role-hero svg{width:145px}.profile-trend{gap:5px}.battle-profile{min-width:0}.profile-player-head{max-width:100%}.profile-player-head h3{overflow-wrap:anywhere}}

.profile-weapon{align-items:flex-start}.profile-weapon-compare{margin-top:13px;border-top:1px solid #35505d;padding-top:7px}.profile-weapon-compare>div{display:grid;grid-template-columns:1fr .65fr .8fr;gap:7px;padding:7px 0;align-items:center;font-size:12px}.profile-weapon-compare>div>strong{text-align:right;white-space:normal;font-size:16px}.profile-weapon-compare>div>span:last-child{text-align:right}.profile-weapon-compare .weapon-compare-labels{color:#91afbf;font-size:11px}.profile-favorite{margin:20px 0}.profile-peak{padding:17px 18px;background:linear-gradient(110deg,#293627,#1b3037);border:1px solid #786f45;border-radius:10px;margin-top:18px}.profile-peak-title{color:#e5c888;font-size:15px}.profile-peak-score{display:flex;gap:32px;margin:12px 0}.profile-peak-score>span{font-size:32px;font-weight:700}.profile-peak-score small{font-size:13px;font-weight:500}.profile-peak-meta{font-size:12px;color:#aec4cf;line-height:1.8}.profile-peak-meta a{color:#e4c88d;text-decoration:underline}.profile-trend-column small{white-space:nowrap;font-size:12px}.profile-weapon .profile-reference-bar{margin-top:12px}@media(max-width:600px){.profile-peak-score>span{font-size:28px}.profile-trend-column small{font-size:10px}}

/* Use complete local CJK faces for page text; subset export fonts stay canvas-only. */
.battle-profile{font-weight:500;letter-spacing:normal;text-shadow:none;line-height:1.6;font-synthesis:none}.battle-profile button,.battle-profile input,.battle-profile select{font-family:inherit;font-weight:600;letter-spacing:normal;text-shadow:none}.battle-profile h2,.battle-profile h3,.battle-profile h4,.battle-profile strong{font-weight:700;letter-spacing:normal;text-shadow:none}.battle-profile .profile-note,.battle-profile small,.battle-profile .profile-heading p{font-weight:500;letter-spacing:normal;text-shadow:none}.battle-profile .profile-compare-row>span,.battle-profile .profile-summary strong{font-variant-numeric:tabular-nums}.battle-profile svg text{font-family:inherit;font-weight:600}.battle-profile .profile-player-head h3{font-weight:700}

.profile-role-columns{font-weight:600;color:#aac2d0;font-size:12px!important;border-bottom:1px solid #344e5e}.profile-role-info{position:relative;display:block;min-width:0}.profile-role-explain{font:inherit!important;color:#e2c184!important;background:transparent!important;border:0!important;padding:3px 0!important;cursor:help;text-decoration:underline dotted;text-underline-offset:5px;white-space:nowrap}.profile-role-explain span{font-size:11px;margin-left:2px;color:#bda97f}.profile-role-tooltip{display:none;position:absolute;right:0;top:calc(100% + 8px);z-index:30;width:min(310px,75vw);padding:14px 16px;border:1px solid #82734e;border-radius:9px;background:#0b1e2b;box-shadow:0 8px 25px #0008;color:#dfebf0;font-size:13px;line-height:1.85;white-space:normal;text-align:left!important;font-weight:500}.profile-role-info[data-open=true] .profile-role-tooltip,.profile-role-explain:focus-visible+.profile-role-tooltip{display:block}@media(hover:hover){.profile-role-info:hover .profile-role-tooltip{display:block}}

/* account-recovery.css */
#accountRecoveryDialog{width:min(92vw,540px);max-height:90dvh;overflow:auto;box-sizing:border-box;padding:24px;background:#182431;color:#e9edf2;border:1px solid #ad8966;border-radius:14px;font-family:system-ui,sans-serif}
#accountRecoveryDialog label{display:grid;gap:7px;margin:14px 0}#accountRecoveryDialog input{width:100%;box-sizing:border-box;padding:12px;color:inherit;background:#101c29;border:1px solid #667c8d;border-radius:6px;font:inherit}
#recoveryPassword{font-family:monospace!important;font-size:22px!important}#accountRecoveryDialog button{padding:10px 14px;cursor:pointer}#accountRecoveryDialog button:disabled{cursor:wait;opacity:.6}#accountRecoveryError{color:#ffa6a6}#accountRecoveryDialog p{line-height:1.6}
#accessDialog .account-modes[hidden],#cancelPasswordChange[hidden]{display:none!important}

/* de-summary.css */

/* Separate player and additional-mount DE, including the no-Boom estimate. */
#totals>.disarray.de-card{box-sizing:border-box;display:flex;flex:0 1 280px;flex-direction:column;align-items:stretch;justify-content:center;gap:8px;width:280px;min-width:230px;max-width:100%;height:auto;min-height:108px;margin:0;padding:11px 14px;text-align:left;white-space:normal;border-radius:8px;cursor:pointer}
#totals>.de-card>.de-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:3px 10px;width:100%;max-width:none;font-size:14px;line-height:1.4;color:#f4d6bd;font-weight:750}
#totals>.de-card .de-heading small{width:auto;max-width:100%;font-size:11px;color:#bfa6aa;white-space:normal;overflow-wrap:anywhere}
#totals>.de-card>.de-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}
#totals>.de-card .de-metric{display:flex;align-items:center;justify-content:space-between;gap:6px;width:auto;min-width:0;padding:0;font-size:13px}
#totals>.de-card .de-metric+.de-metric{border-left:1px solid #70545b;padding-left:12px}
#totals>.de-card .de-metric small{width:auto;color:#d0c3c7;font-size:12px;line-height:1.3;white-space:normal}
#totals>.de-card .de-metric b{flex-shrink:0;font-size:27px;line-height:1.1;font-weight:800;margin:0}
#totals>.de-card .de-players b{color:#b4dfff}#totals>.de-card .de-mounts b{color:#ffd19a}
#totals>.de-card>.de-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 10px;width:100%;max-width:none}
#totals>.de-card .de-footer small{font-size:11px;color:#bfaeb5;width:auto;white-space:normal}
#totals>.de-card:focus-visible{outline:2px solid #f3bf88;outline-offset:3px}
@media(max-width:760px){
 #totals>.disarray.de-card{grid-column:1/-1;flex-basis:100%;width:100%;min-width:0;min-height:106px;padding:12px;gap:9px}
 #totals>.de-card>.de-heading{font-size:15px}#totals>.de-card .de-heading small{font-size:12px}
 #totals>.de-card .de-metric small{font-size:14px}#totals>.de-card .de-metric b{font-size:30px}
 #totals>.de-card .de-footer small{font-size:12px}
 #formationTabs{flex-wrap:wrap;max-width:100%;min-width:0;overflow:visible}
 #formationTabs button{box-sizing:border-box;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 .toolbar .team-title{min-width:0;flex-wrap:wrap;gap:8px}.toolbar .toolbar-actions{min-width:0;max-width:100%;flex-wrap:wrap}
 .toolbar button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #disarrayDialog .dialog-heading h2{overflow-wrap:anywhere}
}
#totals>.disarray.de-card span{max-width:none}
@media(max-width:760px){
 #formationTabs{height:auto;min-height:46px;gap:6px}
 #formationTabs button{flex:1 1 calc(33.333% - 6px);height:auto;min-height:44px;padding:6px}
 #formationTabs button strong{font-size:13px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
}

/* roster-layout88.css */
#totals>.disarray.de-inline{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:10px;width:auto;min-width:260px;min-height:44px;height:auto;margin:0;padding:8px 13px;white-space:normal}
#totals>.de-inline>span{display:flex;align-items:center;gap:9px;max-width:none;width:auto;font-size:14px;font-weight:700;white-space:nowrap}
#totals>.de-inline b{font-size:26px;font-weight:800;color:#b4dfff;line-height:1.1}
#totals>.de-inline>span:last-child b{color:#ffd19a}#totals>.de-inline>.de-divider{color:#81636a;font-weight:400}
#rosterExportDialog{width:min(850px,calc(100vw - 24px));box-sizing:border-box}
.roster-export-times,.roster-export-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.roster-export-times label{display:flex;align-items:center;gap:6px;min-height:40px;padding:6px 10px;border:1px solid #79574f;border-radius:6px}
#rosterExportText{box-sizing:border-box;width:100%;height:45dvh;min-height:180px;padding:12px;resize:vertical;white-space:pre;overflow:auto;font:15px/1.7 'Consolas','Microsoft JhengHei',monospace}
#rosterExportStatus{min-height:24px;font-size:14px;overflow-wrap:anywhere}.roster-export-actions{margin-top:12px;justify-content:flex-end}
#exportRoster{margin-right:6px}
/* Desktop formation only: distribute remaining real viewport height among ten rows. */
@media(min-width:1100px) and (min-height:650px){
 body[data-roster-view=true]{height:100dvh;min-height:0;display:flex;flex-direction:column}
 body[data-roster-view=true]>header{flex:0 0 clamp(96px,13dvh,190px);height:clamp(96px,13dvh,190px);min-height:0;padding-block:5px}
 body[data-roster-view=true] .brand{height:100%;width:clamp(300px,25vw,660px);display:flex;align-items:center}
 body[data-roster-view=true] .brand img{height:100%;max-height:100%;width:100%;object-fit:contain}
 body[data-roster-view=true] .header-right{gap:6px;padding-top:3px}
 body[data-roster-view=true]>main{width:100%;max-width:none;margin:0;flex:1;min-height:0;display:flex;flex-direction:column;padding:0 clamp(14px,1.5vw,42px) 8px}
 body[data-roster-view=true] #formationTabs{flex:0 0 auto;min-height:42px;height:auto;padding:3px 0}
 body[data-roster-view=true] #tabs{flex:0 0 auto;min-height:44px;height:auto;flex-wrap:wrap;padding:2px 0;gap:3px}
 body[data-roster-view=true] #tabs button{padding:7px clamp(5px,.6vw,16px);font-size:clamp(12px,.8vw,20px);min-width:0;gap:5px}
 body[data-roster-view=true] #totals{flex:0 0 auto;gap:7px;margin:7px 0 3px;flex-wrap:wrap}
 body[data-roster-view=true] #totals>.total{height:clamp(40px,4.4dvh,64px);padding:4px 10px}
 body[data-roster-view=true] #totals>.disarray{min-height:40px;height:clamp(40px,4.4dvh,64px)}
 body[data-roster-view=true] .toolbar{flex:0 0 auto;min-height:40px;margin:5px 0 7px;gap:8px}
 body[data-roster-view=true] .toolbar button{min-height:32px;padding:6px 10px}
 body[data-roster-view=true] #duplicateNotice{flex:0 0 auto;margin-top:0}
 body[data-roster-view=true] #roster{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 body[data-roster-view=true] #roster>.table{min-height:0;display:grid;grid-template-rows:clamp(25px,2.8dvh,38px) repeat(10,minmax(0,1fr))}
 body[data-roster-view=true] #roster .row{height:auto!important;min-height:0;padding:0 8px;gap:6px;grid-template-columns:2em 2.3em minmax(0,.9fr) minmax(0,1fr) minmax(0,1.3fr)}
 body[data-roster-view=true] #roster .row.head{height:auto!important;font-size:clamp(12px,.75vw,20px)}
 body[data-roster-view=true] #roster .row input{min-height:0;height:80%;max-height:54px;min-width:0;font-size:clamp(13px,.85vw,23px);padding:3px 6px}
 body[data-roster-view=true] #roster .weapon-button{height:100%;min-height:0;min-width:0;padding:0;overflow:hidden}
 body[data-roster-view=true] #roster .weapon-button img{width:clamp(28px,3.7dvh,62px);height:clamp(28px,3.7dvh,62px);max-height:92%;object-fit:contain;flex-shrink:0}
 body[data-roster-view=true] #roster .weapon-button>span{min-width:0;font-size:clamp(12px,.8vw,22px);overflow-wrap:anywhere;line-height:1.15}
 body[data-roster-view=true] #roster .role-button{height:100%;min-height:0;padding:0}
 body[data-roster-view=true] #roster .role{width:clamp(23px,2.8dvh,40px);height:clamp(23px,2.8dvh,40px)}
 body[data-roster-view=true] #roster .role svg{width:90%;height:90%}
}
@media(max-width:760px){#totals>.disarray.de-inline{grid-column:1/-1;width:100%;min-width:0;flex-wrap:wrap;gap:6px;padding:10px}#totals>.de-inline>span{font-size:14px}#totals>.de-inline b{font-size:25px}.roster-export-times button,.roster-export-actions button{min-height:44px}#rosterExportText{font-size:14px}}
#accessDialog .access-language{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin:0 0 14px}
#accessDialog .access-language label{font-size:12px;color:#c6afa9}#accessDialog .access-language select{max-width:100%;min-height:40px;padding:6px 10px;font-size:14px;background:#211a22;border:1px solid #805849;border-radius:6px}
@media(max-width:600px){#accessDialog .access-language{margin-bottom:10px}#accessDialog .access-language select{font-size:16px;min-height:44px}}

/* Right-hand guild actions stay together next to the squad count. */
.toolbar>.toolbar-actions{margin-left:auto;justify-content:flex-end;min-width:0}
#rosterMemberActions{display:flex;align-items:center;gap:8px;flex-shrink:0}
#rosterMemberActions:not(:has(button:not([hidden]))){display:none}
#rosterMemberActions button{white-space:nowrap}
@media(max-width:900px){.toolbar{flex-wrap:wrap}.toolbar>.toolbar-actions{max-width:100%;flex-wrap:wrap;justify-content:flex-end}#rosterMemberActions{margin-left:auto}}

/* v93: use identical pixel-based columns for header and body. em columns previously
   changed width with the header font and wrapped 編號 into two lines. */
@media(min-width:1100px) and (min-height:650px){
 body[data-roster-view=true] #roster{--roster-columns:42px 44px minmax(0,.95fr) minmax(0,1fr) minmax(0,1.25fr);min-height:416px}
 body[data-roster-view=true] #roster>.table{min-width:0;grid-template-rows:34px repeat(10,minmax(38px,1fr));align-content:stretch}
 body[data-roster-view=true] #roster .row{grid-template-columns:var(--roster-columns);grid-template-rows:minmax(0,1fr);align-items:center;overflow:hidden}
 body[data-roster-view=true] #roster .row.head{grid-template-columns:var(--roster-columns);line-height:1.2;white-space:nowrap;font-size:clamp(12px,.75vw,18px);padding-block:0}
 body[data-roster-view=true] #roster .row.head>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body[data-roster-view=true] #roster .row input{align-self:center;height:calc(100% - 8px);max-height:52px;line-height:1.2}
 body[data-roster-view=true] #roster .number{white-space:nowrap;font-size:clamp(14px,.86vw,22px)}
 body[data-roster-view=true] #roster .role-button{width:100%;display:grid;place-items:center}
 body[data-roster-view=true] #roster .weapon-placeholder{width:28px;height:28px;font-size:16px}
 body[data-roster-view=true] #roster .weapon-button>span:not(.weapon-placeholder){font-size:clamp(12px,.8vw,20px);max-height:2.4em}
}

/* korean89.css */
html[lang=ko] body,html[lang=ko] button,html[lang=ko] input,html[lang=ko] select,html[lang=ko] textarea{font-family:"Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif;word-break:keep-all;overflow-wrap:anywhere}html[lang=ko] .row input{word-break:normal}html[lang=ko] .access-language select{word-break:normal}html[lang=ko] #tabs button{white-space:normal;line-height:1.3}html[lang=ko] .dialog-heading h2{overflow-wrap:anywhere}html[lang=ko] #accessDialog h2{font-size:clamp(21px,4vw,28px)}html[lang=ko] .source-switch button{white-space:normal;line-height:1.4}

/* roster-templates.css */
#adminDialog .admin-preset-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}#adminDialog #saveConfiguration{border-color:#9a8251;color:#ffe5ac}#adminDialog #loadConfiguration{border-color:#5c94b5;color:#c6e8ff}#configurationDialog{box-sizing:border-box;width:min(800px,calc(100vw - 24px));max-height:calc(100dvh - 28px);overflow:auto;padding:24px;background:linear-gradient(145deg,#192b3b,#101b29);border:1px solid #917855;border-radius:12px;color:#e5eef7}#configurationDialog [hidden]{display:none!important}#configurationDialog label{display:grid;gap:8px;font-weight:700}#configurationDialog input,#configurationDialog select{box-sizing:border-box;width:100%;min-width:0;background:#101c2a;color:#e5eef7;border:1px solid #52718a;border-radius:6px;padding:10px;font:inherit}#configurationDialog button{font:inherit;font-weight:750;cursor:pointer;padding:10px 14px;border:1px solid #54728d;border-radius:6px;background:#24384a;color:#e4eef7}#configurationDialog button:disabled{opacity:.5;cursor:default}#configurationDialog .configuration-primary{background:#394a42;border-color:#8cae82;color:#dcf7d5}#configurationDialog .configuration-help{font-size:14px;line-height:1.7;color:#b8c9d7;margin:12px 0 22px}#configurationDialog .configuration-save-fields{display:grid;grid-template-columns:180px 1fr;gap:14px;margin-top:16px}#configurationDialog .configuration-buttons{display:flex;gap:10px;flex-wrap:wrap}#configurationDialog fieldset{border:1px solid #466177;border-radius:8px;margin:16px 0;padding:14px}#configurationDialog .configuration-times{display:flex;flex-wrap:wrap;gap:22px}#configurationDialog .configuration-times label{display:flex;align-items:center;gap:8px}#configurationDialog [type=checkbox]{width:18px;height:18px;accent-color:#8cc5e8}#configurationDialog .configuration-target{border:1px solid #45627c;border-radius:8px;background:#122535;padding:14px;margin:12px 0}#configurationDialog .configuration-squads{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}#configurationDialog .configuration-squads span{display:flex;justify-content:space-between;gap:8px;font-size:14px;padding:9px;background:#1f3547;border-radius:5px}#configurationDialog #configurationStatus{min-height:24px;margin:18px 0 0;line-height:1.6;color:#b7e6bc}#configurationDialog #configurationStatus.error{color:#ffb1ad}#configurationPresetInfo,#configurationSourceInfo{font-size:13px;color:#a9bfd0;overflow-wrap:anywhere}#configurationPreview>p{color:#b9cddd;font-size:13px;line-height:1.6}@media(max-width:600px){#configurationDialog{padding:18px}#configurationDialog .configuration-save-fields{grid-template-columns:1fr}#configurationDialog .configuration-squads{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-preset-actions button{flex:1 1 auto}}

/* loadout94.css */
#adminSlots .loadout-edit-button{flex:0 0 auto;min-width:72px;justify-content:center;font-size:12px;padding:6px}
#loadout94Dialog{width:min(980px,calc(100vw - 24px))}.loadout-editor{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:22px}.loadout-nine{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;margin:12px 0}.loadout-cell{aspect-ratio:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #50677b;border-radius:8px;background:linear-gradient(145deg,#243647,#122130);padding:4px;overflow:hidden}.loadout-cell img{width:75%;height:70%;object-fit:contain;min-height:0}.loadout-cell small{font-size:11px;color:#bfd0dc}.loadout-cell.vacant{border:1px dashed #3c4c59;opacity:.25;background:transparent}.loadout-cell.selected{border-color:#dfb76c;box-shadow:0 0 0 1px #dfb76c inset}.loadout-empty{font-size:27px;color:#728797}.loadout-catalog{min-width:0}.loadout-catalog label{display:grid;gap:8px;font-weight:700}.loadout-catalog input{width:100%;min-height:42px}#loadout94Choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:52dvh;overflow:auto;margin-top:12px;padding:2px}#loadout94Choices button{display:flex;flex-direction:column;align-items:center;min-width:0;padding:4px;font-size:12px}#loadout94Choices img{width:64px;height:64px;max-width:100%;object-fit:contain}#loadout94Choices button.selected{border-color:#e4c47e;background:#3c3c32}.loadout-footer{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}#loadout94Preview{position:fixed;width:260px;padding:12px;border:1px solid #8e9fac;border-radius:10px;background:#102131fa;color:#eff5ff;box-shadow:0 12px 42px #0009;z-index:10000;pointer-events:none}#loadout94Preview strong{display:block;font-size:14px;overflow-wrap:anywhere}#loadout94Preview p{font-size:12px;margin:4px 0;text-align:center}#loadout94Preview .loadout-nine{gap:5px;margin:8px 0}#duplicateNotice{overflow-wrap:anywhere;line-height:1.6}
@media(max-width:650px){.loadout-editor{grid-template-columns:1fr}.loadout-nine{max-width:265px;margin-inline:auto}#loadout94Choices{max-height:32dvh;grid-template-columns:repeat(3,minmax(0,1fr))}#adminSlots .admin-slot{flex-wrap:wrap}#adminSlots .loadout-edit-button{margin-left:auto;min-height:38px}}

/* v95: remove the old editable-cell side stripe; reserve outlines for keyboard focus. */
#roster .weapon-button,#roster .weapon-button:not(:disabled){box-shadow:none!important;border-radius:4px}
#roster .weapon-button:focus-visible{outline:2px solid #9ed8ff;outline-offset:-2px}
#loadout94Preview{width:min(280px,calc(100vw - 24px));border-color:#5e798b;border-radius:12px;padding:14px;background:linear-gradient(145deg,#172c3f,#0c1a28);box-shadow:0 12px 32px #0008}
#loadout94Preview .loadout-nine{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:6px;aspect-ratio:1}
#loadout94Preview .loadout-cell{min-height:0;aspect-ratio:auto;border-radius:7px}
#loadout94Preview .loadout-cell img{max-width:54px;max-height:52px}
.loadout-cell.linked{border-color:#6f8fa6;background:#1d3344}.loadout-cell.linked:disabled{opacity:1;cursor:default}
#loadout94Choices .item-image-failed{opacity:.55}

/* gytt-theme96.css */
/* GYTT v96: graphite and mist violet. Existing layout and media fixes retained. */
:root{--bg:#0f0f10;--panel:#1d1c1f;--line:#403e46;--text:#e8e6ed;--muted:#a9a6b2;--ice:#b1a5d0;--ember:#7f6ab2;--copper:#8373a8}
html{background:#0f0f10}
body{background:radial-gradient(ellipse at 90% 0,#3c364b2e,transparent 48%),radial-gradient(ellipse at 0 50%,#3e365110,transparent 60%),linear-gradient(160deg,#18171a,#0f0f10 70%);background-attachment:fixed}
body>header{border-bottom:1px solid #60557d;background:linear-gradient(90deg,#100f11fa 0%,#151418d9 30%,#17151b99 62%,#0f0e10b8);box-shadow:0 8px 35px #00000077,inset 0 -1px #9d8dc533}
.brand img{filter:drop-shadow(0 4px 12px #000000) drop-shadow(0 0 18px #9280be22)}
.header-right select,#accessButton{background:#1b1a1ddd;border-color:#5e5574;color:#ddd7ea}
main{background:linear-gradient(180deg,#17161818,transparent 70%)}
button{background-color:#262528;border-color:#54515b}
button:hover{background-color:#38363c;border-color:#8174a3}
input,select,textarea{background-color:#1b1a1e;border-color:#4b4851;color:#e8e6ed}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#b2a5d1}
#formationTabs button{background:#1d1c20;border-color:#595467;color:#b9b6c1}
#formationTabs button.active{background:linear-gradient(135deg,#463f55,#2b292f);border-color:#9b8cc0;color:#f0edf6;box-shadow:inset 0 -2px #a899cb}
#tabs{border-color:#494650}#tabs button{color:#b5b2bd}#tabs button.active{color:#e4e0ef;border-bottom-color:#a899cb;background:linear-gradient(0deg,#51456f2d,transparent)}
#tabs button b{background:#312f36;color:#c9c4d6}
.table,.report-table-wrap{border-color:#4b4853;background:#1c1b1e}
.roster .row{background:#1c1b1e}.roster .row:nth-child(odd){background:#212024}.roster .row.head{background:#2d2c31;color:#b8b3c5}
.roster .row input{background:#18171acc;border-color:#47454c}.roster .row input:focus{background:#2a282e;border-color:#8a7bad}
.report-table th{background:#2b292f;color:#bfb9ce;border-color:#504d58}.report-table td{border-color:#3c3942}
.report-table tr:nth-child(even){background:#212024}.report-table tr:hover{background:#2e2c33}
.total,.disarray,.death-card,.highlight-card,.account-card{border-color:#54515c;background-color:#201f22}
.overall{border-color:#7c6e9c}.summary-label,.toolbar-actions>span{color:#afa9be}
.toolbar h2,.highlights-heading h2{color:#c0b6d9}
.source-switch,.attendance-filters,.battle-metrics>div,.summary-panel,.caller-guild,.siphon-events-panel{background-color:#1f1e22;border-color:#4e4b55}
.battle-tabs button.selected,.source-switch button.selected{background:#494356;border-color:#9788bb;color:#edeaf4}
.battle-date-divider th{background:#302e35!important;border-top-color:#7d6ea2!important}
.select-day{float:none!important;display:inline-flex;margin:0 14px 0 0;background:#312f35;border-color:#70658b;color:#d2cae4;vertical-align:middle}
.select-day input{accent-color:#9685c0}
.battle-day-heading{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px}
.battle-day-date{font-size:17px;font-weight:800;color:#cec6e1;margin-right:12px}
.merge-day{background:#4f4861;border-color:#9687bc;color:#ece9f4;font-weight:800}
#reports .report-table tbody>tr.battle-selected,#reports .report-table tbody>tr.battle-selected:nth-child(even),#reports .report-table tbody>tr.battle-selected:hover{background:#46434e;box-shadow:inset 4px 0 #a799ca}
.insight-weapon-grid{grid-template-columns:repeat(var(--weapon-columns,6),minmax(0,1fr))}
.weapon-ranking-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.weapon-ranking-metrics{display:flex;gap:24px;align-items:center}
.weapon-ranking-metrics>span{display:grid;gap:5px;font-size:12px;color:#b2adbe}
.weapon-ranking-metrics b{font-size:26px;font-variant-numeric:tabular-nums;color:#d7d0e7}
.weapon-ranking-metrics .kill-number b{color:var(--stat-kill)}.weapon-ranking-metrics .death-number b{color:var(--stat-death)}
.attendance-recent{display:flex;gap:6px;align-self:flex-end;margin-right:4px}
.attendance-recent button{min-height:40px;white-space:nowrap;padding:8px 11px;font-size:12px}
.attendance-recent button[aria-pressed=true]{background:#4f4860;border-color:#b0a3cf;color:#ebe8f3}
.attendance-filters{flex-wrap:wrap}.date-controls{flex-wrap:wrap}
#callerIntel .caller-guild-candidates b,#callerIntel .caller-guild-battles b{font-size:36px;line-height:1.15;color:#c4badc}
#callerIntel .caller-guild-candidates small,#callerIntel .caller-guild-battles small{font-size:13px;margin-left:5px}
.caller-player-controls label:has(#callerMarkedOnly){display:inline-flex;align-items:center;gap:10px;padding:10px 15px;min-height:46px;border:1px solid #73698c;border-radius:8px;background:#323036;color:#d0c9e3;font-size:16px;font-weight:800;white-space:nowrap;cursor:pointer}
#callerMarkedOnly{width:21px;height:21px;accent-color:#a293c7;cursor:pointer}
.caller-player-controls label:has(#callerMarkedOnly:checked){background:#4b455c;border-color:#aa9ccc;box-shadow:inset 0 0 0 1px #aa9ccc55}
#exportCallerImage{min-height:46px;font-weight:800;border-color:#a799ca;background:linear-gradient(125deg,#564a73,#403c49);color:#ece9f4;white-space:nowrap}
.caller-card-weapons .caller-weapon-trigger{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:3px;width:54px;height:53px;min-width:0;border:1px solid #5f5b6a;background:#1a191d;border-radius:6px}
.caller-card-weapons .caller-weapon-trigger img{width:44px;height:44px}.caller-card-weapons .caller-weapon-trigger b{position:absolute;right:0;bottom:0;font-size:11px;background:#141316e8;padding:1px 4px;border-radius:4px}
.caller-card-weapons .caller-weapon-trigger:hover,.caller-card-weapons .caller-weapon-trigger[aria-expanded=true]{border-color:#ab9dcd;background:#464151;box-shadow:0 0 0 2px #9280be40}
.caller-card-person{cursor:default}
.caller-build-list{display:grid;gap:10px}.caller-build{padding:10px;border:1px solid #5d5869;border-radius:8px;background:#222125}
.caller-build>div:first-child{display:flex;justify-content:space-between;font-size:12px;color:#beb3d8;margin-bottom:7px}.caller-build-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.caller-build-slots>div{display:grid;justify-items:center;gap:3px;min-width:0}.caller-build-slots small{font-size:10px;color:#b1aeb7}.caller-build-slots img{width:100%;max-width:72px;aspect-ratio:1;object-fit:contain}.caller-empty-slot{display:grid;place-items:center;height:52px;color:#86848b;font-size:22px}
.battle-column-filters th{vertical-align:bottom;padding-top:12px;padding-bottom:12px}
.battle-column-filters label{color:#b6b0c6;font-size:11px}
.battle-sort-cell .sort-button,.ip-column-sort{font-size:12px;white-space:nowrap;padding:0 0 5px}
.battle-column-filters .ip-rule-label{font-size:9px}
.highlight-publish-button,#accessSubmit{background:linear-gradient(130deg,#5b4b80,#373342);border-color:#9a8bc0;color:#f3f0f8;box-shadow:0 5px 22px #644f9920}
.highlight-publish-button:hover,#accessSubmit:hover{background:linear-gradient(130deg,#6b5995,#464055)}
.highlight-person>span{border-color:#9a8bbf;background:radial-gradient(circle at 30% 10%,#5a4e77,#222026 80%);box-shadow:0 0 0 3px #1b1a1e,0 0 0 5px #554c69}
.highlight-cover{aspect-ratio:4/3;background:#161517}.highlight-video-art{background:radial-gradient(ellipse at 50% 20%,#604f8944,transparent 65%),linear-gradient(135deg,#2e2c32,#222026);color:#b2a8cc}
.highlight-upload-preview{aspect-ratio:auto;min-height:180px;background:#171619;border-color:#4f4c57}
.highlight-upload-preview img,.highlight-upload-preview video{width:auto;height:auto;max-width:100%;max-height:55dvh;object-fit:contain}
#highlightViewer .highlight-stage{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:auto;min-height:120px;aspect-ratio:auto;background:#09090a}
#highlightViewer .highlight-stage>img,#highlightViewer .highlight-stage>video{display:block;width:auto;height:auto;max-width:100%;max-height:70dvh;object-fit:contain}
#highlightViewer .highlight-stage>video{width:100%}
#highlightViewer .highlight-viewer-tools{flex-wrap:wrap}
#highlightViewer .highlight-stage:fullscreen{width:100vw;height:100dvh;min-height:0;border-radius:0;background:#000000}
#highlightViewer .highlight-stage:fullscreen>img,#highlightViewer .highlight-stage:fullscreen>video{width:100%;height:100%;max-width:100%;max-height:100dvh;object-fit:contain}
#highlightViewer.highlight-expanded{position:fixed;inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:12px;display:flex;flex-direction:column;overflow:auto}
#highlightViewer.highlight-expanded .highlight-stage{flex:1;min-height:0}
#highlightViewer.highlight-expanded .highlight-stage>img,#highlightViewer.highlight-expanded .highlight-stage>video{max-height:calc(100dvh - 185px)}
#accessDialog{width:min(480px,calc(100vw - 28px));background:linear-gradient(155deg,#29272ff5,#17161afc 60%);border-color:#7a6e99;box-shadow:0 25px 100px #000000bb,0 0 60px #59468822;padding:32px;isolation:isolate}
#accessDialog::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background:linear-gradient(180deg,#151419a3,#19181df5 42%);opacity:.8}
#accessDialog::backdrop{background:radial-gradient(ellipse at 70% 25%,#4f3e7736,transparent 60%),#0a0a0be8;backdrop-filter:blur(6px)}
#accessDialog h2{color:#e2ddee}#accessDialog>p,.access-brand{color:#bab4ca}
#accessDialog .account-modes button{min-height:42px;font-weight:800;background:#201e23;border-color:#59526b;color:#b4b0bf}
#accessDialog .account-modes button.selected{background:#484257;border-color:#a394c8;color:#ebe7f3;box-shadow:inset 0 -2px #b4a7d2}
#accessForm>div{min-width:0;margin-bottom:16px}
#accessForm input[type=email],#accessForm input[type=text],#accessForm>div>input[type=password]{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:48px;padding:11px 12px;font-size:16px;background:#18171b;border:1px solid #5b536e;border-radius:6px;color:#f0edf6}
#accessForm .access-input{width:100%;min-height:48px;background:#18171b;border-color:#5b536e}
#accessForm .access-input input{background:transparent!important;font-size:16px}
#accessDialog #toggleCode,#accessDialog .forgot-password-link{color:#bcb0d7}
#accessDialog button:focus-visible,#accessForm input:focus-visible{outline-color:#b3a7d1}
@media(max-width:760px){
 body>header{background-position:65% 44%}
 #reports .battle-player-table thead>tr.battle-column-filters{display:grid;background:#232226;border-color:#55515e}
 #reports .battle-player-table .battle-column-filters th.battle-sort-cell,#reports .battle-column-filters .ip-column-sort{display:none}
 #reports .battle-player-table tbody>tr{background:linear-gradient(120deg,#252428,#1b1a1e);border-color:#4d4a54}
 #accessDialog{padding:25px 22px}
 #highlightViewer .highlight-stage>img,#highlightViewer .highlight-stage>video{max-height:65dvh}
 #highlightViewer.highlight-expanded .highlight-stage>img,#highlightViewer.highlight-expanded .highlight-stage>video{max-height:calc(100dvh - 200px)}
 .battle-column-filters .ip-rule-label{font-size:11px}
 #reports .battle-column-filters th:has(.ip-column-sort){display:none}
 #reports .battle-column-filters th:nth-child(2){grid-column:1/-1}
 .battle-day-date{font-size:16px;margin-right:3px}.battle-day-heading{gap:7px}.select-day{font-size:12px;margin-right:0}
 .insight-weapon-grid{grid-template-columns:repeat(var(--weapon-columns,2),minmax(0,1fr))}
 .weapon-ranking-heading{gap:4px}.weapon-ranking-metrics{width:100%;justify-content:space-between;gap:12px;margin-bottom:15px}
 .weapon-ranking-metrics b{font-size:24px}.attendance-recent{width:100%;margin:0 0 5px}.attendance-recent button{flex:1;min-height:44px}
 #callerIntel .caller-guild-candidates b,#callerIntel .caller-guild-battles b{font-size:27px}
 .caller-player-controls{flex-wrap:wrap}.caller-player-controls label:has(#callerMarkedOnly){flex:1;justify-content:center;font-size:15px}#exportCallerImage{flex:1}
}

/* Calm, readable chrome shared by every page. Game role and result colors retain their meanings. */
:root{color-scheme:dark;--bg:#13141b;--panel:#1c1d27;--line:#393a4b;--text:#eeedf5;--muted:#a7a6ba;--ice:#c4b8ee;--ember:#b6a2e6;--copper:#b6a2e6;--gytt-accent:#c4b5ed;--gytt-input:#171821;--gytt-soft:#252532;--gytt-raised:#292936}
html{background:var(--bg);scrollbar-color:#58546b #1c1d27}
body{background:radial-gradient(ellipse at 12% -8%,#8574ae1f,transparent 42%),radial-gradient(ellipse at 100% 25%,#4e788817,transparent 50%),#13141b;background-attachment:fixed;color:var(--text);font-weight:500}
body>header{height:auto;min-height:112px;padding:22px max(24px,3%);gap:24px;background:#191a23e8;border-bottom:1px solid #353444;box-shadow:none;position:relative}
body>header::before,body>header::after{content:none}
body>header .brand{display:flex;align-items:center;gap:17px;width:auto;max-width:100%;flex:none}
body>header .brand>img{display:block;width:68px;height:68px;object-fit:cover;border-radius:22px;border:1px solid #c6b1e377;filter:none;box-shadow:0 4px 20px #0002}
.brand-wordmark h1{font:900 38px/.95 system-ui,sans-serif;letter-spacing:-2px;color:#f4f0fc;margin:0}
.brand-dot{color:#c6b1ed;letter-spacing:0}
.brand-wordmark p{margin:9px 0 0;font-size:10px;font-weight:700;letter-spacing:2.8px;color:#a6a1b8}
.header-right{position:static;display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding:0;min-width:0}
.header-right span{font-size:12px;color:var(--muted);max-width:100%;overflow-wrap:anywhere;background:transparent}
.header-right select,#accessButton{min-height:38px;background:#22232f;border:1px solid #454252;border-radius:10px;color:var(--text)}
main{background:none;padding-top:22px}
a{color:#c8bbf0;text-underline-offset:4px}
button{border-radius:8px;background:#282835;border-color:#444152;color:#eeedf5;box-shadow:none}
button:hover{background:#343242;border-color:#8b7ea9}
button:disabled{opacity:.5}
input,select,textarea{border-radius:8px;background:var(--gytt-input);border-color:var(--line);color:var(--text);accent-color:var(--gytt-accent)}
input::placeholder,textarea::placeholder{color:#8e8c9f;opacity:1}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #c4b5ed;outline-offset:3px}
#formationTabs{gap:8px;padding:0 0 18px}
#formationTabs button{border:1px solid #3c394e;border-radius:12px;background:#20212b;color:#bcb6ce;box-shadow:none;min-height:42px}
#formationTabs button.active{border-color:#b7a6dc;background:#393247;color:#f5edff;box-shadow:none}
#tabs{gap:4px;border-bottom:1px solid #353443;padding-bottom:10px}
#tabs button{background:transparent;border-radius:9px;color:#b1adbf;border:1px solid transparent;box-shadow:none}
#tabs button:hover{background:#272633;color:#e7dff5}
#tabs button.active{background:#302b3e;border:1px solid #76678f;color:#eee4ff;box-shadow:none}
#tabs button b{background:#302d3c;color:#d3c8e8;border-radius:5px}
.toolbar h2,.highlights-heading h2{color:#e4d9f7;letter-spacing:.02em}
.summary-label,.toolbar-actions>span,.battle-day-date{color:#beb4d1}
.table,.report-table-wrap,.leaderboard{border-color:#3b394a;background:#1b1c25;border-radius:12px;box-shadow:none}
#roster .row{background:#1c1d27;border-bottom:1px solid #2c2d3a}
#roster .row:nth-child(odd):not(.head){background:#21222c}
#roster .row:hover:not(.head){background:#2a2737}
#roster .row.head,.report-table th{background:#2c2a39;color:#c8c1d6;border-color:#413a52;font-weight:650}
#roster .row input{background:#161720;border-color:#383647;border-radius:7px;color:#eeedf5}
#roster .row input:hover{background:#20202c;border-color:#625570}
#roster .row input:focus{background:#242131;border-color:#b3a1d6;box-shadow:0 0 0 2px #b3a1d61a}
#roster .weapon-button,#roster .weapon-button:not(:disabled){background:transparent;box-shadow:none!important}
#roster .weapon-button.fixed:hover{background:#343040}
.report-table td,.report-table tr{border-color:#34313f}
.report-table tr:nth-child(even),.report-table tr.battle-day-0{background:#20212b}
.report-table tr.battle-day-1{background:#25232f}
.report-table tr:hover,.report-table tr.battle-day-0:hover,.report-table tr.battle-day-1:hover{background:#302a3d}
.report-table .battle-date-divider th,.battle-date-divider th{background:#302b3d!important;border-top-color:#817197!important}
#reports .report-table tbody>tr.battle-selected,#reports .report-table tbody>tr.battle-selected:nth-child(even),#reports .report-table tbody>tr.battle-selected:hover{background:#3c334d;box-shadow:inset 3px 0 #b6a2df}
.total,.disarray,.death-card,.highlight-card,.account-card,.setting-card,.summary-panel,.siphon-events-panel,.siphon-balances-panel,.supply-wide-panel,.player-summary,.supply-summary,.profile-panel,.profile-card-box,.rival-card,.rival-detail,.caller-guild,.caller-guild-card,.intel-top,.rank-row{background:#20212c;border-color:#3d3a4e;border-radius:12px;box-shadow:none}
.total,.disarray{border-radius:9px}
.overall{border-color:#847098}
.source-switch,.attendance-filters,.battle-metrics>div,.report-controls,.profile-metric,.profile-weapon,.caller-row,.caller-build,.caller-guild-content .caller-row{background:#242430;border-color:#403b50;border-radius:10px}
.source-switch button,.battle-tabs button{border-radius:7px}
.battle-tabs button.selected,.source-switch button.selected,.category-option.selected,.caller-kind-tabs button.selected,.profile-days button[aria-pressed=true],.profile-role-filters button[aria-pressed=true],.attendance-recent button[aria-pressed=true]{background:#443951;border-color:#a38cc7;color:#f4edff;box-shadow:none}
.rival-card:hover,.rival-card.selected,.caller-guild-card.expanded{background:#302a3d;border-color:#8c78aa}
.caller-guild-toggle{background:#282432}
.caller-guild-toggle:hover,.caller-guild-toggle:focus-visible{background:#363042}
.intel-status,.report-sync-status,.admin-notice,.profile-banner,.my-regear-box,.supply-box-filter{background:#282534;border-color:#65536e;color:#d6c9e6;border-radius:9px}
.admin-slot,.setting-card,.category-option,.weapon-tile,.regear-item,.death-card>header{background:#24242f;border-color:#403a50}
.admin-slot{border-radius:8px}
.tile-caption{background:#18161feb}
.rank-row,.caller-row{border-bottom-color:#3b3548}
.summary-panel h4,.siphon-events-panel th,.siphon-balances-panel th{background:#302a3d;color:#d6c9e6}
.select-day{background:#332b40;border-color:#79668b;color:#e2d3f1}
.select-day input,#callerMarkedOnly{accent-color:#bba3e3}
.merge-day,#exportCallerImage,.highlight-publish-button,#saveCallerMark,.profile-export,#configurationDialog .configuration-primary{background:#554568;border-color:#aa91c9;color:#fff;box-shadow:none}
.caller-player-controls label:has(#callerMarkedOnly){background:#2b2535;border-color:#7d688f;color:#dfd1ef}
.caller-player-controls label:has(#callerMarkedOnly:checked){background:#43354f;border-color:#b39acb;box-shadow:none}
.caller-card-weapons .caller-weapon-trigger{background:#1c1b26;border-color:#51475f}
.caller-card-weapons .caller-weapon-trigger:hover,.caller-card-weapons .caller-weapon-trigger[aria-expanded=true]{background:#3a2e49;border-color:#b29ac9;box-shadow:0 0 0 2px #b29ac922}
.caller-card-weapons .caller-weapon-trigger b{background:#1d1825e8}
.caller-build>div:first-child,#callerIntel .caller-guild-candidates b,#callerIntel .caller-guild-battles b,.weapon-ranking-metrics b{color:#d1bfe6}
.highlight-person>span,.highlight-person>span{background:#494052;border-color:#c1a4df;box-shadow:none}
.highlight-cover,.highlight-upload-preview{background:#191820;border-color:#493d58}
.highlight-video-art{background:linear-gradient(135deg,#373044,#211e2e);color:#c2aed8}
dialog,#configurationDialog,#loadout94Dialog,#claimDialog,.caller-mark-dialog,#callerWeaponPreview{background:#1c1c27;border:1px solid #5c506e;border-radius:16px;color:#eeedf5;box-shadow:0 24px 80px #0007}
dialog::backdrop,#claimDialog::backdrop,.caller-mark-dialog::backdrop{background:#0e0e18cf;backdrop-filter:blur(5px)}
.dialog-heading{border-color:#383143}
#configurationDialog input,#configurationDialog select{background:#181822;border-color:#4c405e}
#configurationDialog button{background:#2b2638;border-color:#5b4b70}
#configurationDialog .configuration-primary{background:#5b4575;border-color:#b09bc9}
#configurationDialog .configuration-target{background:#262232;border-color:#514260}
#configurationDialog .configuration-squads span{background:#3c324c;color:#dfd0f1}
#loadout94Preview{background:#20202bf9;border-color:#7d6d95;color:#f1ecf8;box-shadow:0 14px 35px #0007}
.loadout-cell{background:linear-gradient(145deg,#2e2b3c,#22202e);border-color:#625372;border-radius:10px}
.loadout-cell small{color:#c4b9d2}
.loadout-cell.vacant{background:transparent;border-color:#625372}
.loadout-cell.selected{border-color:#c5a6ee;box-shadow:inset 0 0 0 1px #c5a6ee}
.loadout-cell.linked{background:#30283f;border-color:#8a71a4}
.loadout-cell.linked:disabled{opacity:1}
.loadout-empty{color:#8e7ea2}
#loadout94Choices button{background:#282330;border-color:#55435f;border-radius:9px}
#loadout94Choices button:hover,#loadout94Choices button.selected{background:#40324f;border-color:#b496d4}
.lottery-setup,.lottery-side>section,.lottery-history,.lottery-roster-card,.lottery-panel{background-color:#24212f;border-color:#4e405e}
.lottery-eyebrow,.highlight-eyebrow{color:#bda4da}
/* Authentication is its own quiet card; no full-bleed illustration beneath inputs. */
#accessDialog{width:min(468px,calc(100vw - 28px));padding:28px 32px 30px;background:#20202c;border:1px solid #696078;border-radius:22px;box-shadow:0 28px 100px #0006;max-height:calc(100dvh - 24px);isolation:isolate}
#accessDialog::before{content:none;background:none}
#accessDialog::backdrop{background:radial-gradient(ellipse at 20% 15%,#75629018,transparent 60%),#101019ef;backdrop-filter:blur(8px)}
#accessDialog .access-language{margin-bottom:26px}
#accessDialog .access-language label{color:#9f96b2;font-size:11px}
#accessDialog .access-language select{background:#2a2736;border:1px solid #51475f;border-radius:9px;color:#e5dcf0;padding:8px 10px}
#accessDialog .access-brand{gap:15px;letter-spacing:0;color:#f3edf9;align-items:center}
#accessDialog .access-brand img{display:block;width:72px;height:72px;border-radius:22px;border:1px solid #d7bae866;object-fit:cover}
#accessDialog .access-brand>div>span{font:900 36px/1 system-ui,sans-serif;letter-spacing:-1.6px}
#accessDialog .access-brand small{display:block;color:#b7a8c8;letter-spacing:2px;font-size:9px;margin-top:8px;font-weight:700}
#accessDialog h2{font-size:25px;line-height:1.4;letter-spacing:.02em;color:#eee7f7;margin:25px 0 8px}
#accessDialog>p{font-size:13px;line-height:1.7;color:#b1a7bf;margin-bottom:23px}
#accessDialog .account-modes{gap:4px;background:#171720;border:1px solid #393142;padding:4px;border-radius:11px;margin-bottom:22px}
#accessDialog .account-modes button{border:0;border-radius:7px;background:transparent;color:#aca0bc;box-shadow:none;min-height:39px;font-weight:650}
#accessDialog .account-modes button.selected{background:#544162;color:#fff2ff;border:0;box-shadow:none}
#accessForm label{font-size:13px;color:#d4c8e1;font-weight:600}
#accessForm input[type=email],#accessForm input[type=text],#accessForm>div>input[type=password],#accessForm .access-input{background:#181721;border:1px solid #53455e;border-radius:10px;color:#f5effb;min-height:48px}
#accessForm input:focus{border-color:#ba9bd7}
#accessForm .access-input:focus-within{outline:2px solid #bfa4d8;outline-offset:2px}
#accessDialog #toggleCode{color:#cab6df}
#accessForm .password-help{color:#aaa0bc;font-size:12px;line-height:1.7}
#accessForm .password-input-hint{color:#dec496}
#accessSubmit{border:1px solid #d4b5eb;border-radius:10px;background:#c4abdc;color:#23192e;box-shadow:none;font-weight:750;min-height:48px}
#accessSubmit:hover{background:#ddc9ee;border-color:#e6cff7}
#accessDialog .forgot-password-link{color:#c3add9;font-size:13px}
#accessDialog .forgot-password-link:focus-visible{outline-color:#c4abdc}
#accessForm input:-webkit-autofill{-webkit-text-fill-color:#f0e9f8!important;-webkit-box-shadow:0 0 0 1000px #211d2e inset;caret-color:#e1c5f5;border-radius:8px}
@media(max-width:900px){body>header{min-height:100px;padding:18px 22px;gap:14px}.brand-wordmark h1{font-size:34px}.brand-wordmark p{font-size:9px;letter-spacing:2px}.header-right{max-width:52%}}
@media(max-width:560px){body>header{min-height:94px;padding:15px 16px;align-items:center;gap:12px}body>header .brand{gap:11px}body>header .brand>img{width:52px;height:52px;border-radius:17px}.brand-wordmark h1{font-size:29px}.brand-wordmark p{font-size:8px;letter-spacing:1px;margin-top:6px}.header-right{gap:7px;max-width:48%}.header-right select,#accessButton{font-size:11px;min-height:34px;padding:5px 8px}.header-right span{display:none}main{padding-top:15px}#tabs{gap:3px}#accessDialog{padding:22px 23px 24px;border-radius:18px}#accessDialog .access-language{margin-bottom:20px}#accessDialog h2{font-size:23px;margin-top:22px}#accessDialog .access-brand img{width:64px;height:64px;border-radius:20px}}
@media(prefers-reduced-motion:reduce){button,input{transition:none}}
/* Override older viewport-fit selectors without changing the ten-row roster sizing. */
.brand-wordmark p{font-family:system-ui,sans-serif;white-space:nowrap;text-shadow:none}
.header-right{flex-direction:row;align-self:center}
.my-siphon-balance,.siphon-import{background:#272333;border-color:#5b4b70}
.my-siphon-balance b{color:#d4bcea}
.siphon-import button{background:#534064;border-color:#aa8cc5}
@media(min-width:1100px) and (min-height:650px){
 body[data-roster-view=true]>header{flex:0 0 104px;height:104px;min-height:0;padding:16px max(24px,3%)}
 body[data-roster-view=true]>header .brand{height:auto;width:auto;max-width:100%;gap:17px}
 body[data-roster-view=true]>header .brand img{width:68px;height:68px;max-height:none;object-fit:cover}
 body[data-roster-view=true]>header .header-right{padding:0;gap:12px}
}

/* player-choice97.css */
#playerChoice97{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 30px);padding:24px;background:#20202c;border:1px solid #8d77a7;color:#eee7f7;border-radius:16px;overflow:auto;box-shadow:0 24px 80px #0008}
#playerChoice97::backdrop{background:#10101bd9;backdrop-filter:blur(5px)}
#playerChoice97 .dialog-heading{align-items:center;gap:14px}#playerChoice97 h2{font-size:22px;margin:0}
#playerChoice97 .player-choice-name{font-size:19px;font-weight:750;color:#dec4f1;overflow-wrap:anywhere;margin:20px 0 8px}
#playerChoice97 .hint{font-size:13px;line-height:1.7;color:#b9abc8}
.player-choice-list{display:grid;gap:10px;margin:18px 0;max-height:52dvh;overflow:auto;padding:2px}
#playerChoice97 .player-choice-card{display:grid;gap:7px;width:100%;min-width:0;text-align:left;padding:16px;border:1px solid #625171;border-radius:12px;background:#2b2638;color:#d5c8e2;white-space:normal;overflow-wrap:anywhere}
#playerChoice97 .player-choice-card:hover{background:#40334e;border-color:#bda0dd}
#playerChoice97 .player-choice-card:focus-visible{outline:2px solid #d1b4eb;outline-offset:1px}
.player-choice-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.player-choice-card-head strong{font-size:17px;color:#f0e6fa}
.player-choice-priority{font-size:12px;border:1px solid #8d71a8;padding:3px 9px;background:#473452;border-radius:30px;white-space:nowrap;flex-shrink:0}
.player-choice-card b{font-weight:600}.player-choice-card code{font-size:12px;color:#b8a7ca;letter-spacing:.02em;margin-top:3px;word-break:break-all}
@media(max-width:560px){#playerChoice97{padding:20px}.player-choice-list{max-height:48dvh}#playerChoice97 h2{font-size:20px}#playerChoice97 .player-choice-card{padding:14px}}

/* stability98.css */
body.app-loading98 main{visibility:hidden;pointer-events:none}
.startup-recovery98{position:fixed;bottom:14px;right:14px;left:14px;max-width:540px;margin-left:auto;z-index:2147483647;padding:16px;border:1px solid #b3a4e6;border-radius:12px;background:#20202bf5;color:#eee7f7;box-shadow:0 8px 30px #0008;font:600 14px/1.6 system-ui,sans-serif}
.startup-recovery98 p{margin:8px 0;white-space:pre-line;overflow-wrap:anywhere}.startup-recovery98 button{margin:6px 8px 0 0;min-height:40px}
#accessDialog .access-brand img,.brand>img{font-size:0}
#memberAdmin [data-verify-player98]{font-size:12px;max-width:100%}
