:root{color-scheme:dark;--bg:#101315;--surface:#191d20;--surface-2:#202529;--line:#32383d;--text:#f2f4f5;--muted:#9ca5ac;--accent:#d3a22f;--good:#3c9a63;--good-bg:#193426;--warning:#e0b53d;--warning-bg:#3a3116;--bad:#d85c62;--bad-bg:#3b2023;--link:#75a9ff}.mobile-page-title{display:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}header{border-bottom:1px solid var(--line);background:var(--surface)}.topline{min-height:58px;display:flex;align-items:center;gap:18px;padding:0 max(18px,calc((100% - 1320px)/2));overflow:hidden}.brand{flex:0 0 auto;white-space:nowrap;color:var(--text);font-size:15px}.brand strong{font-weight:750}.account-menu{display:flex;flex:0 0 auto;align-items:center;gap:12px;margin-left:auto;color:var(--muted);font-size:13px}.account-menu form{display:block}.logout-button{padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--text);font-size:13px;font-weight:600}.logout-button:hover{border-color:var(--accent)}nav{display:flex;gap:6px}.topline nav{min-width:0;flex:1;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.tab{flex:0 0 auto;white-space:nowrap;padding:9px 13px;border:1px solid var(--line);border-radius:6px;color:var(--muted);text-decoration:none;background:var(--bg)}.tab:hover{color:var(--text);border-color:var(--accent)}.topline nav .tab.active{padding-top:7px;border-top:3px solid var(--accent);color:var(--text)}main{max-width:1320px;margin:0 auto;padding:32px 18px 48px}.narrow{max-width:540px;margin:5vh auto}.eyebrow{color:var(--accent);font-size:12px;letter-spacing:.14em;font-weight:700;margin:0 0 8px}h1{font-size:clamp(28px,5vw,42px);letter-spacing:-.04em;line-height:1.05;margin:0 0 8px}h2{font-size:20px;margin:30px 0 10px}.lead{color:var(--muted);font-size:15px;margin:0 0 22px}.pagehead{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.pagehead form,.inline-form{display:block}form{display:grid;gap:12px}label{font-weight:600}input{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);font:inherit}button,.button{display:inline-block;border:0;border-radius:7px;padding:11px 15px;background:var(--accent);color:#17130a;font:inherit;font-weight:750;text-decoration:none;cursor:pointer}.secondary{background:var(--surface);color:var(--text);border:1px solid var(--line)}.check{display:flex;align-items:flex-start;gap:10px;color:var(--muted);font-weight:400}.check input{width:auto;margin-top:5px}aside,.notice{margin:18px 0;padding:14px;border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:7px}.notice.success{border-color:var(--good);color:#bde7cb}.notice.error{border-color:var(--bad);color:#ffbfc2}
.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin:18px 0}.summary-grid article,.summary-card{min-height:78px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);text-align:left;font-weight:400}.summary-grid span{display:block;color:var(--muted);font-size:13px}.summary-grid strong{display:block;margin-top:4px;font-size:23px}.summary-card:hover,.summary-card.active{border-color:var(--accent)}.summary-card.active{box-shadow:inset 0 0 0 1px var(--accent)}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0}.filters{display:flex;gap:8px}.filter{background:var(--surface);color:var(--text);border:1px solid var(--line);font-weight:500}.filter.active{border-color:var(--accent);background:var(--accent);color:#17130a}.toolbar input{max-width:280px}
.table-wrap{overflow:visible;border:1px solid var(--line);border-radius:8px;background:var(--surface)}table{width:100%;border-collapse:collapse;background:var(--surface)}th,td{text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:middle}th{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);background:var(--surface-2)}td small{display:block;color:var(--muted);font-size:11px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#1d2226}.table-wrap a{color:var(--link);text-decoration:none}.table-wrap a:hover{text-decoration:underline}.pill{display:inline-block;border:1px solid currentColor;border-radius:999px;padding:2px 8px;font-size:12px}.pill.good{color:#8bd2a4;background:var(--good-bg)}.pill.warning{color:#f0cb61;background:var(--warning-bg)}.pill.bad{color:#ff9499;background:var(--bad-bg)}.pill.muted{color:var(--muted);background:var(--surface-2)}.baseline{color:var(--muted);font-size:12px}.state-icon{display:inline-grid;width:26px;height:26px;place-items:center;border:1px solid;border-radius:4px;font-weight:750}.state-icon.good{color:#8bd2a4;background:var(--good-bg)}.state-icon.attention{color:#f0cb61;background:var(--warning-bg)}.state-icon.error{color:#ff9499;background:var(--bad-bg)}
dl{display:grid;grid-template-columns:minmax(160px,1fr) 2fr;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface)}dt,dd{margin:0;padding:12px;border-bottom:1px solid var(--line)}dt{color:var(--muted);background:var(--surface-2)}.action-menu{position:relative}.action-menu summary{list-style:none;border:1px solid var(--line);border-radius:6px;padding:7px 10px;cursor:pointer;color:var(--text);background:var(--bg)}.action-menu summary::-webkit-details-marker{display:none}.action-menu[open] summary{border-color:var(--accent)}.action-menu>div{position:absolute;right:0;z-index:10;min-width:190px;margin-top:6px;padding:6px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 12px 30px #000a}.action-menu a,.action-menu button{display:block;width:100%;padding:9px 10px;border:0;border-radius:5px;text-align:left;background:transparent;color:var(--text);font-weight:500}.action-menu a:hover,.action-menu button:hover{background:var(--line);text-decoration:none}.action-menu button:disabled{opacity:.45;cursor:not-allowed}
[hidden]{display:none!important}@media(max-width:760px){.topline{height:auto;padding-top:14px;align-items:flex-start;flex-wrap:wrap;gap:10px}.topline nav{order:3;padding-bottom:12px;overflow-x:auto;width:100%}.account-menu{margin-left:auto}.summary-grid{grid-template-columns:repeat(2,1fr)}.toolbar,.pagehead{align-items:stretch;flex-direction:column}.toolbar input{max-width:none}.filters{overflow-x:auto}dl{grid-template-columns:1fr}dd{padding-top:4px}}
.date-detail{display:inline-block;margin-left:8px;color:var(--muted);font-size:12px}time{white-space:nowrap}
.profile-tabs{display:flex;gap:8px;margin:22px 0}.profile-tabs .tab.active{border-color:var(--accent);background:var(--accent);color:#17130a}.battle-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:12px;margin:18px 0}.battle-grid article{padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.battle-grid article span{display:block;color:var(--muted);font-size:13px}.battle-grid article strong{display:block;margin-top:5px;font-size:24px}.battle-grid .total{grid-column:1/-1;border-color:var(--accent)}
@media(max-width:600px){.battle-grid{grid-template-columns:1fr}}
.report-table thead tr:first-child th{text-align:center;border-left:0;border-right:2px solid #4b5359}.report-table thead tr:first-child th:first-child,.report-table thead tr:first-child th:nth-child(2),.report-table thead tr:first-child th:nth-child(3){text-align:left;border-left:0;border-right:1px solid var(--line)}.report-table thead tr:first-child th:nth-child(3){border-right:2px solid #4b5359}.report-table thead tr:first-child th:last-child{border-right:0}
.report-table{width:fit-content;max-width:100%;margin-inline:auto;overflow-x:auto;overflow-y:hidden}
.report-table th,.report-table td{border-right:1px solid var(--line)}.report-table th:last-child,.report-table td:last-child{border-right:0}
.report-state{display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:50%;color:var(--warning);font-weight:700}.report-state.no-data{color:var(--muted);background:var(--surface-2)}.report-state+small{display:inline-block;margin:0 0 0 6px;vertical-align:middle}.report-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin:14px 0;color:var(--muted);font-size:12px}.report-legend>span{display:flex;align-items:center;gap:6px}.report-table td small{margin-top:2px}
.report-table .empty-period{text-align:center}.empty-period-state{display:inline-flex;align-items:center;justify-content:center}.empty-period-state small{display:inline-block;margin:0 0 0 6px}
.report-table .empty-period[colspan="2"]{background-image:linear-gradient(to right,transparent calc(50% - .5px),var(--line) calc(50% - .5px),var(--line) calc(50% + .5px),transparent calc(50% + .5px))}
.report-table .empty-period[colspan="3"]{background-image:linear-gradient(to right,transparent calc(33.333% - .5px),var(--line) calc(33.333% - .5px),var(--line) calc(33.333% + .5px),transparent calc(33.333% + .5px)),linear-gradient(to right,transparent calc(66.666% - .5px),var(--line) calc(66.666% - .5px),var(--line) calc(66.666% + .5px),transparent calc(66.666% + .5px))}
.binary-icon{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border:1px solid;border-radius:50%;font-size:14px;font-weight:800;line-height:1}.binary-icon.good{color:#8bd2a4;background:var(--good-bg)}.binary-icon.bad{color:#ff9499;background:var(--bad-bg)}.action-menu .menu-icon{width:38px;padding:7px;text-align:center;font-size:17px;line-height:1}.member-legend{margin-top:0}
.member-info-icons{display:flex;align-items:center;gap:5px}.info-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 5px;border:1px solid;border-radius:5px;font-size:10px;font-weight:800;cursor:default}.info-icon::after{content:attr(data-tooltip);position:absolute;right:0;top:calc(100% + 7px);z-index:30;width:max-content;max-width:280px;padding:7px 9px;border:1px solid var(--line);border-radius:6px;background:#090b0d;color:var(--text);font-size:12px;font-weight:500;line-height:1.35;white-space:normal;box-shadow:0 8px 24px #000a;opacity:0;pointer-events:none;transform:translateY(-3px);transition:opacity .12s,transform .12s}.info-icon:hover::after,.info-icon:focus-visible::after{opacity:1;transform:translateY(0)}.discord-mark{display:block;width:16px;height:16px;background:currentColor;mask:url('/assets/discord.svg') center/contain no-repeat;-webkit-mask:url('/assets/discord.svg') center/contain no-repeat}.info-icon.good{color:#8bd2a4;background:var(--good-bg)}.info-icon.bad{color:#ff9499;background:var(--bad-bg)}.info-icon.unknown{color:var(--muted);background:var(--surface-2)}.info-help{margin-top:8px}.compact-select{display:flex;align-items:center;gap:8px;color:var(--muted)}select{padding:9px 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text);font:inherit}
.tooltip-icon{position:relative;cursor:default}.tooltip-icon::after{content:attr(data-tooltip);position:absolute;left:50%;top:calc(100% + 7px);z-index:40;width:max-content;max-width:280px;padding:7px 9px;border:1px solid var(--line);border-radius:6px;background:#090b0d;color:var(--text);font-size:12px;font-weight:500;line-height:1.35;white-space:normal;box-shadow:0 8px 24px #000a;opacity:0;pointer-events:none;transform:translate(-50%,-3px);transition:opacity .12s,transform .12s}.tooltip-icon:hover::after,.tooltip-icon:focus-visible::after{opacity:1;transform:translate(-50%,0)}
.stat-positive{color:#8bd2a4}.stat-negative{color:#ff9499}
.guide-category{margin:28px 0}.guide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.guide-card{display:flex;min-height:120px;flex-direction:column;padding:18px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);text-decoration:none}.guide-card:hover{border-color:var(--accent)}.guide-card strong{font-size:18px}.guide-card span{margin:6px 0 14px;color:var(--muted)}.guide-card small{margin-top:auto;color:var(--muted)}
.guide-reader{max-width:920px;margin:0 auto}.guide-breadcrumb,.guide-breadcrumb a{color:var(--muted)}.guide-content{font-size:16px;line-height:1.7}.guide-content h1,.guide-content h2,.guide-content h3{margin-top:1.6em;letter-spacing:-.02em}.guide-content a{color:var(--link)}.guide-content blockquote{margin:18px 0;padding:10px 16px;border-left:4px solid var(--accent);background:var(--surface);color:var(--muted)}.guide-content code{padding:2px 5px;border-radius:4px;background:var(--surface-2)}.guide-content pre{overflow:auto;padding:16px;border:1px solid var(--line);border-radius:8px;background:#090b0d}.guide-content pre code{padding:0;background:transparent}.guide-content img{max-width:100%;height:auto;border-radius:8px}.guide-content table{display:block;overflow-x:auto}.guide-content th,.guide-content td{white-space:normal}
.guide-fields{display:grid;grid-template-columns:2fr 1fr;gap:12px}.guide-fields label:nth-child(3),.guide-fields label:nth-child(5){grid-column:1/-1}.guide-editor-panels{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:8px}.guide-editor textarea{width:100%;min-height:520px;resize:vertical;padding:14px;border:1px solid var(--line);border-radius:8px;background:#0c0f11;color:var(--text);font:14px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}.editor-label{display:block;margin-bottom:8px;font-weight:600}.guide-preview{min-height:520px;padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.editor-actions{display:flex;gap:10px}.danger-button{background:var(--bad);color:white}.revision-list{padding:16px 16px 16px 38px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.revision-list li{padding:5px}@media(max-width:900px){.guide-editor-panels,.guide-fields{grid-template-columns:1fr}.guide-fields label:nth-child(3),.guide-fields label:nth-child(5){grid-column:auto}.guide-editor textarea,.guide-preview{min-height:360px}}
.wide-report{max-width:none;width:100%}
.wide-report>section{width:fit-content;max-width:100%;margin-inline:auto}
.rw-controls{display:flex;align-items:center;gap:10px}.rw-controls form{display:block}.ranked-war-table{width:fit-content;max-width:100%;margin-inline:auto;overflow-x:auto;overflow-y:hidden}.ranked-war-table table{width:max-content;min-width:100%;font-variant-numeric:tabular-nums}.ranked-war-table th,.ranked-war-table td{padding:7px 9px;text-align:center;border-right:1px solid var(--line)}.ranked-war-table thead tr:first-child th{border-right:3px solid #4b5359}.ranked-war-table thead tr:first-child th:first-child,.ranked-war-table thead tr:first-child th:nth-child(2){border-right:1px solid var(--line)}.ranked-war-table thead tr:first-child th:nth-child(2){border-right:3px solid #4b5359}.ranked-war-table thead tr:nth-child(2) th:nth-child(3n){border-right:3px solid #4b5359}.ranked-war-table tbody td:nth-child(2),.ranked-war-table tbody td:nth-child(3n+2){border-right:3px solid #4b5359}.ranked-war-table thead th{background:var(--surface-2)}.ranked-war-table thead th a{color:var(--link)}.ranked-war-table thead small{display:block;margin-top:2px;color:var(--muted);font-weight:500;letter-spacing:0;text-transform:none}.ranked-war-table .rw-member,.ranked-war-table thead tr:first-child th:first-child{position:sticky;left:0;z-index:9;width:150px;min-width:150px;max-width:150px;overflow:hidden;text-overflow:ellipsis;text-align:left;background:var(--surface)}.ranked-war-table .rw-dif,.ranked-war-table thead tr:first-child th:nth-child(2){position:sticky;left:150px;z-index:9;width:48px;min-width:48px;text-align:right;background:var(--surface)}.ranked-war-table thead tr:first-child th:first-child,.ranked-war-table thead tr:first-child th:nth-child(2){z-index:11;background:var(--surface-2)}.ranked-war-table .rw-metric{min-width:64px;font-weight:700}.ranked-war-table .rw-good{background:#17633f;color:#e0f7e9}.ranked-war-table .rw-mid{background:#829047;color:#fff}.ranked-war-table .rw-warning{background:#b98718;color:#fff}.ranked-war-table .rw-bad{background:#9b3540;color:#fff}
.ranked-war-table th.sortable{cursor:pointer;user-select:none}.ranked-war-table th.sortable:hover,.ranked-war-table th.sortable:focus-visible{color:var(--text);outline:none}.ranked-war-table th.sortable::after{content:'↕';display:inline-block;margin-left:5px;color:#687178;font-size:10px}.ranked-war-table th.sortable[data-sort-direction="asc"]::after{content:'▲';color:var(--accent)}.ranked-war-table th.sortable[data-sort-direction="desc"]::after{content:'▼';color:var(--accent)}
.back-link{display:inline-block;margin-bottom:18px;color:var(--muted);text-decoration:none}.back-link:hover{color:var(--text)}.status-badge{padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);text-transform:capitalize}.analysis-card{margin:18px 0;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.analysis-card h2{margin:0 0 12px}.analysis-card .notice{background:var(--bg)}.war-chart{overflow-x:auto}.war-chart svg{display:block;width:100%;min-width:760px;height:auto;border:1px solid var(--line);border-radius:8px;background:#11171b}.war-grid line{stroke:#344047;stroke-width:1}.war-grid line.zero-line{stroke:#879097;stroke-width:1.5}.war-grid text{fill:var(--muted);font-size:11px}.score-leading{fill:#58733b;opacity:.22}.score-trailing{fill:#7c443e;opacity:.22}.war-window-push{fill:#d6a928;opacity:.22}.war-window-farming{fill:#4c94d8;opacity:.13}.war-chart-legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px;color:var(--muted);font-size:12px}.war-chart-legend span{display:flex;align-items:center;gap:6px}.war-chart-legend i{width:16px;height:3px;border-radius:2px}.war-chart-legend .push-key{height:10px;background:#d6a928;opacity:.55}.war-chart-legend .farm-key{height:10px;background:#4c94d8;opacity:.4}.section-heading{display:flex;justify-content:space-between;gap:16px}.section-heading p{margin:0 0 14px;color:var(--muted)}select{padding:11px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);font:inherit}.add-window{display:grid;grid-template-columns:130px 110px minmax(180px,1fr) minmax(180px,1fr) auto;align-items:end;margin-bottom:14px}.window-form{display:grid;grid-template-columns:minmax(175px,1fr) minmax(175px,1fr) auto;gap:8px}.window-form input,.add-window input{padding:9px}.settings-row{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr)) auto;align-items:end}.settings-row label{color:var(--muted);font-size:12px}.settings-row input{margin-top:5px}.war-metrics{overflow-x:auto;overflow-y:hidden}.war-metrics table{width:max-content;min-width:100%;font-variant-numeric:tabular-nums}.war-metrics th,.war-metrics td{text-align:center;white-space:nowrap}.war-metrics th:first-child,.war-metrics td:first-child{position:sticky;left:0;z-index:2;text-align:left;background:var(--surface)}.war-metrics th.sortable{cursor:pointer;user-select:none}.war-metrics th.sortable::after{content:'↕';margin-left:4px;color:#687178;font-size:10px}.war-metrics th.sortable[data-sort-direction="asc"]::after{content:'▲';color:var(--accent)}.war-metrics th.sortable[data-sort-direction="desc"]::after{content:'▼';color:var(--accent)}.danger{color:#ffbfc2;border-color:var(--bad)}
.chart-note{margin:8px 0 0;color:var(--muted);font-size:12px}
.war-mode-control{display:flex;align-items:end;gap:10px}.war-mode-control form{display:block}.war-mode-control label{display:grid;gap:4px;color:var(--muted);font-size:12px}.war-mode-control select{min-width:130px;padding:7px 10px}
.chart-zoom-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-bottom:8px;color:var(--muted);font-size:12px}.chart-zoom-controls button{padding:5px 9px;min-width:34px}.chart-zoom-controls small{margin-left:5px}.war-chart{position:relative;overflow:visible}.war-chart-scroll{position:relative;width:100%;overflow-x:auto;overflow-y:hidden;cursor:default;border:1px solid var(--line);border-radius:8px;background:#11171b;scrollbar-width:thin}.war-chart-scroll.zoomed{cursor:grab}.war-chart-scroll.dragging{cursor:grabbing;user-select:none}.war-chart-scroll>svg:first-child{display:block;width:100%;min-width:760px;height:280px;border:0;border-radius:0;background:#11171b}.war-chart-scroll [data-chart-scaled] line,.war-chart-scroll [data-chart-scaled] polyline,.war-chart-scroll [data-chart-scaled] rect{vector-effect:non-scaling-stroke}.war-y-axis{position:sticky;left:0;display:block;width:48px!important;min-width:48px!important;height:280px!important;margin-top:-280px;z-index:3;background:linear-gradient(90deg,#11171b 82%,transparent);pointer-events:none;border:0!important;border-radius:0!important}.chart-hover-line{position:absolute;z-index:5;width:1px;background:#dbe4eaaa;pointer-events:none;box-shadow:0 0 0 1px #0005}.chart-time-tooltip{position:absolute;z-index:6;padding:6px 9px;border:1px solid var(--line);border-radius:6px;background:#090d10;color:var(--text);font-size:12px;font-variant-numeric:tabular-nums;pointer-events:none;box-shadow:0 5px 18px #0008;white-space:nowrap}.pattern-windows>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none}.pattern-windows>summary::-webkit-details-marker{display:none}.pattern-windows>summary::after{content:'＋';color:var(--accent);font-size:20px}.pattern-windows[open]>summary::after{content:'−'}.pattern-windows>summary span{display:flex;flex-direction:column}.pattern-windows>summary strong{font-size:20px}.pattern-windows>summary small,.pattern-window-content>p{color:var(--muted)}.pattern-window-content{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.pattern-window-content>p{margin-top:0}
.war-metrics thead tr:first-child th{border-right:3px solid #4b5359}.war-metrics thead tr:first-child th:last-child{border-right:1px solid var(--line)}.war-metrics thead tr:nth-child(2) th:nth-child(5),.war-metrics thead tr:nth-child(2) th:nth-child(10),.war-metrics thead tr:nth-child(2) th:nth-child(14){border-right:3px solid #4b5359}.war-metrics tbody td:nth-child(1),.war-metrics tbody td:nth-child(6),.war-metrics tbody td:nth-child(11),.war-metrics tbody td:nth-child(15),.war-metrics tbody td:nth-child(16),.war-metrics tbody td:nth-child(17){border-right:3px solid #4b5359}
.war-mobile-filter,.war-mobile-cards{display:none}
@media(max-width:760px){.war-metrics{overflow:visible}.war-metrics>table{display:none}.war-mobile-filter{position:sticky;top:8px;z-index:15;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:10px;padding:4px;border:1px solid var(--line);border-radius:8px;background:var(--bg);box-shadow:0 7px 14px #0008}.war-mobile-filter button{min-width:0;padding:7px 4px;border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:12px}.war-mobile-filter button.active{background:var(--warning-bg);color:var(--text)}.war-mobile-cards{display:grid;gap:8px}.war-member-card{border:1px solid var(--line);border-radius:8px;background:var(--bg)}.war-member-card>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;list-style:none;cursor:pointer}.war-member-card>summary::-webkit-details-marker{display:none}.war-member-card[open]>summary{border-bottom:1px solid var(--line)}.war-member-card-name{min-width:0;overflow:hidden;color:var(--link);font-weight:750;text-overflow:ellipsis;white-space:nowrap}.war-member-card-headline{display:grid;grid-template-columns:repeat(2,auto);gap:10px;flex:0 0 auto}.war-member-card-headline .war-mobile-metric{text-align:right}.war-member-card-headline .war-mobile-metric span{font-size:10px}.war-member-card-headline .war-mobile-metric strong{font-size:16px}.war-member-card-content{padding:10px 11px 12px}.war-mobile-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.war-mobile-metric{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:8px 9px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.war-mobile-metric span{min-width:0;overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.war-mobile-metric strong{font-size:14px;font-variant-numeric:tabular-nums}.war-mobile-section[hidden]{display:none}}
@media(max-width:900px){.add-window,.settings-row{grid-template-columns:1fr 1fr}.window-form{grid-template-columns:1fr}.analysis-card{padding:12px}}
.wide-report>section.organized-crimes{width:100%}.organized-crimes{min-width:0}.oc-summary{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px;margin:18px 0}.oc-summary article{padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.oc-summary span{display:block;color:var(--muted);font-size:12px;text-transform:uppercase}.oc-summary strong{display:block;margin-top:5px;font-size:24px}.oc-overview-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:18px}.oc-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.oc-section-title h2{margin:0}.oc-section-title>strong{display:grid;min-width:34px;height:34px;place-items:center;border:1px solid var(--line);border-radius:18px;background:var(--bg)}.oc-muted,.oc-empty{color:var(--muted)}.oc-member-list{display:flex;flex-wrap:wrap;gap:7px}.oc-member-list span{padding:5px 9px;border:1px solid var(--line);border-radius:999px;background:var(--bg);font-size:13px}.oc-warnings{display:grid;gap:8px}.oc-warnings>div{display:grid;grid-template-columns:24px 1fr;gap:9px;align-items:start;padding:9px 10px;border:1px solid #665424;border-radius:7px;background:var(--warning-bg)}.oc-warnings>div>span{display:grid;width:22px;height:22px;place-items:center;border-radius:50%;background:var(--warning);color:#211a08;font-weight:800}.oc-warnings p{margin:0}.oc-card{margin:9px 0;border:1px solid var(--line);border-radius:8px;background:var(--bg)}.oc-card>summary{display:flex;justify-content:space-between;gap:18px;padding:14px 16px;cursor:pointer}.oc-card>summary span{display:flex;gap:10px;align-items:center}.oc-card>summary small{color:var(--muted)}.oc-card>summary span:last-child{font-variant-numeric:tabular-nums}.oc-status{display:inline-flex;padding:3px 8px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:11px;font-style:normal;font-weight:700;text-transform:capitalize}.oc-status.planning{border-color:#756126;color:#f1cf69;background:var(--warning-bg)}.oc-status.recruiting{border-color:#315b72;color:#8fc9e8;background:#142935}.oc-status.successful{border-color:#2f7149;color:#9cddb4;background:var(--good-bg)}.oc-status.failure{border-color:#7b3840;color:#ffadb1;background:var(--bad-bg)}.oc-card-body{padding:0 16px 14px}.oc-card-body table{width:100%}.oc-card-body th,.oc-card-body td{padding:8px 10px}.oc-warning{color:#ffd07a}.oc-ok{color:#8bd3a8}.oc-subsection{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.organized-crimes .table-wrap{margin:12px 0}.organized-crimes table{font-variant-numeric:tabular-nums}.organized-crimes th{color:var(--muted)}.oc-revenue-table{width:100%}.oc-history>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;cursor:pointer;list-style:none}.oc-history>summary::-webkit-details-marker{display:none}.oc-history>summary span{display:flex;flex-direction:column}.oc-history>summary strong{font-size:18px}.oc-history>summary small{color:var(--muted);font-size:12px;font-weight:400}.oc-history>summary b{display:grid;min-width:34px;height:34px;place-items:center;border:1px solid var(--line);border-radius:18px;background:var(--bg)}.oc-completed-table{width:100%;min-width:980px}.oc-completed-main:hover td{background:var(--surface-2)}.oc-completed-main td:first-child{display:flex;align-items:center;gap:8px}.oc-row-toggle{display:grid;width:28px;height:28px;flex:0 0 28px;place-items:center;padding:0;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--muted);font-size:20px;line-height:1}.oc-row-toggle:hover{border-color:var(--accent);color:var(--text)}.oc-completed-detail>td{padding:0!important;border-bottom:2px solid #4b5359}.oc-outcome-panel{padding:16px 20px 18px 56px;background:#111619}.oc-outcome-panel>div:first-child{display:flex;flex-direction:column}.oc-outcome-panel small{color:var(--muted)}.oc-outcome-panel table{width:100%}.oc-outcome-panel th,.oc-outcome-panel td{padding:7px 10px}.organized-crimes input[type=number]{min-width:100px}@media(max-width:900px){.oc-overview-grid{grid-template-columns:1fr}}@media(max-width:800px){.oc-summary{grid-template-columns:1fr 1fr}.oc-card>summary,.oc-card>summary span{align-items:flex-start;flex-direction:column}.oc-outcome-panel{padding-left:14px}}
.member-name{max-width:180px;overflow:hidden;text-overflow:ellipsis}.member-links{display:flex;align-items:center;gap:7px;min-width:0}.member-detail-link{display:block;overflow:hidden;text-overflow:ellipsis}.member-links strong{min-width:0;overflow:hidden}.member-name .torn-profile-link{display:inline-grid;flex:0 0 24px;width:24px;height:24px;place-items:center;border:1px solid var(--line);border-radius:5px;color:var(--muted);font-size:15px;line-height:1;text-decoration:none}.member-name .torn-profile-link:hover{border-color:var(--accent);color:var(--text);text-decoration:none}.report-table table{width:max-content;min-width:0;font-variant-numeric:tabular-nums}.report-table th,.report-table td{padding:7px 6px;text-align:right}.report-table td.metric-cell{width:50px;min-width:50px;max-width:72px}.report-table thead{position:sticky;top:0;z-index:12}.report-table thead th{background:var(--surface-2)}.report-table .identity-member,.report-table thead tr:first-child th:first-child{position:sticky;left:0;z-index:10;width:128px;min-width:128px;max-width:128px;overflow:hidden;text-overflow:ellipsis;text-align:left;background:var(--surface)}.report-table .identity-level,.report-table thead tr:first-child th:nth-child(2){position:sticky;left:128px;z-index:10;width:46px;min-width:46px;text-align:right;background:var(--surface)}.report-table .identity-dif,.report-table thead tr:first-child th:nth-child(3){position:sticky;left:174px;z-index:10;width:48px;min-width:48px;text-align:right;background:var(--surface)}.report-table thead tr:first-child th:first-child,.report-table thead tr:first-child th:nth-child(2),.report-table thead tr:first-child th:nth-child(3){z-index:14;background:var(--surface-2)}.report-table .group-end{border-right:2px solid #4b5359}.report-table td.metric-good{background:rgba(60,154,99,.28);color:#d8f4e1}.report-table td.metric-bad{background:rgba(216,92,98,.28);color:#ffd6d8}.report-table .networth-current{width:102px;min-width:102px;max-width:102px;overflow:hidden;font-weight:750}
.members-table th.sortable{cursor:pointer;user-select:none}.members-table th.sortable:hover,.members-table th.sortable:focus-visible{color:var(--text);outline:none}.members-table th.sortable::after{content:'↕';display:inline-block;margin-left:5px;color:#687178;font-size:10px}.members-table th.sortable[data-sort-direction="asc"]::after{content:'▲';color:var(--accent)}.members-table th.sortable[data-sort-direction="desc"]::after{content:'▼';color:var(--accent)}
.wide-report>section.organized-crimes{width:min(100%,1320px)}.oc-expandable-content{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}.oc-torn-link{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--muted);font-size:12px;font-weight:650;text-decoration:none}.oc-torn-link:hover{border-color:var(--accent);color:var(--text)}.oc-crime-link{color:var(--text);font-weight:650;text-decoration:none}.oc-crime-link span{color:var(--muted);font-size:11px}.oc-crime-link:hover{color:var(--link)}
.oc-view-selector{display:flex;gap:7px;margin:18px 0;padding-bottom:2px;overflow-x:auto}.oc-view-selector a{padding:9px 13px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--muted);font-weight:700;text-decoration:none;white-space:nowrap}.oc-view-selector a:hover{border-color:var(--accent);color:var(--text)}.oc-view-selector a.active{border-color:var(--accent);background:var(--accent);color:#17130a}.oc-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:18px 0 4px}.oc-pagination a{padding:7px 11px;text-decoration:none}.oc-pagination a.disabled{opacity:.35;pointer-events:none}.oc-pagination span{color:var(--muted);font-size:13px}.oc-success-chance{padding:3px 8px;border:1px solid var(--good);border-radius:999px;background:var(--good-bg);color:#aee6c1;font-size:11px;font-style:normal;font-weight:750}.oc-success-chance.unavailable{border-color:var(--line);background:var(--surface-2);color:var(--muted)}.oc-card-meta{display:flex!important;align-items:center!important;gap:12px!important}.oc-card-meta>span{display:flex!important;flex-direction:column;align-items:flex-end!important;gap:0!important}.oc-torn-summary{flex:0 0 auto}.oc-card-body>.table-wrap{margin-top:2px}@media(max-width:650px){.oc-card-meta{align-items:flex-start!important}.oc-card-meta>span{align-items:flex-start!important}.oc-torn-label{display:none}.oc-pagination{justify-content:space-between}.oc-pagination span{font-size:11px}}
.oc-action-stack{display:grid;gap:14px}.oc-action-stack>.analysis-card{margin:0}.oc-delay-list{display:grid;gap:7px}.oc-delay-list>div{display:grid;grid-template-columns:minmax(180px,1fr) minmax(240px,2fr) auto;gap:14px;align-items:center;padding:9px 10px;border:1px solid var(--line);border-radius:7px;background:var(--bg)}.oc-delay-list a{font-weight:700}.oc-delay-list span,.oc-delay-list time{color:var(--muted);font-size:13px}@media(max-width:700px){.oc-delay-list>div{grid-template-columns:1fr;gap:2px}}
.oc-unassigned-list{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--bg)}.oc-unassigned-list>div{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;min-height:42px;padding:5px 9px;border-bottom:1px solid var(--line)}.oc-unassigned-list>div:last-child{border-bottom:0}.oc-unassigned-list>div:hover{background:var(--surface-2)}.oc-list-index{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.oc-member-link{overflow:hidden;color:var(--text);font-weight:650;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.oc-member-link:hover{color:var(--link)}.oc-profile-link{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid var(--line);border-radius:5px;color:var(--muted);font-size:11px;font-weight:650;text-decoration:none}.oc-profile-link:hover{border-color:var(--accent);color:var(--text)}
.wide-report>section.perk-simulator{width:min(100%,1420px)}.perk-price{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:18px 0;padding:16px 18px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.perk-price>div{display:grid;grid-template-columns:minmax(220px,320px) 1fr;align-items:end;gap:16px}.perk-price small{padding-bottom:11px;color:var(--muted)}.perk-comparison{overflow:hidden;padding:0}.perk-comparison .section-heading{padding:18px 18px 4px}.perk-comparison h2{margin:0}.perk-comparison .table-wrap{overflow-x:auto;border:0;border-radius:0}.perk-comparison table{width:max-content;min-width:100%;font-variant-numeric:tabular-nums}.perk-comparison th,.perk-comparison td{min-width:165px;text-align:center}.perk-comparison th:first-child{position:sticky;left:0;z-index:2;width:235px;min-width:235px;text-align:left;background:var(--surface-2)}.perk-comparison tbody th:first-child{background:var(--surface)}.perk-comparison thead th strong,.perk-comparison thead th small{display:block}.perk-comparison thead th small{margin-top:2px;color:var(--muted);font-size:10px;font-weight:500}.perk-tone-0{background:rgba(184,46,91,.12)}.perk-tone-1{background:rgba(221,79,35,.12)}.perk-tone-2{background:rgba(40,153,91,.12)}.perk-tone-3{background:rgba(48,112,178,.14)}.perk-editors{display:grid;gap:10px;margin-top:28px}.perk-editors>div h2{margin:0}.perk-editor{border:1px solid var(--line);border-radius:9px;background:var(--surface)}.perk-editor>summary{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;cursor:pointer;list-style:none}.perk-editor>summary::-webkit-details-marker{display:none}.perk-editor>summary span{display:flex;flex-direction:column}.perk-editor>summary small{color:var(--muted);font-weight:400}.perk-editor>summary b{color:var(--accent)}.perk-editor-form{padding:4px 16px 18px;border-top:1px solid var(--line)}.perk-editor-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin-top:14px}.perk-field-groups{display:grid;grid-template-columns:repeat(5,minmax(185px,1fr));gap:10px}.perk-field-groups fieldset{display:grid;align-content:start;gap:10px;margin:0;padding:12px;border:1px solid var(--line);border-radius:7px}.perk-field-groups legend{padding:0 6px;color:var(--accent);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.perk-editor label,.perk-price label{display:grid;gap:5px;color:var(--muted);font-size:12px}.perk-editor textarea{width:100%;resize:vertical;padding:11px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface-2);color:var(--text);font:inherit}.perk-editor-actions{display:flex;align-items:center;gap:10px}.perk-editor-actions span{margin-left:auto;color:var(--muted)}.perk-editor-actions strong{color:var(--text);font-size:18px}@media(max-width:1050px){.perk-field-groups{grid-template-columns:repeat(2,minmax(180px,1fr))}}@media(max-width:650px){.perk-price,.perk-editor-actions{align-items:stretch;flex-direction:column}.perk-price>div,.perk-editor-grid,.perk-field-groups{grid-template-columns:1fr}.perk-price small{padding:0}.perk-editor-actions span{margin:0}.perk-comparison th:first-child{width:190px;min-width:190px}.perk-comparison th,.perk-comparison td{min-width:145px}}
@media(max-width:760px){.topline nav{flex:1 0 100%;min-width:100%;width:100%;order:3}.topline nav .tab{flex:0 0 auto}}
.perk-comparison td small{display:block;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.3}.perk-live-total{display:flex;flex-direction:column;justify-content:center;padding:8px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface-2)}.perk-live-total span{color:var(--muted);font-size:12px}.perk-live-total strong{margin-top:3px;font-size:19px;font-variant-numeric:tabular-nums}.perk-slot-help{margin:14px 0 10px;color:var(--muted);font-size:12px}.perk-field-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.perk-tree{align-self:start;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--bg)}.perk-tree>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer;list-style:none}.perk-tree>summary::-webkit-details-marker{display:none}.perk-tree>summary span{display:flex;min-width:0;flex-direction:column}.perk-tree>summary small{overflow:hidden;color:var(--muted);font-size:11px;font-weight:400;text-overflow:ellipsis;white-space:nowrap}.perk-tree>summary b{color:var(--accent)}.perk-tree>div{display:grid;gap:9px;padding:12px;border-top:1px solid var(--line)}.perk-slot{max-width:330px}.perk-upgrade-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(105px,auto);align-items:end;gap:10px}.perk-upgrade-row label{min-width:0}.perk-upgrade-row select,.perk-slot select{width:100%;min-width:0}.perk-upgrade-row output{padding-bottom:10px;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}@media(max-width:900px){.perk-field-groups{grid-template-columns:1fr}}@media(max-width:650px){.perk-upgrade-row{grid-template-columns:1fr}.perk-upgrade-row output{padding:0;text-align:left}.perk-tree>summary{padding:11px}.perk-tree>div{padding:10px}.perk-editor-form{padding-inline:10px}}
.perk-comparison th,.perk-comparison td{width:145px;min-width:135px;max-width:190px;white-space:normal}.perk-comparison th:first-child{width:210px;min-width:210px}.perk-binary{display:inline-grid;width:25px;height:25px;place-items:center;border:1px solid;border-radius:50%;font-size:17px;font-weight:800;line-height:1}.perk-binary.yes{border-color:#377b51;background:var(--good-bg);color:#8bd3a8}.perk-binary.no{border-color:#62373c;background:var(--bad-bg);color:#e27a80}.perk-compact-value{font-size:16px;font-variant-numeric:tabular-nums}@media(max-width:650px){.perk-comparison th:first-child{width:170px;min-width:170px}.perk-comparison th,.perk-comparison td{width:125px;min-width:120px}}
.perk-search-link{display:inline-block;margin-top:8px;padding:4px 7px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--link);font-size:10px;font-weight:700;text-decoration:none;white-space:nowrap}.perk-search-link:hover{border-color:var(--accent);color:var(--text)}.perk-faction-results{scroll-margin-top:16px}.perk-faction-results .section-heading p{margin:4px 0 0}.perk-search-controls{display:grid;grid-template-columns:minmax(170px,240px) minmax(170px,240px) auto;align-items:end;justify-content:start;gap:10px;margin:14px 0}.perk-search-controls label{display:grid;gap:5px;color:var(--muted);font-size:12px}.perk-search-range{color:var(--muted);font-size:12px}.perk-faction-results .table-wrap{overflow-x:auto}.perk-faction-results table{width:100%;min-width:820px;font-variant-numeric:tabular-nums}.perk-faction-results td:nth-child(2),.perk-faction-results td:nth-child(3),.perk-faction-results td:nth-child(4){text-align:right}.perk-faction-results td small{color:var(--muted)}.perk-over-capacity{color:var(--warning);font-weight:750}.perk-torn-link{white-space:nowrap}.perk-search-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:14px}.perk-search-pagination .disabled{opacity:.35;pointer-events:none}.perk-search-pagination span{color:var(--muted);font-size:12px}@media(max-width:650px){.perk-search-controls{grid-template-columns:1fr}.perk-search-pagination{justify-content:space-between}.perk-search-pagination .button{padding-inline:10px}}
.battle-history-table table{width:max-content;min-width:1760px;font-size:11px;font-variant-numeric:tabular-nums}.battle-history-table th,.battle-history-table td{padding:6px 5px;text-align:right}.battle-history-table th:first-child,.battle-history-table td:first-child{text-align:left}.battle-history-table td.metric-cell{width:66px;min-width:66px;max-width:82px}.battle-history-table thead tr:first-child th:nth-child(n+3):not(:last-child){border-left:2px solid #4b5359}.battle-history-table tbody td:nth-child(3),.battle-history-table tbody td:nth-child(7),.battle-history-table tbody td:nth-child(11),.battle-history-table tbody td:nth-child(15),.battle-history-table tbody td:nth-child(19){border-left:2px solid #4b5359}
.stat-history-trigger{width:100%;min-width:0;padding:4px 2px;border:1px solid transparent;border-radius:5px;background:transparent;color:inherit;font-size:inherit;font-weight:inherit;line-height:1.2}.stat-history-trigger:hover,.stat-history-trigger:focus-visible{border-color:var(--accent);background:var(--warning-bg);color:var(--text);outline:none}.stat-history-dialog{width:min(920px,calc(100vw - 32px));max-width:none;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);box-shadow:0 24px 70px #000c}.stat-history-dialog::backdrop{background:#050708c9;backdrop-filter:blur(2px)}.stat-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px 14px;border-bottom:1px solid var(--line)}.stat-history-head h2{margin:0;font-size:23px}.stat-history-head p:last-child{margin:4px 0 0;color:var(--muted)}.stat-history-close{display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;padding:0;border:1px solid var(--line);background:var(--bg);color:var(--text);font-size:24px;line-height:1}.stat-history-close:hover{border-color:var(--accent)}.stat-history-body{padding:18px 22px 22px}.stat-history-state{margin:24px 0;text-align:center;color:var(--muted)}.stat-history-chart{position:relative;width:100%;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#11171b}.stat-history-chart svg{display:block;width:100%;height:auto;min-height:280px}.stat-history-grid{stroke:#344047;stroke-width:1}.stat-history-axis-label{fill:var(--muted);font-size:11px}.stat-history-line{fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.stat-history-point{fill:var(--accent);stroke:#11171b;stroke-width:2;cursor:pointer}.stat-history-crosshair{stroke:#dbe4eaaa;stroke-width:1;stroke-dasharray:4 4;pointer-events:none}.stat-history-tooltip{position:absolute;z-index:2;min-width:150px;padding:7px 9px;border:1px solid var(--line);border-radius:6px;background:#090d10;color:var(--text);font-size:12px;line-height:1.4;pointer-events:none;box-shadow:0 5px 18px #0008}.stat-history-tooltip strong,.stat-history-tooltip span{display:block}.stat-history-tooltip span{color:var(--muted)}@media(max-width:600px){.stat-history-dialog{width:calc(100vw - 16px)}.stat-history-head,.stat-history-body{padding-left:13px;padding-right:13px}.stat-history-chart svg{min-height:240px}}
.wide-report>section.members-page{width:100%;max-width:100%;margin-inline:auto}.members-page>.pagehead,.members-page>.profile-tabs,.members-page>.summary-grid,.members-page>.toolbar,.members-page>.notice{width:min(100%,1320px);margin-left:auto;margin-right:auto}.battle-history-table{width:100%;max-width:100%;margin-inline:auto;overflow-x:auto;overflow-y:hidden}.battle-history-table table{width:100%;min-width:1480px;table-layout:fixed;font-size:11px}.battle-history-table th,.battle-history-table td{height:42px;padding:5px 4px;text-align:center;overflow:hidden;text-overflow:ellipsis}.battle-history-table th{height:auto;font-size:9px;letter-spacing:.02em}.battle-history-table th:first-child,.battle-history-table td:first-child{width:150px;text-align:left}.battle-history-table th:nth-child(2),.battle-history-table td:nth-child(2){width:44px}.battle-history-table th:last-child,.battle-history-table td:last-child{width:58px}.battle-history-table thead tr:first-child th:nth-child(n+3):not(:last-child){border-left:2px solid #4b5359}.battle-history-table .metric-group-start{border-left:2px solid #4b5359!important}.battle-history-table thead tr:first-child th:first-child,.battle-history-table tbody td:first-child{position:sticky;left:0;z-index:13;background:var(--surface);box-shadow:5px 0 8px -7px #000}.battle-history-table thead tr:first-child th:first-child{z-index:16;background:var(--surface-2)}.battle-history-table tbody tr:hover td:first-child{background:#1d2226}.battle-history-table .member-name{max-width:none}.battle-history-table .member-name .member-links{justify-content:space-between}.battle-history-table .stat-history-trigger{padding:4px 1px}.battle-history-table .action-menu summary{padding:5px 7px}@media(max-width:760px){.members-page>.pagehead,.members-page>.profile-tabs,.members-page>.summary-grid,.members-page>.toolbar,.members-page>.notice{width:100%}.battle-history-table table{min-width:1360px}}
.wide-report>section.activity-report-page{width:100%;max-width:100%;margin-inline:auto}.activity-report-page>.pagehead,.activity-report-page>.toolbar{width:min(100%,1320px);margin-left:auto;margin-right:auto}.activity-report-page>.report-table{width:100%;max-width:100%;margin-inline:auto;overflow-x:auto;overflow-y:hidden}.activity-report-page>.report-table table{width:100%;min-width:1500px;table-layout:fixed;font-size:11px}.activity-report-page>.report-table th,.activity-report-page>.report-table td{height:42px;padding:5px 4px;overflow:hidden;text-overflow:ellipsis}.activity-report-page>.report-table th{height:auto;font-size:9px;letter-spacing:.02em}.activity-report-page>.report-table td.metric-cell{width:56px;min-width:56px;max-width:72px}.activity-report-page>.report-table .identity-member,.activity-report-page>.report-table thead tr:first-child th:first-child{width:150px;min-width:150px;max-width:150px}.activity-report-page>.report-table .identity-level,.activity-report-page>.report-table thead tr:first-child th:nth-child(2){left:150px;width:44px;min-width:44px}.activity-report-page>.report-table .identity-dif,.activity-report-page>.report-table thead tr:first-child th:nth-child(3){left:194px;width:44px;min-width:44px}.activity-report-page>.report-table .stat-history-trigger{padding:4px 1px}@media(max-width:760px){.activity-report-page>.pagehead,.activity-report-page>.toolbar{width:100%}.activity-report-page>.report-table table{min-width:1420px}}
.activity-report-page>.profile-tabs,.activity-report-page>.presence-period,.activity-report-page>.presence-comparison{width:min(100%,1320px);margin-left:auto;margin-right:auto}.presence-period{display:flex;align-items:end;gap:10px;margin:0 0 18px}.presence-period label{display:grid;gap:5px;color:var(--muted);font-size:12px}.presence-period select,.presence-period input{min-width:205px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);font:inherit}.presence-period input{min-width:150px}.presence-comparison{display:grid;gap:18px}.presence-report{padding:18px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.presence-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.presence-heading h2{margin:0 0 6px}.presence-heading .lead{margin-bottom:0}.presence-legend{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:6px 9px;max-width:330px;color:var(--muted);font-size:11px;white-space:nowrap}.presence-legend span{display:inline-block;width:12px;height:12px;border:1px solid var(--line);border-radius:3px}.presence-legend .minimal,.presence-cell.minimal{background:#5a3940;border-color:#73444b}.presence-legend .low,.presence-cell.low{background:#756127;border-color:#987d2f}.presence-legend .medium,.presence-cell.medium{background:#277150;border-color:#369464}.presence-legend .high,.presence-cell.high{background:#42b97c;border-color:#57d496}.presence-legend .unknown,.presence-cell.unknown{background:var(--bg);border-color:var(--line)}.presence-heatmap-scroll{overflow-x:auto;padding:18px 0 5px}.presence-heatmap{min-width:820px}.presence-axis,.presence-row{display:grid;grid-template-columns:42px 1fr;gap:8px;align-items:center}.presence-axis{margin-bottom:5px}.presence-axis>div,.presence-cells{display:grid;grid-template-columns:repeat(48,minmax(12px,1fr));gap:3px}.presence-axis small{min-width:0;color:var(--muted);font-size:9px;white-space:nowrap;overflow:visible}.presence-row{margin:4px 0}.presence-row>strong{font-size:11px;color:var(--muted);text-align:right}.presence-cell{display:block;aspect-ratio:1;border:1px solid var(--line);border-radius:2px;cursor:help;transition:transform .12s ease,border-color .12s ease}.presence-cell:hover,.presence-cell:focus{transform:scale(1.35);border-color:var(--text);z-index:1}.presence-note{margin:14px 0 0;color:var(--muted);font-size:12px}.presence-report h2{font-size:19px}@media(max-width:760px){.activity-report-page>.profile-tabs,.activity-report-page>.presence-period,.activity-report-page>.presence-comparison{width:100%}.presence-period{align-items:stretch;flex-wrap:wrap}.presence-period label{flex:1 1 150px}.presence-period select,.presence-period input{width:100%;min-width:0}.presence-period button{flex:1 1 100%}.presence-report{padding:14px}.presence-heading{display:grid;gap:12px}.presence-legend{justify-content:flex-start}.presence-heatmap{min-width:720px}.presence-axis,.presence-row{grid-template-columns:36px 1fr}.presence-axis small{font-size:8px}}
.api-key-hint{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 2px;color:var(--muted);font-size:12px}.api-key-hint button{padding:5px 8px;font-size:11px;white-space:nowrap}
.presence-report .presence-heatmap{min-width:0;margin-top:16px}.presence-report .presence-axis,.presence-report .presence-row{grid-template-columns:46px minmax(0,1fr);gap:6px}.presence-report .presence-axis>span{color:var(--muted);font-size:10px;text-align:right}.presence-report .presence-axis>div,.presence-report .presence-cells{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.presence-report .presence-axis small{padding-bottom:4px;text-align:center;color:var(--muted);font-size:11px}.presence-report .presence-row{margin:2px 0}.presence-report .presence-row>strong{font-size:10px;font-variant-numeric:tabular-nums}.presence-report .presence-cell{display:grid;min-width:0;height:17px;place-items:center;border-radius:1px;color:#eff5f3;font-size:9px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1}.presence-report .presence-cell.unknown{color:transparent}.presence-report .presence-cell:hover,.presence-report .presence-cell:focus{transform:scale(1.08);z-index:2}@media(max-width:760px){.presence-report .presence-axis,.presence-report .presence-row{grid-template-columns:38px minmax(0,1fr);gap:4px}.presence-report .presence-axis small{font-size:10px}.presence-report .presence-row>strong{font-size:9px}.presence-report .presence-cell{height:17px;font-size:8px}.presence-report .presence-heading .lead{font-size:14px}}
.presence-report .presence-heatmap{width:max-content;margin-inline:auto}.presence-report .presence-axis,.presence-report .presence-row{grid-template-columns:46px repeat(7,30px)}.presence-report .presence-axis>div,.presence-report .presence-cells{grid-template-columns:repeat(7,30px)}@media(max-width:760px){.presence-report .presence-axis,.presence-report .presence-row{grid-template-columns:38px repeat(7,28px)}.presence-report .presence-axis>div,.presence-report .presence-cells{grid-template-columns:repeat(7,28px)}}
.presence-heatmap-mobile{display:none}.presence-report .presence-heatmap-hourly{display:block;width:max-content;min-width:0;margin:18px auto 0}.presence-report .presence-heatmap-hourly .presence-axis,.presence-report .presence-heatmap-hourly .presence-row{grid-template-columns:38px repeat(7,62px);gap:0}.presence-report .presence-heatmap-hourly .presence-axis>div,.presence-report .presence-heatmap-hourly .presence-cells{display:grid;grid-template-columns:repeat(7,62px);gap:0}.presence-report .presence-heatmap-hourly .presence-axis{margin-bottom:3px}.presence-report .presence-heatmap-hourly .presence-axis small{padding:0 0 4px;font-size:12px}.presence-report .presence-heatmap-hourly .presence-row{margin:0}.presence-report .presence-heatmap-hourly .presence-row>strong{font-size:11px}.presence-report .presence-heatmap-hourly .presence-cell{height:18px;aspect-ratio:auto;border:0;border-radius:0;color:#fff;font-size:10px;font-weight:600;text-shadow:0 1px 1px #0005}.presence-report .presence-cell.heat-value{background:var(--presence-color)}.presence-report .presence-legend .heat-1,.presence-report .presence-legend .heat-3,.presence-report .presence-legend .heat-5,.presence-report .presence-legend .heat-7{border-color:transparent}.presence-report .presence-legend .heat-1{background:#541c43}.presence-report .presence-legend .heat-3{background:#a7224b}.presence-report .presence-legend .heat-5{background:#e7464e}.presence-report .presence-legend .heat-7{background:#fa805d}@media(max-width:760px){.presence-report .presence-heatmap-hourly .presence-axis,.presence-report .presence-heatmap-hourly .presence-row{grid-template-columns:30px repeat(7,35px);gap:0}.presence-report .presence-heatmap-hourly .presence-axis>div,.presence-report .presence-heatmap-hourly .presence-cells{grid-template-columns:repeat(7,35px);gap:0}.presence-report .presence-heatmap-hourly .presence-axis small{font-size:10px}.presence-report .presence-heatmap-hourly .presence-row>strong{font-size:9px}.presence-report .presence-heatmap-hourly .presence-cell{height:17px;font-size:8px}}
@media(max-width:760px){.topline{min-height:54px;height:54px;padding:7px 10px;align-items:center;flex-wrap:nowrap;gap:8px;overflow:hidden}.brand{font-size:14px}.brand-prefix,.desktop-brand{display:none}.mobile-page-title{display:inline}.topline nav{order:initial;width:auto;min-width:0;flex:1;padding:0;overflow-x:auto;scrollbar-width:none}.topline nav::-webkit-scrollbar{display:none}.topline nav .tab{padding:7px 9px;font-size:12px}.topline nav .tab.active{padding-top:5px}.account-menu{margin-left:0;gap:0;font-size:0}.account-menu>span{display:none}.logout-button{padding:7px 8px;font-size:12px}}
 .mobile-nav-menu{display:none}@media(max-width:760px){.topline>.tab,.topline>nav,.topline>.account-menu{display:none}.topline{justify-content:space-between}.mobile-nav-menu{position:relative;display:block;margin-left:auto}.mobile-nav-menu>summary{display:flex;align-items:center;gap:7px;list-style:none;padding:7px 9px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--text);font-size:12px;font-weight:700;cursor:pointer}.mobile-nav-menu>summary::-webkit-details-marker{display:none}.mobile-nav-menu>summary b{font-size:16px;line-height:1}.mobile-nav-menu[open]>summary{border-color:var(--accent)}.mobile-nav-menu>div{position:fixed;top:60px;right:8px;z-index:90;display:grid;min-width:210px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 14px 34px #000c}.mobile-nav-menu nav{display:grid;gap:4px;overflow:visible}.mobile-nav-menu nav .tab{padding:9px 10px;border:0;border-radius:5px;background:transparent}.mobile-nav-menu nav .tab.active{padding-top:9px;border-top:0;background:var(--warning-bg);color:var(--text)}.mobile-nav-menu .account-menu{display:flex;margin:6px 0 0;padding-top:8px;border-top:1px solid var(--line);gap:9px;font-size:12px}.mobile-nav-menu .account-menu>span{display:inline}.mobile-nav-menu .logout-button{padding:7px 9px}}

/* Grouped primary navigation keeps operational pages immediate without turning the header into a horizontal overflow list. */
.topline{overflow:visible}.topline>nav{overflow:visible}.nav-group{position:relative;flex:0 0 auto}.nav-group>summary{display:flex;align-items:center;gap:7px;list-style:none;white-space:nowrap;padding:9px 13px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--muted);cursor:pointer}.nav-group>summary::-webkit-details-marker{display:none}.nav-group-chevron{width:15px;height:15px;transition:transform .16s ease}.nav-group>summary:hover,.nav-group.active>summary,.nav-group[open]>summary{border-color:var(--accent);color:var(--text)}.nav-group.active>summary{box-shadow:inset 0 2px 0 var(--accent)}.nav-group[open] .nav-group-chevron{transform:rotate(180deg)}.nav-group>div{position:absolute;top:calc(100% + 7px);left:0;z-index:80;display:grid;min-width:190px;padding:6px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 14px 34px #000c}.nav-group>div .tab{display:block;padding:9px 10px;border:0;border-radius:5px;background:transparent}.nav-group>div .tab:hover{background:var(--surface-2)}.topline nav .nav-group>div .tab.active{padding-top:9px;border-top:0;background:var(--warning-bg);color:var(--text)}.account-profile{color:var(--muted);text-decoration:none}.account-profile:hover{color:var(--text)}
@media(max-width:760px){.mobile-nav-menu nav{display:grid;gap:4px}.mobile-nav-menu .nav-group{border:1px solid var(--line);border-radius:6px;background:var(--bg)}.mobile-nav-menu .nav-group.active{border-color:#6e5b2b}.mobile-nav-menu .nav-group>summary{justify-content:space-between;padding:9px 10px;border:0;border-radius:5px;background:transparent;font-size:12px;font-weight:700}.mobile-nav-menu .nav-group>div{position:static;min-width:0;padding:0 4px 4px;border:0;border-radius:0;background:transparent;box-shadow:none}.mobile-nav-menu .nav-group>div .tab{padding:8px 10px 8px 18px}.mobile-nav-menu .account-profile{color:var(--muted)}}

.description-editor{max-width:1240px;margin-inline:auto}.description-links{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.description-links label{display:grid;gap:6px;color:var(--muted);font-size:12px}.description-links input{font:12px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace}.description-editor code{padding:2px 5px;border-radius:4px;background:var(--surface-2);font:12px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace}.description-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:18px}.description-grid form{align-content:start}.description-grid textarea{width:100%;min-height:570px;resize:vertical;padding:14px;border:1px solid var(--line);border-radius:8px;background:#0c0f11;color:var(--text);font:13px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}.description-actions{display:flex;gap:10px}.description-preview{min-width:0;padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.description-preview h2{margin:0 0 12px}.description-preview-canvas{min-height:520px;overflow:auto;padding:14px;border:1px dashed var(--line);border-radius:6px;background:transparent}.description-preview-canvas .faction-description{max-width:none}.description-preview-error{color:#ffbfc2}.hint{margin:0;color:var(--muted);font-size:12px}.description-fields{margin-top:28px;padding-top:2px}.description-fields>p{color:var(--muted)}.description-fields>div{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}.description-field{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);text-align:left}.description-field:hover{border-color:var(--accent)}.description-field strong{font-size:12px;text-transform:capitalize}.description-field span{justify-self:end;font-variant-numeric:tabular-nums}.description-field code{grid-column:1/-1;color:var(--muted);background:transparent;padding:0;font-size:10px}@media(max-width:760px){.description-links,.description-grid{grid-template-columns:1fr}.description-grid textarea{min-height:380px}.description-preview-canvas{min-height:260px}.description-fields>div{grid-template-columns:1fr}.description-actions button{flex:1}.description-editor .notice code{white-space:normal;overflow-wrap:anywhere}}
.recruitment{max-width:1500px;margin:0 auto}.recruitment-form{display:grid;grid-template-columns:1fr .7fr 1fr 1.2fr auto;gap:14px;align-items:end;margin:28px 0}.recruitment-form label{margin:0}.recruitment-form label small{color:var(--muted);font-weight:400}.recruitment-form button{min-height:48px}.recruitment-form .form-note{grid-column:1/-1;margin:0;color:var(--muted);font-size:.86rem}.recruitment-results{margin-top:28px}.recruitment-heading,.battle-estimate{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.recruitment-heading h2{margin:2px 0}.recruitment-heading h2 span{color:var(--muted);font-size:.65em}.recruitment-heading p{margin:0;color:var(--muted)}.activity-rating{min-width:120px;padding:12px 18px;border-radius:12px;text-align:center;background:#20252a}.activity-rating span,.battle-estimate span{display:block;color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}.activity-rating strong{font-size:1.35rem}.activity-rating.high{box-shadow:inset 4px 0 #42bd83}.activity-rating.medium{box-shadow:inset 4px 0 #dda92e}.activity-rating.low{box-shadow:inset 4px 0 #db5b68}.recruitment-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:14px 0}.recruitment-kpis article{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.recruitment-kpis span,.recruitment-kpis small{display:block;color:var(--muted)}.recruitment-kpis strong{display:block;margin:4px 0;font-size:1.6rem}.battle-estimate{margin:14px 0}.battle-estimate strong{display:block;font-size:1.6rem}.battle-estimate small{color:var(--muted)}.stat-distribution{display:grid;grid-template-columns:repeat(2,auto);gap:8px 20px}.stat-distribution span{color:inherit}.recruitment-wars{min-width:900px}.war-result{font-weight:700}.war-result.win{color:#69d49b}.war-result.loss{color:#eb7882}@media(max-width:900px){.recruitment-form{grid-template-columns:1fr 1fr}.recruitment-form button{grid-column:1/-1}.recruitment-kpis{grid-template-columns:1fr 1fr}}@media(max-width:560px){.recruitment-form,.recruitment-kpis{grid-template-columns:1fr}.recruitment-heading,.battle-estimate{align-items:flex-start;flex-direction:column}.activity-rating{width:100%}.stat-distribution{width:100%;grid-template-columns:1fr 1fr}}
.inactive-factions{max-width:1500px;margin:0 auto}.inactive-factions-form{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr)) auto;gap:14px;align-items:end;margin:28px 0}.inactive-factions-form label{margin:0}.inactive-factions-form label small{color:var(--muted);margin-left:6px}.inactive-factions-form button{min-height:48px}.candidate-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 20px}.candidate-summary article{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.candidate-summary span,.inactive-factions-table td small{display:block;color:var(--muted)}.candidate-summary strong{display:block;margin-top:4px;font-size:1.5rem}.inactive-factions-table{min-width:900px}.inactive-factions-table .candidate-id{margin-top:3px}.inactive-factions-table td>.button{white-space:nowrap}@media(max-width:800px){.inactive-factions-form{grid-template-columns:1fr 1fr}.inactive-factions-form button{grid-column:1/-1}.candidate-summary{grid-template-columns:1fr 1fr}}@media(max-width:520px){.inactive-factions-form,.candidate-summary{grid-template-columns:1fr}}
.progression-overview{margin:1.5rem 0 2rem;padding:1.25rem;border:1px solid var(--border);border-radius:14px;background:var(--panel)}
.progression-overview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.progression-overview-head h2{margin:.2rem 0}.progression-overview-head p{margin:.25rem 0;color:var(--muted)}
.progression-overview table small,.member-progression table small{display:block;color:var(--muted);margin-top:.25rem}.progression-decision{display:grid;grid-template-columns:minmax(10rem,1fr) repeat(3,auto);gap:.4rem;align-items:center;min-width:32rem}.progression-decision input{margin:0}.progression-settings{margin-top:1.5rem}.progression-settings form{padding-top:1rem}.progression-settings td .check{display:inline-flex;margin:.15rem .5rem .15rem 0}.progression-settings input[type=number]{min-width:6rem}
@media(max-width:700px){.progression-overview{padding:.8rem}.progression-overview-head{align-items:flex-start;flex-direction:column}.progression-decision{min-width:28rem}}
