#content[aria-busy="true"]{opacity:.4;pointer-events:none}
:root{--bg:#f7f8f2;--paper:#fff;--ink:#27392f;--muted:#78827a;--green:#315944;--lime:#e1ebc7;--line:#e4e8de;--soft:#eff3e8;--orange:#b97c4e;--purple:#897bb3;font-family:'Malgun Gothic','맑은 고딕',system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:14px}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}button{border:0;color:inherit;background:none}a{color:inherit;text-decoration:none}button:disabled{cursor:default;opacity:.4}button:hover:not(:disabled){filter:brightness(.96)}input,select{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:7px;padding:9px 11px;min-width:0}input:focus,select:focus{outline:2px solid #adc5a4}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1.3px;font-weight:700;line-height:1.5}h2{font-size:16px;letter-spacing:-.4px}h3{font-size:14px}small{font-size:11px;color:var(--muted)}.sidebar{position:fixed;width:210px;inset:0 auto 0 0;padding:36px 22px 20px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#fcfdf9;z-index:2}.brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:800;letter-spacing:-.7px}.brand small{display:block;font-size:11px;letter-spacing:2.5px;margin-top:3px;font-weight:500}.brand-icon{display:grid;place-items:center;width:43px;height:47px;border-radius:12px;background:var(--green);color:var(--lime);font-size:34px}.nav-caption{font-size:10px;color:#a1a99c;letter-spacing:2px;margin:46px 10px 15px}nav{display:grid;gap:6px}.nav-item{text-align:left;padding:13px 14px;border-radius:8px;font-weight:600;color:#7a867c;display:flex;gap:12px;align-items:center}.nav-item span{font-size:22px;line-height:18px;font-weight:400;width:22px}.nav-item.active{background:var(--soft);color:var(--green)}.sidebar-note{margin-top:auto;padding:32px 12px 22px}.tiny-leaf{color:#a8b59c;display:block;font-size:43px}.sidebar-note strong{font-size:13px;line-height:1.9;font-weight:500}.sidebar-note p{color:#949d91;font-size:10px;line-height:1.9;margin-top:9px}.sidebar-bottom{border-top:1px solid var(--line);padding-top:20px;font-size:9px;line-height:2.4;color:var(--muted)}.sidebar-bottom button{display:block;padding:0;font-size:11px}.local-dot{display:inline-block;width:5px;height:5px;background:#65936d;border-radius:100%;margin-right:5px}main{margin-left:210px;padding:0 38px;max-width:1780px}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.crumb{color:#bec4b7;margin:0 12px}.top-actions{display:flex;align-items:center;gap:16px}.status{font-size:10px;background:#edf0e8;padding:6px 10px;border-radius:30px;white-space:nowrap}.status.live{background:#e8f3e7;color:#39784b}.status:before{content:'';display:inline-block;background:#a5ac9c;width:5px;height:5px;border-radius:50%;margin-right:7px}.status.live:before{background:#6eac6d}.icon-button{width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:white;font-size:20px;line-height:1}.heading{display:flex;justify-content:space-between;align-items:center;padding:31px 0 27px}.eyebrow{font-size:9px;letter-spacing:2.8px;color:#819479;margin-bottom:7px}.heading p{color:var(--muted);font-size:12px;margin-top:7px}.heading-mark{display:flex;align-items:center;gap:15px;color:#b4be99;padding-right:12px}.heading-mark>span{font-size:59px;line-height:1}.heading-mark small{letter-spacing:2px;font-size:8px;line-height:1.7;color:#8f9b80}.filters{border:1px solid var(--line);background:#fff;border-radius:12px;padding:17px 21px 20px;margin-bottom:22px}.filter-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.presets{display:flex;gap:4px;background:var(--bg);padding:3px;border-radius:7px}.presets button{padding:6px 11px;border-radius:5px;font-size:11px;color:var(--muted)}.presets .selected{color:var(--green);background:#fff;box-shadow:0 1px 4px #27392f12;font-weight:700}.timezone{font-size:10px;color:#919b8b}#filter-form{display:flex;gap:12px;align-items:end}#filter-form label{display:grid;gap:7px;font-size:10px;color:var(--muted);flex:1}#filter-form label input,#filter-form label select{width:100%;font-size:12px;height:37px}.date-dash{color:#aeb6a7;padding-bottom:10px}#filter-form .player-filter{flex:1.2}#filter-form .dimension-filter{flex:1.1}.primary{background:var(--green);color:white;border-radius:7px;padding:11px 20px;font-size:12px;white-space:nowrap}.primary span{margin-left:12px}.notice,.error{padding:12px 16px;border-radius:8px;margin:-6px 0 18px;font-size:11px;line-height:1.8}.notice{background:#f0f1e5;color:#7e8368}.error{background:#ffeded;color:#9b3a3a}.loading{text-align:center;padding:28px;color:var(--muted)}[hidden]{display:none!important}.spinner{display:inline-block;width:14px;height:14px;border:2px solid #c4cebb;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite;vertical-align:middle;margin-right:8px}@keyframes spin{to{transform:rotate(360deg)}}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.stat{padding:21px 22px;border:1px solid var(--line);border-radius:11px;background:white;position:relative;min-height:131px}.stat.primary-stat{background:var(--green);color:#fff;border-color:var(--green)}.stat .label{font-size:11px;color:var(--muted);display:flex;align-items:center;justify-content:space-between}.stat.primary-stat .label,.stat.primary-stat .stat-note{color:#c4d6bd}.stat .value{font-size:28px;font-weight:700;font-variant-numeric:tabular-nums;margin-top:15px;letter-spacing:-1px;white-space:nowrap}.stat .value em{font-style:normal;font-size:12px;font-weight:400;margin-left:4px;letter-spacing:0}.stat-note{font-size:10px;color:#929b8c;margin-top:8px}.stat-symbol{color:#a4b192;font-size:18px;line-height:1}.stat.primary-stat .stat-symbol{color:#c6d6a9}.grid-main{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:20px;margin-bottom:22px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:23px;min-width:0}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:23px}.panel-sub{font-size:10px;color:var(--muted);margin-top:6px;line-height:1.6}.panel-actions{display:flex;gap:6px;align-items:center}.panel-actions select,.small-select{padding:6px 8px;font-size:10px;max-width:125px}.segmented{display:flex;border:1px solid var(--line);border-radius:6px;padding:2px}.segmented button{padding:5px 7px;font-size:10px;border-radius:4px;color:var(--muted)}.segmented button.on{background:var(--soft);color:var(--green)}.chart{width:100%;display:block;overflow:visible}.chart-wrap{position:relative}.chart-grid{stroke:#eef0e9;stroke-width:1}.chart-text{font-size:10px;fill:#8f9889}.chart-total{font-size:25px;font-weight:650;margin:-8px 0 4px;font-variant-numeric:tabular-nums}.chart-total small{font-weight:400;margin-left:7px}.chart-note{display:flex;justify-content:space-between;font-size:9px;color:#929b8a;margin-top:4px}.legend-dot{display:inline-block;width:7px;height:7px;background:var(--green);border-radius:50%;margin-right:6px}.donut{width:158px;height:158px;display:block;margin:0 auto 18px}.donut-center{font-size:18px;font-weight:650;fill:var(--ink);text-anchor:middle}.donut-label{font-size:9px;fill:var(--muted);text-anchor:middle}.dimension-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:13px;font-size:11px;margin:13px 0}.dimension-row>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dimension-row small{width:35px;text-align:right;font-size:9px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:29px 0 14px}.section-title p{font-size:11px;color:var(--muted);margin-top:6px}.text-button{font-size:11px;color:var(--green);padding:5px 0}.section-index{display:inline-block;font-size:9px;letter-spacing:1px;color:#99a78b;margin-bottom:7px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:12px}th{font-size:10px;font-weight:500;color:#8b9685;border-bottom:1px solid var(--line);padding:10px 12px;background:#fafbf7}td{padding:13px 12px;border-bottom:1px solid #edf0e8;font-variant-numeric:tabular-nums}tr:last-child td{border-bottom:0}.num{text-align:right}.table-panel{padding:8px 10px}.player-button{display:flex;align-items:center;gap:10px;text-align:left;padding:0;font-weight:600}.avatar{width:29px;height:29px;background:var(--soft);border:1px solid #e0e6d4;border-radius:8px;display:grid;place-items:center;font-size:13px;color:var(--green);font-weight:700;flex-shrink:0}.player-button small{display:block;font-weight:400;margin-top:4px;font-size:9px}.mini-track{display:inline-block;width:58px;height:4px;background:#eef1e8;border-radius:3px;vertical-align:middle;margin-left:9px}.mini-track i{display:block;height:100%;border-radius:3px;background:#a8bc86}.sort-button{padding:0;font-size:10px;color:inherit}.sort-button.selected{color:var(--green);font-weight:700}.leaderboard tr:hover td{background:#fcfdf9}.muted{color:var(--muted)}.rank{color:#99a589;font-size:10px;width:25px}.pill{display:inline-block;padding:3px 7px;border-radius:4px;background:#eef2e7;color:#6a7a5e;font-size:9px}.pill.gold{background:#faf1d9;color:#927528}.pill.iridium{background:#f1eafd;color:#8765a5}.pill.iron{background:#edf1f4;color:#7c8895}.pill.warn{background:#f9eee4;color:#a9774f}.empty{text-align:center;padding:40px 16px;color:#8a9481;line-height:1.9;font-size:12px}.empty .empty-mark{display:block;font-size:32px;color:#bdc8ad;margin-bottom:10px}.searchbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;flex-wrap:wrap}.searchbar input{font-size:11px;max-width:220px;padding:8px 10px}.tabs{display:flex;gap:4px;overflow:auto;flex-wrap:wrap}.tabs button{padding:8px 11px;border-radius:6px;font-size:11px;color:#8d9585;background:#f8faf5}.tabs button.active{background:var(--soft);color:var(--green);font-weight:700}.item-bar{display:inline-block;width:100px;height:4px;background:#f0f3ec;margin-right:10px;vertical-align:middle}.item-bar i{display:block;height:100%;background:#b6c797}.item-name{padding:0;text-align:left;display:block;max-width:380px;overflow:hidden;text-overflow:ellipsis;font-weight:500}.item-name:hover{color:var(--green);text-decoration:underline}.item-id{font-size:9px;color:#a2a999;display:block;margin-top:3px;font-weight:400}.qualities{display:flex;gap:4px;flex-wrap:wrap;max-width:230px}.pagination{display:flex;align-items:center;justify-content:space-between;padding:16px 4px 2px;font-size:10px;color:var(--muted)}.pagination button{padding:6px 11px;border:1px solid var(--line);border-radius:5px;margin-left:6px;background:#fff;color:var(--green);font-size:10px}.small-note{font-size:10px;color:#98a08f;line-height:1.7;margin:13px 0 0}.heat-panel{margin:22px 0}.heatmap{display:grid;grid-template-columns:26px repeat(24,minmax(0,1fr));gap:5px}.heat-label{font-size:9px;color:#929c88;display:flex;align-items:center}.heat-cell{height:16px;min-width:0;border-radius:3px;border:0;background:#f1f4ed}.heat-caption{display:flex;align-items:center;gap:5px;justify-content:flex-end;font-size:9px;color:#9aa38e;margin-top:14px}.heat-caption i{width:12px;height:10px;border-radius:2px}.player-profile{display:flex;gap:15px;align-items:center;margin-bottom:20px}.player-profile .avatar{width:53px;height:53px;font-size:23px;border-radius:14px}.player-profile h2{font-size:21px}.player-profile p{font-size:11px;color:var(--muted);margin-top:6px}.profile-clear{margin-left:auto}.movement-list{margin-top:6px;display:grid;grid-template-columns:1fr 1fr;gap:15px 28px}.movement-item{font-size:11px}.movement-item strong{float:right;font-weight:500;font-size:11px}.movement-track{height:5px;background:#f1f4ed;margin-top:8px;border-radius:3px}.movement-track i{display:block;background:#aabc8e;height:100%;border-radius:3px}.record-controls{display:flex;gap:10px;margin:0 0 15px;flex-wrap:wrap}.record-controls input,.record-controls select{font-size:11px}.record-controls button{margin-left:auto}.event-table{font-size:11px}.event-table .item-id{max-width:230px;overflow:hidden;text-overflow:ellipsis}.content-tabs{border-bottom:1px solid var(--line);display:flex;gap:23px;margin:6px 0 22px}.content-tabs button{padding:0 3px 12px;font-size:13px;color:var(--muted)}.content-tabs button.active{border-bottom:2px solid var(--green);color:var(--green);font-weight:700}.substats{display:flex;gap:25px;flex-wrap:wrap;margin-bottom:23px;padding:15px 20px;border:1px dashed #dfe6d5;border-radius:10px}.substats div{font-size:10px;color:var(--muted)}.substats strong{margin-left:8px;color:var(--green);font-size:14px;font-variant-numeric:tabular-nums;font-weight:600}footer{display:flex;justify-content:space-between;gap:15px;color:#a1a996;padding:28px 0;font-size:9px}footer i{font-style:normal;padding:0 8px;color:#acb993}dialog{border:1px solid var(--line);border-radius:16px;padding:34px;max-width:740px;width:calc(100% - 40px);color:var(--ink);box-shadow:0 20px 80px #263a2b22}dialog::backdrop{background:#25382855;backdrop-filter:blur(3px)}.dialog-close{position:absolute;right:15px;top:15px}.help-body h2{font-size:23px;margin-bottom:22px}.help-body h3{margin:22px 0 8px}.help-body p,.help-body li{font-size:12px;line-height:1.9;color:#73806c}.help-body ul{padding-left:19px}.metric-note{font-size:10px;color:var(--muted);line-height:1.7}.row-arrow{font-size:15px;color:#9ca78e}.quality-filter{font-size:11px;padding:7px 9px}.metric-bottom{margin-top:13px;padding-top:12px;border-top:1px solid #f0f3eb;display:flex;gap:25px;font-size:10px;color:var(--muted)}.metric-bottom strong{color:var(--green);font-size:12px;margin-left:6px}.error-card{padding:30px;background:white;border:1px solid var(--line);border-radius:12px;line-height:2}.error-card button{margin-top:15px}
@media(min-width:1600px){main{padding:0 52px}.sidebar{width:230px}main{margin-left:230px}.stat .value{font-size:34px}.panel{padding:27px}}
@media(max-width:1150px){.sidebar{width:177px;padding:28px 16px}.brand{font-size:18px}.brand-icon{width:34px;height:39px}.sidebar-note{padding-left:4px}.sidebar-bottom{font-size:8px}main{margin-left:177px;padding:0 24px}.grid-main{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}.panel{padding:18px}.panel-header{flex-wrap:wrap}.stat{padding:18px}.stat .value{font-size:23px}.stat-grid{gap:11px}#filter-form{gap:8px}#filter-form .primary{padding:11px 12px}.timezone{font-size:9px}.heatmap{gap:3px}.item-bar{width:65px}.heading-mark{display:none}}
@media(max-width:850px){.sidebar{position:relative;width:auto;height:auto;flex-direction:row;align-items:center;padding:13px 20px;gap:30px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:16px}.brand small{font-size:9px;letter-spacing:1.6px}.brand-icon{height:34px;width:32px;font-size:28px}.nav-caption,.sidebar-note,.sidebar-bottom{display:none}nav{display:flex;gap:4px}.nav-item{padding:9px 10px;font-size:11px}.nav-item span{display:none}main{margin-left:0;padding:0 20px}.topbar{height:52px}.grid-main{grid-template-columns:minmax(0,1.7fr) minmax(220px,1fr)}#filter-form{flex-wrap:wrap}#filter-form label{min-width:110px}#filter-form .player-filter,#filter-form .dimension-filter{min-width:120px}.stat .value{font-size:23px}.stat{padding:15px}.heading{padding:23px 0}.heading h1{font-size:26px}.item-name{max-width:280px}}
@media(max-width:620px){.sidebar{gap:10px;justify-content:space-between;padding:12px 15px}.brand{gap:7px}.nav-item{padding:8px}.brand-icon{width:29px;font-size:26px}main{padding:0 15px}.topbar{font-size:9px}.top-actions{gap:8px}.status{font-size:8px;padding:5px 7px}.heading p{font-size:11px}.heading h1{font-size:25px}.eyebrow{font-size:8px}.filters{padding:13px}.filter-top{flex-wrap:wrap;gap:8px}.timezone{display:none}.presets{width:100%;justify-content:space-between}.presets button{font-size:10px;padding:6px 10px}#filter-form label{min-width:40%;flex:1}.date-dash{display:none}#filter-form .player-filter,#filter-form .dimension-filter{min-width:40%;flex:1}#filter-form .primary{width:100%;margin-top:4px}.stat-grid{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:15px}.stat{min-height:115px}.stat .value{font-size:25px}.stat-note{font-size:9px}.grid-main{grid-template-columns:1fr;gap:15px;margin-bottom:15px}.panel{padding:17px}.panel-header{margin-bottom:20px}.panel-actions{gap:5px}.panel-actions select{max-width:115px}.donut{width:150px;height:150px}.dimension-row{margin:12px 0}.section-title{margin-top:24px}h2{font-size:15px}.substats{gap:14px;padding:12px}.substats div{font-size:9px}.substats strong{font-size:12px;margin-left:4px}.table-panel{padding:5px}.heatmap{gap:2px;grid-template-columns:20px repeat(24,minmax(0,1fr))}.heat-cell{height:13px}.heat-label{font-size:8px}.heat-panel{padding:14px}.searchbar{align-items:stretch}.searchbar input{max-width:none;flex:1;width:0}.tabs{gap:3px}.tabs button{padding:7px 9px;font-size:10px}.item-name{max-width:230px}.item-bar{display:none}.qualities{max-width:200px}.player-profile h2{font-size:19px}.player-profile p{font-size:9px}.profile-clear{font-size:9px}.movement-list{gap:15px}.movement-item,.movement-item strong{font-size:9px}.record-controls input{width:100%}footer{font-size:8px;flex-direction:column;gap:8px}.notice{font-size:10px}.chart-note{font-size:8px}.chart-text{font-size:11px}dialog{padding:27px 20px}.metric-note{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
/* Server status and quest journal */
:root{--state-online:#64a482;--state-offline:#bc7774;--state-starting:#d6b465;--state-unresponsive:#d59653;--state-unknown:#e3e6e0;color-scheme:light}
.filters[data-mode=quests] .filter-top,.filters[data-mode=quests] #filter-form>label:not(.player-filter),.filters[data-mode=quests] .date-dash,.filters[data-mode=status] .player-filter,.filters[data-mode=status] .dimension-filter{display:none!important}
.filters[data-mode=quests] .player-filter{max-width:330px}.filters[data-mode=quests] .primary{margin-left:6px}
.server-hero{display:flex;gap:20px;align-items:center;background:var(--soft);border:1px solid var(--line);border-radius:14px;padding:30px;margin-bottom:18px}.server-hero h2{font-size:25px;letter-spacing:-.8px}.server-hero p{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.7}.server-orb{height:17px;width:17px;flex-shrink:0;border-radius:50%;background:var(--state-starting);box-shadow:0 0 0 9px #d6b46518}.online .server-orb{background:var(--state-online);box-shadow:0 0 0 9px #64a48218}.unresponsive .server-orb{background:var(--state-unresponsive)}.hero-check{font-size:10px;line-height:1.8;color:var(--muted);margin-left:auto;white-space:nowrap}.hero-check strong{font-weight:500}.status-components{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px}.status-components .panel{display:grid;gap:12px}.status-components .panel>span{font-size:11px;color:var(--muted)}.status-components strong{font-size:17px}.status-components small{line-height:1.7}.ok-text{color:var(--green)}.warn-text{color:var(--orange)}.status-panel{margin-bottom:20px}.online-players{display:flex;gap:12px;flex-wrap:wrap}.online-player{display:flex;align-items:center;gap:10px;padding:12px 15px;border:1px solid var(--line);border-radius:10px;text-align:left;min-width:230px}.online-player small{display:block;margin-top:6px;font-size:10px}.online-dot{width:7px;height:7px;border-radius:50%;background:var(--state-online);margin-left:auto}.uptime-bars{display:grid;grid-template-columns:repeat(var(--bars),minmax(0,1fr));gap:4px;height:65px;margin:12px 0}.uptime-bar{border-radius:4px;min-width:0;padding:0}.uptime-bar:hover,.uptime-bar:focus-visible{outline:2px solid var(--ink);outline-offset:2px}.status-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:10px;color:var(--muted);margin-top:18px}.status-legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px}.status-events{max-height:350px;overflow:auto}.status-events>div{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.status-events>div>i{height:8px;width:8px;border-radius:50%;flex-shrink:0}.status-events>div>span:first-of-type{flex:1}.status-events small{display:block;margin-top:5px;font-size:10px}
.quest-summary{display:flex;justify-content:space-between;align-items:center;padding:8px 0 22px;gap:20px}.quest-summary h2{font-size:23px}.quest-summary p{font-size:11px;color:var(--muted);margin-top:8px}.quest-summary-count{text-align:right;font-size:13px;color:var(--muted)}.quest-summary-count>strong{font-size:34px;color:var(--green);font-weight:650}.quest-summary-count small{display:block;margin-top:5px}.quest-notice{margin-top:0}.quest-controls{display:flex;flex-wrap:wrap;gap:12px}.quest-controls label{display:grid;gap:7px;flex:1;font-size:10px;color:var(--muted);min-width:130px}.quest-controls select,.quest-controls input{width:100%;font-size:12px}.quest-search-label{flex:1.5!important}.hidden-quest-toggle{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);margin:15px 0}.chapter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.chapter-card{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid var(--line);padding:13px;border-radius:8px;text-align:left;font-size:11px}.chapter-card.selected{border-color:var(--green);background:var(--soft)}.chapter-card>span:first-child{flex:1}.chapter-card small{display:block;font-size:9px;margin-top:4px}.chapter-card>strong{font-size:10px;font-weight:500;color:var(--green)}.chapter-track{display:block;flex-basis:100%;height:3px;background:var(--line);border-radius:2px}.chapter-track i{display:block;background:var(--state-online);height:100%;border-radius:2px}.quest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.quest-card{text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:18px;display:flex;flex-direction:column;min-height:158px;gap:10px}.quest-card h3{line-height:1.7}.quest-card p{font-size:10px;color:var(--muted);line-height:1.6}.quest-card.complete{border-top:3px solid var(--state-online)}.quest-card.progress{border-top:3px solid var(--state-starting)}.quest-card>div:first-child{display:flex;gap:4px;flex-wrap:wrap}.quest-card-bottom{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);margin-top:auto;padding-top:5px}.quest-description{white-space:pre-wrap;margin-top:12px!important}.quest-task-list{margin-top:10px}.quest-task{display:flex;gap:12px;align-items:flex-start;padding:15px 0;border-bottom:1px solid var(--line);font-size:12px}.quest-task>div:nth-child(2){flex:1;min-width:0}.quest-task strong{font-size:12px;line-height:1.7}.quest-task small{display:block;margin-top:5px;overflow-wrap:anywhere}.task-check{font-size:19px;color:var(--muted)}.task-check.done{color:var(--green)}.task-amount{text-align:right;white-space:nowrap}.quest-task details{font-size:10px;margin-top:9px;color:var(--muted)}.quest-task summary{cursor:pointer}.quest-task pre{white-space:pre-wrap;word-break:break-all;font-size:10px}#quest-results-title{scroll-margin-top:20px}
:root[data-theme=dark]{--bg:#141d19;--paper:#1c2821;--ink:#dbe7da;--muted:#a1b09f;--green:#b0d299;--lime:#d8e9bf;--line:#344438;--soft:#2a3b2d;--orange:#dfb181;--purple:#b6a7d9;--state-online:#78b995;--state-offline:#ad6464;--state-starting:#be9a53;--state-unresponsive:#d28d58;--state-unknown:#39463d;color-scheme:dark}
[data-theme=dark] .sidebar{background:#18221c}[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] .icon-button,[data-theme=dark] .filters,[data-theme=dark] .panel,[data-theme=dark] .stat,[data-theme=dark] .pagination button,[data-theme=dark] .error-card,[data-theme=dark] dialog,[data-theme=dark] .presets .selected{background:var(--paper)}
[data-theme=dark] .primary,[data-theme=dark] .brand-icon{background:#426b49;color:#f0f5e8}[data-theme=dark] .stat.primary-stat{background:#2f513b;color:#edf6e7;border-color:#486c48}[data-theme=dark] .primary-stat .label,[data-theme=dark] .primary-stat .stat-note{color:#c8d7c1}[data-theme=dark] th,[data-theme=dark] .tabs button{background:#243228}[data-theme=dark] .leaderboard tr:hover td{background:#2a3a2e}[data-theme=dark] td{border-color:var(--line)}[data-theme=dark] .avatar,[data-theme=dark] .substats,[data-theme=dark] .metric-bottom{border-color:var(--line)}[data-theme=dark] .nav-item,[data-theme=dark] .tabs button,[data-theme=dark] .timezone,[data-theme=dark] .help-body p,[data-theme=dark] .help-body li,[data-theme=dark] .small-note,[data-theme=dark] .stat-note{color:var(--muted)}[data-theme=dark] .nav-item.active,[data-theme=dark] .tabs button.active{color:var(--green);background:var(--soft)}[data-theme=dark] .pill,[data-theme=dark] .status{background:#304334;color:#bfccb4}[data-theme=dark] .status.live{background:#2c4535;color:#b1d3a2}[data-theme=dark] .pill.gold{background:#514527;color:#f0d994}[data-theme=dark] .pill.iridium{background:#43364e;color:#dbbeed}[data-theme=dark] .pill.iron{background:#37454e;color:#c2d4df}[data-theme=dark] .pill.warn{background:#4e3b29;color:#dfb68a}[data-theme=dark] .notice{background:#343d2d;color:#bdc7a6}[data-theme=dark] .error{background:#4c2b2c;color:#efbdba}[data-theme=dark] .chart-grid{stroke:#344438}[data-theme=dark] .chart-text{fill:#a1b09f}[data-theme=dark] .chart path[fill="#e8f0da"]{fill:#42633e}[data-theme=dark] .chart path[stroke="#627f4e"]{stroke:#a1c986}[data-theme=dark] .chart circle[stroke="white"]{stroke:#1c2821;fill:#a1c986}[data-theme=dark] .movement-track,[data-theme=dark] .mini-track,[data-theme=dark] .item-bar{background:#344438}[data-theme=dark] dialog::backdrop{background:#0009}[data-theme=dark] .heat-cell{opacity:.75}
@media(max-width:1150px){.quest-grid,.chapter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.server-hero{padding:23px}.hero-check{display:none}.status-components{gap:10px}.status-components strong{font-size:14px}.nav-item{padding:12px 8px;font-size:12px}}
@media(max-width:850px){.sidebar{flex-wrap:wrap;gap:12px}.sidebar nav{flex-wrap:wrap}.nav-item{font-size:11px}.server-hero h2{font-size:22px}}
@media(max-width:620px){.status-components{grid-template-columns:1fr}.status-components .panel{grid-template-columns:1fr auto;gap:8px}.status-components small{grid-column:1 / -1}.server-hero{padding:20px;gap:18px}.server-hero h2{font-size:21px}.online-player{width:100%}.quest-grid{grid-template-columns:1fr}.chapter-card{padding:10px}.quest-summary-count>strong{font-size:27px}.quest-summary{align-items:flex-start}.quest-summary h2{font-size:18px}.quest-summary-count{font-size:11px}.quest-controls label{min-width:125px}.quest-task{gap:8px}.task-amount{font-size:10px}.uptime-bars{gap:2px}.brand small{display:none}.sidebar{gap:5px}.nav-item{padding:8px 6px}.topbar>span{max-width:130px}.top-actions{gap:5px}}
/* Dashboard v3: centered controls, compact daily status marks, illustrated journal. */
.icon-button{display:inline-flex;align-items:center;justify-content:center;padding:0;flex-shrink:0;vertical-align:middle}.icon-button svg{display:block;flex-shrink:0;pointer-events:none}
:root{--state-partial:#d4a44f}[data-theme=dark]{--state-partial:#d4a44f}
.uptime-scroll{overflow-x:auto;padding:6px 1px}.uptime-bars{display:grid;grid-template-columns:repeat(var(--bars),minmax(5px,1fr));width:100%;min-width:calc(var(--bars) * 8px);max-width:calc(var(--bars) * 13px);gap:3px;height:34px;margin:8px 0}.uptime-bar{height:34px;border-radius:2px;border:0;padding:0;transition:transform .12s,opacity .12s}.uptime-bar:hover,.uptime-bar:focus-visible{transform:scaleY(1.14);outline:1px solid var(--ink);outline-offset:2px}#bucket-detail{min-height:33px;display:flex;align-items:center;background:var(--soft);border-radius:7px;padding:9px 12px;margin-top:16px;font-size:11px;line-height:1.7}
.game-icon{width:32px;height:32px;object-fit:contain;image-rendering:pixelated;flex-shrink:0;display:inline-block;vertical-align:middle}.game-icon.icon-xs{width:18px;height:18px}.game-icon.icon-sm{width:23px;height:23px}.game-icon.icon-lg{width:38px;height:38px}.icon-fallback{display:inline-grid;place-items:center;border-radius:7px;background:var(--soft);color:var(--muted);font-size:23px}.item-tile{width:57px;height:57px;display:grid;place-items:center;flex-shrink:0;background:var(--soft);border:1px solid var(--line);border-radius:12px}
.journal-header{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:10px 0 24px}.journal-title{display:flex;align-items:center;gap:18px}.journal-emblem{font-size:32px;width:62px;height:66px;display:grid;place-items:center;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--green);box-shadow:3px 3px 0 var(--soft)}.journal-title h2{font-size:24px;letter-spacing:-.8px}.journal-title p{font-size:11px;color:var(--muted);margin-top:8px}.journal-title p span{margin:0 5px}.journal-progress{width:245px;flex-shrink:0}.journal-progress>div{display:flex;align-items:baseline;gap:6px}.journal-progress strong{font-size:31px;font-weight:650;color:var(--green)}.journal-progress span{font-size:11px;color:var(--muted)}.journal-progress em{font-style:normal;color:var(--green);font-size:14px;margin-left:auto}.journal-track{display:block;height:6px;background:var(--line);border-radius:6px;margin:10px 0 8px}.journal-track i{display:block;background:var(--state-online);height:100%;border-radius:6px}.journal-progress small{font-size:10px}.journal-save{border-top:1px solid var(--line);padding:12px 0 22px;color:var(--muted);font-size:10px;display:flex;justify-content:space-between;gap:15px;line-height:1.6}.journal-toolbar{display:flex;align-items:center;gap:16px;justify-content:space-between;margin-bottom:22px;flex-wrap:wrap}.journal-filter-tabs{display:flex;gap:5px;flex-wrap:wrap}.journal-filter-tabs button{border:1px solid transparent;padding:9px 11px;border-radius:8px;font-size:11px;color:var(--muted)}.journal-filter-tabs button span{margin-left:7px;font-size:10px;opacity:.8}.journal-filter-tabs button.active{background:var(--paper);border-color:var(--line);color:var(--green);font-weight:700;box-shadow:0 2px 4px #00000004}.journal-search{display:flex;align-items:center;gap:7px;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:0 11px;min-width:200px}.journal-search>span{font-size:23px;color:var(--muted)}.journal-search input{border:0;background:transparent;width:100%;font-size:11px;padding:10px 0;outline-offset:7px}
.journal-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px;align-items:start}.journal-chapters{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:14px 10px;position:sticky;top:18px;min-width:0}.journal-chapter-heading{padding:4px 5px 13px}.journal-chapter-heading h3{font-size:12px;margin-bottom:12px}.journal-chapter-heading select{font-size:11px;padding:8px;width:100%}#chapter-list{max-height:650px;overflow-y:auto;scrollbar-width:thin}.journal-chapter{display:flex;align-items:center;gap:9px;width:100%;border-radius:8px;padding:11px 8px;text-align:left;font-size:11px;margin-bottom:3px;line-height:1.5}.journal-chapter>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.journal-chapter small{font-size:9px;white-space:nowrap}.journal-chapter.selected{background:var(--soft);color:var(--green);font-weight:650}.chapter-symbol{display:grid;place-items:center;width:23px;height:23px;font-size:21px}.chapter-group-label{padding:16px 8px 7px;font-size:9px;letter-spacing:.6px;color:var(--muted)}.chapter-progress-line{height:2px;background:var(--line);display:block;width:100%;margin-top:7px;border-radius:2px}.chapter-progress-line i{height:100%;background:var(--state-online);display:block}.journal-chapters .hidden-quest-toggle{font-size:9px;padding:10px 5px 0;border-top:1px solid var(--line);line-height:1.7;margin-bottom:0}.journal-selection{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:0 0 21px;margin:4px 0 23px}.journal-selection>div{display:flex;align-items:center;gap:12px}.journal-selection h2{font-size:21px}.journal-selection p{font-size:11px;color:var(--muted);margin-top:7px;line-height:1.6}.journal-selection>span{font-size:10px;color:var(--muted);white-space:nowrap}.quest-section{margin-bottom:32px}.quest-section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:12px}.quest-section-heading h3{font-size:15px}.quest-section-heading h3>span:last-child{font-size:11px;margin-left:5px;color:var(--muted);font-weight:500}.section-state-mark{color:var(--orange);margin-right:8px}.complete .section-state-mark{color:var(--green)}.quest-section-heading p{font-size:10px;color:var(--muted);margin:7px 0 0 23px}.journal-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.journal-card{display:flex;flex-direction:column;gap:11px;min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:17px;text-align:left;box-shadow:0 2px 4px #00000002;transition:border-color .12s,transform .12s}.journal-card:hover{border-color:var(--state-online);transform:translateY(-2px);filter:none!important}.journal-card-top{display:flex;align-items:center;gap:12px}.journal-card-top>div{flex:1;min-width:0}.journal-card-top small{font-size:9px;display:block;margin-bottom:5px}.journal-card h3{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.card-state{font-size:17px;color:var(--muted);align-self:flex-start}.progress .card-state{color:var(--orange)}.complete .card-state{color:var(--state-online)}.card-subtitle{font-size:10px;line-height:1.7;color:var(--muted)}.card-task-preview{display:flex;gap:8px;align-items:center;overflow:hidden;min-height:20px;margin:4px 0 0}.card-task-preview>span{display:flex;align-items:center;gap:5px;min-width:0;flex:0 1 auto}.card-task-preview>span>span{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-goal{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);margin-top:auto}.card-progress{height:3px;display:block;border-radius:2px;background:var(--line)}.card-progress i{height:100%;display:block;background:var(--state-online);border-radius:2px}.journal-card.complete .item-tile{background:var(--bg)}.completed-label{color:var(--green)}.claim-note{font-size:10px;color:var(--orange);padding-top:9px;border-top:1px dashed var(--line)}.journal-pagination{display:flex;justify-content:space-between;align-items:center;margin-top:14px;font-size:10px;color:var(--muted)}.journal-pagination button{border:1px solid var(--line);border-radius:6px;padding:7px 10px;background:var(--paper);font-size:10px;margin-left:6px}.journal-empty{background:var(--paper);border:1px dashed var(--line);border-radius:10px;padding:30px;color:var(--muted);font-size:12px;line-height:1.7}.quest-modal-title{display:flex;align-items:center;gap:16px;margin:12px 0 22px}.quest-modal-title h2{margin:0}.quest-task>div:not(.task-amount){flex:1;min-width:0}.quest-rewards{padding-left:0!important;list-style:none}.quest-rewards li{display:flex;align-items:center;gap:10px;padding:10px 0}.quest-rewards li>span:nth-child(2){flex:1}
@media(min-width:1600px){.journal-layout{grid-template-columns:235px minmax(0,1fr)}.journal-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.journal-layout{grid-template-columns:185px minmax(0,1fr);gap:16px}.journal-card{padding:13px}.journal-card-top{gap:9px}.journal-card .item-tile{width:43px;height:43px}.journal-card .game-icon.icon-lg{width:31px;height:31px}.journal-title h2{font-size:20px}.journal-emblem{display:none}.journal-progress{width:210px}.card-task-preview>span>span{display:none}}
@media(max-width:700px){.journal-layout{grid-template-columns:1fr}.journal-chapters{position:static}.journal-chapter-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.journal-chapter-heading h3{margin:0}.journal-chapter-heading select{width:170px}#chapter-list{max-height:190px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.chapter-group-label{grid-column:1/-1}.journal-header{gap:15px}.journal-progress{width:170px}.journal-title h2{font-size:18px}.journal-save{flex-direction:column;gap:4px}.journal-toolbar{gap:10px}.journal-search{width:100%}.journal-filter-tabs button{padding:8px}.journal-selection{margin-top:8px}.journal-progress strong{font-size:25px}.journal-progress small{display:none}}
@media(max-width:450px){.journal-cards{grid-template-columns:1fr}.journal-title h2{font-size:17px}.journal-progress{width:130px}.journal-progress em{display:none}.journal-progress strong{font-size:24px}.journal-header{gap:10px}.journal-filter-tabs button{font-size:10px;padding:7px}.journal-filter-tabs button span{margin-left:4px}.quest-task .game-icon{width:24px;height:24px}.journal-selection>span{display:none}.card-task-preview>span>span{display:block}}

/* Hourly history: seven dates fit on desktop; small screens can scroll the strip. */
.chat-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:24px;align-items:start}.chat-panel h2,.announcement-panel h2{margin:0 0 10px}.chat-feed{height:480px;overflow:auto;overscroll-behavior:contain;padding:8px 10px 8px 0}.chat-message{display:flex;gap:12px;padding:15px 5px;border-bottom:1px solid var(--line)}.chat-message>div{min-width:0;flex:1}.chat-avatar{width:32px;height:32px;flex:0 0 32px;border-radius:10px;background:var(--bg);color:var(--green);display:grid;place-items:center;font-weight:700}.chat-message header{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.chat-message header strong{font-size:13px}.chat-message time{margin-left:auto;color:var(--muted);font-size:10px}.chat-message p{margin:7px 0 0;font-size:13px;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}.chat-announcement{background:rgba(185,153,67,.08)}.chat-announcement .chat-avatar{background:#b19b56;color:white}.chat-feed-footer{border-top:1px solid var(--line);padding-top:16px;display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px}.chat-connected{color:#4c8d66}.announcement-panel .eyebrow{margin-bottom:10px}.announcement-preview{background:linear-gradient(145deg,#273d30,#14251e);padding:24px 15px;border-radius:12px;text-align:center;margin:22px 0;color:#fff;min-height:150px}.announcement-preview>span{display:block;font-size:9px;color:#c3ccbc;margin-bottom:24px}.announcement-preview strong{font-size:25px;color:#f1ce71;text-shadow:2px 2px #000}.announcement-preview p{font-size:13px;line-height:1.8;margin:10px 0;overflow-wrap:anywhere;text-shadow:1px 1px #000}#announcement-form label{display:block;font-size:12px;font-weight:600;margin:18px 0 9px}#announcement-message{width:100%;resize:vertical;min-height:90px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:9px;padding:12px;line-height:1.7;font:inherit;font-size:13px}#announcement-message:focus{outline:2px solid var(--green);outline-offset:2px}.announcement-count{display:flex;justify-content:space-between;margin-top:7px;font-size:10px;color:var(--muted)}.over-limit,.send-error{color:#c65d5d!important}#announcement-seconds{width:100%}.announcement-recipient{font-size:11px;color:var(--muted);margin:20px 0 10px}#announcement-send{width:100%;padding:14px}#announcement-send:disabled{opacity:.5;cursor:not-allowed}.announcement-result{min-height:32px;font-size:12px;line-height:1.7;color:var(--green)}.announcement-panel>.small-note{margin-top:14px;line-height:1.8}.chat-panel .notice{font-size:11px;line-height:1.7}
@media(max-width:1050px){.chat-layout{grid-template-columns:1fr}.chat-feed{height:420px}.announcement-panel{max-width:none}}@media(max-width:850px){.sidebar{flex-wrap:wrap}.sidebar nav{flex-wrap:wrap}.chat-layout{gap:16px}.chat-message time{font-size:9px}.chat-feed{height:390px}}
.uptime-bars,.uptime-axis{width:100%;min-width:calc(var(--bars) * 5px);max-width:none;grid-template-columns:repeat(var(--bars),minmax(3px,1fr));gap:2px}.uptime-axis{display:grid;margin-top:9px;font-size:10px;color:var(--muted)}.uptime-axis>span{white-space:nowrap;border-left:1px solid var(--line);padding-left:5px}.uptime-bar{border-radius:1px}
/* Calendar, game periods, actual shipping receipts and server metrics. */
.calendar-card{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:22px 25px;border:1px solid var(--line);border-radius:12px;background:var(--soft);margin-bottom:22px}.calendar-card strong{font-size:24px}.calendar-card strong span{font-size:18px;color:var(--muted);margin-left:12px}.calendar-card p{margin:7px 0;font-size:12px;color:var(--muted)}.insight-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.insight-chart{display:block;width:100%;margin-top:18px;overflow:visible}.insight-chart text{fill:var(--muted);font-size:11px}.insight-chart circle:focus{stroke:var(--ink);stroke-width:3;outline:none}.insight-table-wrap{overflow-x:auto}.insight-table-wrap table{width:100%;border-collapse:collapse;font-size:12px}.insight-table-wrap th,.insight-table-wrap td{padding:13px 12px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}.insight-table-wrap th{font-weight:500;color:var(--muted)}.variant{display:block;white-space:normal}.report-controls{display:flex;flex-wrap:wrap;align-items:end;gap:20px}.report-controls label{display:grid;gap:8px;font-size:11px;color:var(--muted)}.report-controls label:first-of-type{flex:1;min-width:230px}.report-controls{margin-bottom:20px}.report-hero{position:relative;padding:28px;background:var(--soft);border-radius:12px;border:1px solid var(--line);margin-bottom:15px}.report-hero h2{font-size:26px}.report-hero p{color:var(--muted);margin:10px 0}.report-rule{margin-bottom:24px;line-height:1.9}.sale-list details{border-bottom:1px solid var(--line);padding:13px 0}.sale-list summary{cursor:pointer;display:flex;align-items:center;gap:20px;font-size:12px}.sale-list summary strong{margin-left:auto}.sale-list details>p{font-size:12px;margin:12px}.sale-list details>p>strong{float:right}.filters[data-mode="ledger"] .dimension-filter{display:none}.sidebar-note{padding-top:16px;padding-bottom:12px}.nav-caption{margin-top:30px}.stat .value{font-variant-numeric:tabular-nums}.report-controls .segmented{align-self:center}
@media(max-width:1000px){.calendar-card{align-items:start;flex-direction:column;gap:14px}.insight-two{grid-template-columns:1fr}.report-controls{gap:12px}.sale-list summary{flex-wrap:wrap}}
.filters[data-mode="ledger"] #filter-form .dimension-filter{display:none}
@media(max-width:1100px){.report-controls .segmented{flex-basis:100%}.report-controls>div:last-child{display:flex;gap:12px}.report-controls .text-button{white-space:nowrap}}
@media(max-width:550px){.report-controls label:first-of-type{min-width:0;flex-basis:100%}.report-controls label{min-width:0;max-width:100%}.report-controls select{max-width:100%;min-width:0}.sale-list details>p{overflow-wrap:anywhere}.calendar-card strong{font-size:21px}}

/* Shared reading and control sizes across the eight dashboard views. */
:root{--muted:#626f65;--control-border:#c2cdc0;--focus:#426b49;--scroll-thumb:#9aa995}
:root[data-theme=dark]{--muted:#b1bfad;--control-border:#536852;--focus:#b0d299;--scroll-thumb:#70846e}
body{line-height:1.55;word-break:keep-all;overflow-wrap:anywhere}
button,input,select,textarea{font:inherit}
button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
button:disabled{opacity:1;color:var(--muted);cursor:not-allowed}
button:disabled:not(.icon-button){background:var(--bg);border-color:var(--line)}
.skip-link{position:fixed;top:10px;left:12px;z-index:10;transform:translateY(-150%);padding:10px 16px;border-radius:8px;background:var(--paper);border:2px solid var(--focus)}
.skip-link:focus{transform:translateY(0)}
.sidebar{overflow-y:auto;scrollbar-width:thin;scrollbar-gutter:stable}
.sidebar nav,.sidebar .brand{flex-shrink:0}
.nav-item{min-height:44px;font-size:13px;padding:10px 8px;gap:8px}
.nav-item span{flex-shrink:0}
.nav-item.active{box-shadow:none}
.sidebar-bottom{font-size:11px}
.sidebar-bottom button{min-height:40px;font-size:12px}
.sidebar-note p,.nav-caption{color:var(--muted)}
.sidebar-note p{font-size:11px}
.topbar{min-height:72px;height:auto;gap:16px;padding:14px 0;font-size:12px}
.top-actions{gap:10px;flex-shrink:0}
.icon-button{width:40px;height:40px;border-color:var(--control-border);color:var(--ink)}
.status{font-size:11px;padding:7px 11px}
.heading p{font-size:14px;line-height:1.7}
.eyebrow,.section-index{font-size:10px;color:var(--muted)}
.filter-top{gap:12px;flex-wrap:wrap}
.presets{flex-wrap:wrap;gap:4px}
.presets button,.segmented button,.tabs button,.journal-filter-tabs button{min-height:38px;padding:8px 12px;font-size:12px;line-height:1.5}
.presets .selected,.segmented button.on,.tabs button.active{box-shadow:inset 0 0 0 1px var(--control-border);font-weight:700}
.timezone,#filter-form label,.report-controls label{font-size:12px;color:var(--muted)}
#filter-form{flex-wrap:wrap;gap:12px}
#filter-form label{min-width:145px}
#filter-form label input,#filter-form label select{height:42px;font-size:13px}
input:not([type=checkbox]),select{min-height:40px;border-color:var(--control-border)}
.primary{min-height:42px;font-size:13px}
.text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 10px;border:1px solid var(--control-border);border-radius:7px;font-size:12px;line-height:1.5;background:var(--paper);font-weight:600;white-space:nowrap}
.text-button:hover:not(:disabled),.page-button:hover:not(:disabled){background:var(--soft);border-color:var(--green);filter:none}
td .text-button{border-color:transparent;background:transparent;padding:6px 2px;justify-content:flex-start}
.notice,.error,.small-note,.panel-sub,.stat-note,.metric-note{font-size:12px;line-height:1.75;color:var(--muted)}
.notice{color:#5c6545}.error{color:#9b3a3a}
.empty{color:var(--muted);font-size:14px}.empty small{font-size:12px}
.stat-grid{gap:16px}
.stat{padding:20px;min-width:0}
.stat .label{font-size:12px;gap:10px}
.stat .value{font-size:clamp(23px,2.05vw,32px);white-space:normal;overflow-wrap:anywhere;line-height:1.35;letter-spacing:-.5px}
.stat .value em{white-space:nowrap}
.stat-note{margin-top:10px}
.panel-header{align-items:flex-start;flex-wrap:wrap;gap:14px;margin-bottom:20px}
.panel-header>div{min-width:0}
.panel-actions{flex-wrap:wrap}
.panel-actions select,.small-select,.quality-filter{font-size:12px;max-width:none}
.section-title{gap:16px;flex-wrap:wrap}
.section-title p,.substats div,.dimension-row,.movement-item,.movement-item strong{font-size:12px}
.chart-note,.metric-bottom,.heat-caption,.dimension-row small,.chart-total small{font-size:11px;color:var(--muted)}
.chart-note,.metric-bottom{gap:12px;flex-wrap:wrap}
.chart-text{fill:var(--muted);font-size:12px}
.chart-total{line-height:1.5}
.chart-total small{display:inline-block}
.pill{font-size:11px;line-height:1.5;padding:4px 8px}
.item-id,.rank{font-size:11px;color:var(--muted)}
table,.event-table,.insight-table-wrap table{font-size:13px}
th,.sort-button{font-size:12px;color:var(--muted)}
th,td{padding:14px 14px}
.sort-button{min-height:30px}
.item-name,.player-button{min-height:36px}
.item-name{white-space:normal;overflow-wrap:anywhere;min-width:150px}
.item-id{overflow-wrap:anywhere}
.insight-table-wrap .num{ text-align:right }
.insight-table-wrap td:first-child{white-space:normal;min-width:120px}
.insight-table-wrap th,.insight-table-wrap td{padding:14px}
.table-wrap,.insight-table-wrap,.uptime-scroll,.chart-scroll{max-width:100%;padding-bottom:10px;overscroll-behavior-x:contain}
.chart-scroll{overflow-x:auto;padding-top:4px}
.chart-scroll>.chart{min-width:560px}
.chart-scroll>.insight-chart{min-width:640px}
.table-wrap:focus-visible,.insight-table-wrap:focus-visible{outline-offset:-2px}
.searchbar input,.record-controls input,.record-controls select{font-size:13px}
#items-count{font-size:12px!important}
.searchbar input{max-width:320px}
.record-controls{align-items:center}
.content-tabs{gap:16px;flex-wrap:wrap}
.content-tabs button{min-height:44px;padding:10px 6px}
.player-profile{flex-wrap:wrap}
.player-profile p{font-size:12px}
.player-profile>div{min-width:0;overflow-wrap:anywhere}
.calendar-card{line-height:1.7}
.calendar-card small{font-size:12px}
footer{font-size:11px;color:var(--muted);flex-wrap:wrap}

/* Every history pager has the same hit area, spacing and range summary. */
.pagination,.journal-pagination,.history-pager{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--muted);line-height:1.6;padding:16px 0 4px}
.pagination>div,.journal-pagination>div,.pager-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.pagination button,.journal-pagination button,.page-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;min-width:84px;margin:0;padding:9px 14px;border:1px solid var(--control-border);border-radius:8px;background:var(--paper);color:var(--green);font-size:13px;line-height:1.5;font-weight:600;white-space:nowrap}
.pagination button:disabled,.journal-pagination button:disabled,.page-button:disabled{color:var(--muted);border-style:dashed;background:var(--bg)}
.report-controls{display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,.5fr);gap:18px 20px}
.report-controls .segmented{grid-column:1/-1;width:max-content;max-width:100%}
.report-controls label,.report-controls label:first-of-type{min-width:0;width:100%}
.report-controls select{width:100%;font-size:13px}
.report-controls .history-pager{grid-column:1/-1;border-top:1px solid var(--line);width:100%;display:flex;gap:12px}
.report-hero h2{line-height:1.5}
.report-hero p{font-size:13px;line-height:1.8}
.sales-history-header{margin-bottom:0}
.sales-history-header .history-pager{width:100%;border-top:1px solid var(--line)}
.sale-list details{padding:0}
.sale-list summary{padding:16px 4px;font-size:13px;gap:12px;list-style:none;flex-wrap:wrap}
.sale-list summary::-webkit-details-marker{display:none}
.sale-list summary::before{content:'›';display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--control-border);border-radius:6px;flex-shrink:0;font-size:20px;line-height:1;color:var(--green)}
.sale-list details[open]>summary::before{transform:rotate(90deg)}
.sale-list details[open]{background:var(--bg);border-radius:8px}
.sale-list details>p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.sale-list .sale-line{display:flex;justify-content:space-between;gap:16px;margin:12px 16px}
.sale-line>strong{float:none;white-space:nowrap}

/* Reserve scrollbar space separately from the readable content edge. */
.status-events,#chapter-list,.chat-feed{scrollbar-gutter:stable;padding-right:16px;scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) transparent;overscroll-behavior:contain}
.status-events{max-height:380px}
.status-events>div{padding:16px 4px;gap:16px;align-items:flex-start}
.status-events>div>i{margin-top:7px}
.status-events>div>span:first-of-type{min-width:0;overflow-wrap:anywhere}
.status-events small{font-size:12px;line-height:1.7}
.status-events>div>small{white-space:nowrap;margin-top:0;min-width:50px;text-align:right;font-variant-numeric:tabular-nums}
.status-components .panel>span,.status-components small,.online-player small,.status-legend,#bucket-detail{font-size:12px}
.status-legend{gap:12px 20px;line-height:1.7}
.uptime-axis{font-size:11px}
.online-player{max-width:100%;min-width:min(230px,100%)}
.online-player>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
.journal-main{min-width:0}
.journal-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}
.journal-card{padding:18px}
.journal-card h3{font-size:14px}
.journal-card-top small,.card-subtitle,.card-goal,.claim-note,.journal-save,.journal-title p,.journal-selection p,.quest-section-heading p,.journal-progress small{font-size:12px;line-height:1.7}
.card-task-preview>span>span{font-size:11px}
.journal-chapter{font-size:12px;min-height:44px;gap:8px;padding:10px 6px}
.journal-chapter small{font-size:11px}
.chapter-group-label{font-size:11px;color:var(--muted)}
.journal-chapter-heading select,.journal-search input{font-size:13px}
.journal-filter-tabs button span{font-size:11px}
.journal-chapters .hidden-quest-toggle{font-size:11px;padding-top:12px;align-items:flex-start}
.hidden-quest-toggle input{margin-top:4px;flex-shrink:0;accent-color:var(--green)}
.journal-selection{flex-wrap:wrap}
.journal-progress span{font-size:12px}
.journal-search{min-width:0}
.journal-header{flex-wrap:wrap;gap:20px}
.chat-message{padding:16px 2px}
.chat-message time,.chat-feed-footer,.announcement-count,.announcement-recipient{font-size:12px}
.chat-feed-footer{align-items:center;flex-wrap:wrap}
.announcement-preview>span{font-size:11px}
.announcement-result{line-height:1.8}

/* Keep the close control reachable while long quest/help details scroll. */
dialog{padding:0;max-height:calc(100dvh - 32px);overflow:hidden;background:var(--paper)}
#dialog-body{max-height:calc(100dvh - 34px);overflow-y:auto;scrollbar-gutter:stable;padding:56px 32px 32px;overscroll-behavior:contain}
.dialog-close{top:12px;right:20px;z-index:1;background:var(--paper);box-shadow:0 2px 8px #0001}
.help-body p,.help-body li,.quest-task,.quest-task strong{font-size:13px}
.quest-modal-title h2{line-height:1.5;overflow-wrap:anywhere}
.quest-task{gap:10px}
.quest-task details{font-size:12px}
.task-amount strong{font-variant-numeric:tabular-nums}

@media(min-width:1600px){.journal-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-height:950px) and (min-width:851px){.sidebar-note{display:none}.sidebar-bottom{margin-top:auto}}
@media(max-width:1150px){
  .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-main{grid-template-columns:1fr}
  .date-dash{display:none}
  #filter-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #filter-form label,#filter-form .player-filter,#filter-form .dimension-filter{min-width:0}
  #filter-form .primary{justify-self:start}
  .filters[data-mode=status] #filter-form{grid-template-columns:1fr 1fr auto}
  .filters[data-mode=quests] #filter-form{grid-template-columns:minmax(0,330px) auto;justify-content:start}
  .filters[data-mode=quests] .primary{margin-left:0}
  .journal-layout{grid-template-columns:210px minmax(0,1fr)}
  .journal-card .item-tile{width:48px;height:48px}
  .journal-progress{width:210px}
}
@media(max-width:850px){
  .sidebar{overflow:visible;scrollbar-gutter:auto;gap:14px;padding:16px 20px}
  .sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:4px}
  .nav-item{justify-content:center;padding:10px 6px;font-size:12px;line-height:1.5}
  .nav-item.active{box-shadow:none}
  .topbar{min-height:64px}
  .sidebar-note,.sidebar-bottom{display:none}
}
@media(max-width:700px){
  .journal-layout{grid-template-columns:1fr}
  #chapter-list{max-height:220px}
  .journal-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr))}
  .journal-chapter-heading{flex-wrap:wrap}
}
@media(max-width:620px){
  .sidebar{padding:14px 16px}
  main{padding:0 16px}
  .topbar{align-items:center;flex-wrap:wrap;gap:10px}
  .topbar>span{max-width:none;font-size:11px}
  .top-actions{margin-left:auto;gap:8px}
  .status{font-size:11px;padding:7px 9px}
  .heading h1{font-size:26px}
  .heading p{font-size:13px}
  .presets{justify-content:flex-start}
  .presets button{padding:8px 10px}
  .timezone{display:block;font-size:11px}
  .filters{padding:16px}
  #filter-form,.filters[data-mode=status] #filter-form,.filters[data-mode=quests] #filter-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #filter-form .primary{grid-column:1/-1;width:100%;margin-top:0;justify-self:stretch}
  .filters[data-mode=quests] .player-filter{grid-column:1/-1;max-width:none}
  .stat{padding:16px;min-height:130px}
  .stat .value{font-size:24px}
  .panel{padding:18px}
  .table-panel{padding:8px}
  .panel-actions{width:100%}
  .panel-actions select{flex:1;max-width:none}
  .section-title{align-items:flex-start}
  .substats div{font-size:12px}
  .substats strong{font-size:14px}
  .searchbar input{width:100%;flex-basis:100%;max-width:none}
  .searchbar .quality-filter{flex:1}
  .tabs button{font-size:12px;padding:8px 10px}
  .record-controls input,.record-controls select{width:100%}
  .report-controls{grid-template-columns:1fr;gap:16px}
  .report-controls label:first-of-type{min-width:0}
  .report-controls .segmented{width:100%}
  .report-controls .segmented button{flex:1}
  .history-pager>span{flex-basis:100%}
  .history-pager .pager-actions{width:100%}
  .history-pager .page-button{flex:1;min-width:0}
  .report-hero{padding:22px}
  .report-hero h2{font-size:23px}
  .journal-progress{width:100%}
  .journal-progress small{display:block}
  .journal-progress em{display:block}
  .journal-title h2{font-size:21px}
  .journal-filter-tabs button{font-size:12px;padding:8px 10px}
  .journal-search{width:100%}
  .journal-selection>span{display:block;font-size:12px}
  .card-task-preview>span>span{display:block}
  .chat-message header{gap:6px 10px}
  .chat-message time{font-size:11px;margin-left:0;flex-basis:100%}
  .movement-list{grid-template-columns:1fr}
  .heatmap{gap:2px}
  .heat-label{font-size:10px}
  #dialog-body{padding:58px 20px 24px}
  .quest-task{flex-wrap:wrap}
  .quest-task>div:not(.task-amount){min-width:120px}
  .task-amount{width:100%;padding-left:34px;text-align:left}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Large data regions have a surface; individual statistics remain unboxed. */
:root .nav-item.active{background:var(--soft);box-shadow:none;color:var(--green);text-decoration:none;font-weight:700}
:root .panel{background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:none;padding:24px;margin-bottom:24px}
.grid-main>.panel,.insight-two>.panel{margin-bottom:0}
:root .table-panel{padding:6px 10px}
:root .filters{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0 0 24px;margin-bottom:28px}
:root .stat,:root .stat.primary-stat{background:transparent;border:0;border-radius:0;padding:12px 0 20px;min-height:0;color:var(--ink)}
:root .stat.primary-stat .label,:root .stat.primary-stat .stat-note{color:var(--muted)}
:root .stat.primary-stat .value{color:var(--green)}
.stat-grid{gap:28px;border-bottom:1px solid var(--line);padding-bottom:10px}
:root .substats{border:0;border-radius:0;padding:4px 0 16px;background:transparent}
.calendar-card{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:6px 0 24px}
.server-hero{border:0;border-radius:0;background:transparent;padding:12px 0 24px}
.server-hero .hero-check{margin-left:auto}
.status-components{border-bottom:1px solid var(--line)}
.status-events{border-top:1px solid var(--line);padding-top:4px}
:root .text-button{background:transparent;border:0;border-radius:0;padding:8px 2px;box-shadow:none}
:root .text-button:hover:not(:disabled){background:transparent;text-decoration:underline;text-underline-offset:4px}
.presets,.segmented{background:transparent;border:0;border-radius:0;padding:0;gap:8px}
:root .presets .selected,:root .segmented button.on,:root .tabs button.active{background:transparent;box-shadow:none;color:var(--green);text-decoration:underline;text-underline-offset:7px;text-decoration-thickness:2px}
.presets button,.segmented button,.tabs button{background:transparent;border-radius:0;padding:9px 10px}
:root .tabs button{background:transparent}
.report-controls{border-bottom:1px solid var(--line);padding:0 0 22px;margin-bottom:28px}
.report-list-pages{grid-column:1/-1;margin-top:2px}
.report-list-pages summary{cursor:pointer;min-height:40px;display:list-item;list-style:disclosure-closed inside;padding:9px 0;color:var(--muted);font-size:12px}
.report-list-pages[open]>summary{list-style-type:disclosure-open}
.report-controls .report-list-pages .history-pager{border:0;padding-top:8px}
.report-list-pages .page-button{background:transparent;border:0;border-radius:0;padding:8px 4px;min-width:86px;min-height:40px}
.report-list-pages .page-button:hover:not(:disabled){text-decoration:underline;text-underline-offset:5px}
.report-list-pages .page-button:disabled{background:transparent;color:var(--muted);opacity:.6}
.report-hero{background:transparent;border:0;border-radius:0;padding:0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:24px;margin-bottom:20px}
.report-heading{min-width:0;flex:1 1 300px}
.period-navigation{display:flex;flex-direction:column;gap:10px;align-items:flex-end}
.period-navigation>span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.period-navigation .pager-actions{display:flex;gap:10px}
.period-navigation .page-button{min-width:116px}
.period-navigation .page-button:disabled{opacity:.65}
.journal-chapters{border:0;border-radius:0;background:transparent;padding:0 8px 0 0}
.journal-card{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;padding:18px 4px}
.journal-card:hover{transform:none;background:var(--soft)}
.journal-card .item-tile,.item-tile{border:0;border-radius:0;background:transparent}
.journal-card.complete .item-tile{background:transparent}
.journal-filter-tabs button.active{border-color:transparent;background:transparent;box-shadow:none;text-decoration:underline;text-underline-offset:7px;text-decoration-thickness:2px}
.journal-empty{border:0;background:transparent;padding:24px 0}
.quest-breadcrumb{font-size:12px;line-height:1.7;color:var(--muted);margin-bottom:12px}
.online-player{border:0;border-radius:0;padding:12px 0}
.online-player:hover{background:var(--soft)}
@media(max-width:620px){
  .stat-grid{gap:16px}
  :root .panel{padding:18px}
  :root .table-panel{padding:4px}
  .report-heading{flex-basis:100%}
  .period-navigation{width:100%;align-items:flex-start}
  .period-navigation .pager-actions{width:100%}
  .period-navigation .page-button{flex:1;min-width:0}
  .report-controls .report-list-pages .history-pager{gap:8px}
}

/* Information hierarchy: activity, participation, trends, then detailed records. */
:root{--bg:#f4f6f2;--paper:#ffffff;--line:#dce3d9;--surface-alt:#edf2ea;--sidebar-bg:#fafbf8}
:root[data-theme=dark]{--bg:#121b17;--paper:#1a2720;--line:#33453a;--surface-alt:#223328;--sidebar-bg:#17211b}
main{margin-left:232px;padding:0 32px;max-width:1832px}
.sidebar{width:232px;padding:22px 18px 16px;background:var(--sidebar-bg);gap:16px;scrollbar-gutter:auto}
.brand{padding:0 8px;font-size:19px;gap:10px}
.brand-icon{width:36px;height:40px;font-size:29px;border-radius:10px}
.brand small{font-size:11px;letter-spacing:1px}
.sidebar .main-navigation{display:flex;flex-direction:column;gap:18px;overflow:visible}
.nav-group{display:grid;gap:2px}
.nav-caption{display:block;font-size:11px;letter-spacing:0;font-weight:600;color:var(--muted);margin:0 10px 5px}
.nav-item{padding:10px 12px;gap:11px;border-radius:7px;min-height:40px;color:var(--muted);white-space:nowrap}
.nav-item:hover{background:var(--surface-alt);filter:none}
.nav-item>span{display:grid;place-items:center;width:19px;height:20px;line-height:1}
.nav-item svg{width:19px;height:19px}
.sidebar-bottom{margin-top:auto;padding:18px 8px 0;line-height:1.7}
.sidebar-bottom button{margin-top:8px}
.heading{padding:26px 0 22px}
.heading h1{font-size:28px;letter-spacing:-.8px}
.heading p{font-size:13px}
:root .filters{margin-bottom:24px;padding:0 0 22px}
.filter-top{margin-bottom:12px}
.presets button{padding:6px 10px;min-height:34px}
.section-title{margin:32px 0 14px;align-items:center}
.section-title h2,.panel h2{font-size:16px}
.section-title p{margin-top:5px;color:var(--muted);line-height:1.7}
.panel-header{padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:20px}
.panel-sub{margin-top:5px}
.grid-main{gap:20px;margin-bottom:28px;grid-template-columns:minmax(0,1.85fr) minmax(260px,1fr)}
.grid-main>.panel,.insight-two>.panel{margin-bottom:0}
.calendar-card{font-size:12px;margin-bottom:24px;padding:14px 18px;background:var(--surface-alt);border:0;border-radius:8px;gap:20px}
.calendar-card strong{font-size:19px}
.calendar-card strong span{font-size:15px;margin-left:8px}
.calendar-card p,.calendar-card small{font-size:11px}
.calendar-card small{display:block;max-width:460px}
.calendar-compact{padding:13px 18px;gap:12px;margin-bottom:20px;flex-direction:row;flex-wrap:wrap}
.calendar-date,.calendar-condition{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.calendar-date>span,.calendar-condition>span:not(.pill){font-size:11px;color:var(--muted)}
.calendar-compact strong{font-size:17px}
.calendar-compact strong span{font-size:13px}
#notice{background:transparent;padding:0;margin:0 0 16px;font-size:11px;color:var(--muted)}
.player-profile{margin:0 0 24px;padding:0 0 20px;border-bottom:1px solid var(--line)}
.activity-overview{margin-bottom:24px}
.activity-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.activity-group{border:1px solid var(--line);border-radius:12px;background:var(--paper);min-width:0;overflow:hidden}
.activity-group h2{font-size:14px;font-weight:700;padding:15px 20px;background:var(--surface-alt);border-bottom:1px solid var(--line)}
.activity-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px}
.activity-metric{position:relative;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:14px 10px;text-align:left;border-radius:7px;transition:background .15s}
button.activity-metric:hover,.activity-metric[aria-pressed=true]{background:var(--soft);filter:none}
.activity-label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;line-height:1.5}
.activity-label svg{width:17px;height:17px;flex-shrink:0;color:var(--green)}
.activity-value{font-size:clamp(23px,2.1vw,32px);font-weight:700;line-height:1.2;letter-spacing:-.7px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.activity-value small{font-size:12px;font-weight:400;letter-spacing:0;margin-left:5px;white-space:nowrap;color:var(--muted)}
.activity-link{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}
.activity-metric:hover .activity-link,.activity-metric[aria-pressed=true] .activity-link{color:var(--green)}
.activity-footnote{font-size:11px;line-height:1.7;margin-top:10px;color:var(--muted)}
.participation{padding:0 2px 24px;margin-bottom:28px;border-bottom:1px solid var(--line)}
.participation dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0}
.participation dl>div{min-width:0}
.participation dt{font-size:12px;color:var(--muted)}
.participation dd{margin:5px 0 0;font-size:21px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.4px}
.participation dd small{font-size:12px;margin-left:6px;font-weight:400}
.participation>p{font-size:11px;color:var(--muted);margin-top:12px;line-height:1.7}
#activity-chart-panel{scroll-margin-top:20px}
.exploration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
:root .exploration-grid>.panel{margin-bottom:24px}
.exploration-grid .movement-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.stat-grid{padding:20px 24px;background:var(--paper);border:1px solid var(--line);border-radius:12px;gap:24px}
:root .stat{padding:0}
.stat .value{margin-top:10px}
.stat-note:empty{display:none}
.status-components{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:18px 22px;gap:24px}
:root .status-components>.panel{background:transparent;border:0;border-radius:0;padding:0;margin:0}
.server-hero{margin-bottom:22px}
.journal-chapters{padding-right:18px;border-right:1px solid var(--line)}
.journal-card{border:1px solid var(--line);border-radius:10px;background:var(--paper);padding:18px}
.journal-card:hover{background:var(--surface-alt);border-color:var(--control-border)}
.journal-header{border-bottom:1px solid var(--line);padding-bottom:20px}
.report-hero{padding:20px 0 0}
.report-controls{margin-bottom:16px}
.report-rule{margin-bottom:20px}
.chat-layout>.panel{min-width:0}
@media(max-width:1200px){
  .activity-groups{grid-template-columns:1fr;gap:16px}
  .activity-metrics{padding:8px 12px}
  .activity-metric{padding:12px 16px;gap:10px}
  .activity-value{font-size:30px}
  .activity-link{display:none}
  .grid-main{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}
  .exploration-grid{grid-template-columns:1fr;gap:0}
}
@media(max-width:900px){
  main{margin-left:0;padding:0 24px}
  .sidebar{position:relative;inset:auto;width:auto;padding:18px 24px;gap:18px;border:0;border-bottom:1px solid var(--line);overflow:visible}
  .sidebar .main-navigation{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:18px;max-width:100%}
  .nav-group{align-content:start;gap:2px}
  .nav-caption{margin:0 8px 7px}
  .nav-item{padding:8px;font-size:12px;gap:8px;min-height:38px;justify-content:flex-start}
  .nav-item>span{width:17px}
  .nav-item svg{width:17px;height:17px}
  .brand{padding:0}
  .sidebar-bottom{display:none}
  .grid-main{grid-template-columns:1fr}
  .calendar-card{align-items:flex-start;flex-direction:row;flex-wrap:wrap}
  .journal-chapters{border-right:0;padding-right:0}
}
@media(max-width:620px){
  main{padding:0 16px}
  .sidebar{padding:16px}
  .sidebar .main-navigation{gap:8px;grid-template-columns:1fr 1.25fr 1fr}
  .nav-item{font-size:12px;gap:6px;padding:8px 5px;min-height:40px}
  .nav-caption{font-size:11px;margin-left:5px}
  .nav-item>span,.nav-item svg{width:15px;height:15px}
  .heading{padding:22px 0 18px}
  .heading h1{font-size:25px}
  .activity-group h2{padding:13px 16px}
  .activity-metrics{display:flex;flex-direction:column;gap:6px;padding:8px}
  .activity-metric{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 8px;border-radius:6px}
  .activity-metric+.activity-metric{border-top:1px solid var(--line)}
  .activity-value{font-size:26px;text-align:right}
  .activity-label{font-size:13px;gap:9px}
  .participation dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  .participation dd{font-size:20px}
  .stat-grid{padding:18px;gap:20px}
  .status-components{padding:18px}
  .calendar-card{padding:14px}
  .section-title{margin-top:24px}
  .journal-card{padding:16px}
}
@media(max-width:359px){
  .nav-item>span{display:none}
  .sidebar .main-navigation{gap:4px}
}

/* Shared control spacing and detail views. Keep data hierarchy consistent across reports. */
:root{--select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2354674f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
:root[data-theme=dark]{--select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23bfcebc' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
:root select:not([multiple]):not([size]){appearance:none;padding-left:12px;padding-right:40px;background-image:var(--select-arrow);background-repeat:no-repeat;background-position:right 12px center;background-size:16px}
.report-context dl{grid-template-columns:repeat(3,minmax(0,1fr))}
.report-context dd{overflow-wrap:anywhere}
.report-activities .activity-metric{gap:16px}
.chat-feed{padding:8px 0;scrollbar-gutter:stable both-edges}
.chat-message{padding:16px;gap:12px;border-radius:8px}
.chat-message+.chat-message{margin-top:8px}
.chat-message:last-child{border-bottom-color:transparent}
.chat-message time{font-variant-numeric:tabular-nums}
#dialog-body{padding-top:28px}
.item-detail-header{padding-right:48px;margin-bottom:24px}
.item-detail-header h2{font-size:23px;line-height:1.5;margin:0 0 8px;overflow-wrap:anywhere}
.item-detail-header .panel-sub{overflow-wrap:anywhere}
.item-detail-total{margin:0 0 8px}
.help-body>h2,.quest-modal-title{padding-right:48px}
.interactive-chart{position:relative;min-width:0}
.chart-tooltip{position:absolute;z-index:2;pointer-events:none;max-width:calc(100% - 16px);padding:10px 14px;border:1px solid var(--control-border);border-radius:8px;background:var(--paper);color:var(--ink);box-shadow:0 4px 16px #0002;line-height:1.5;font-variant-numeric:tabular-nums}
.chart-tooltip span{display:block;font-size:12px;color:var(--muted)}
.chart-tooltip strong{display:block;font-size:17px;font-weight:700;white-space:nowrap}
.chart-guide{stroke:var(--green);stroke-width:1;stroke-dasharray:4 4;opacity:.6;pointer-events:none}
.chart [data-chart-point]{cursor:crosshair;outline:none}
.chart [data-chart-point].chart-point-active{fill:var(--green);fill-opacity:.2;stroke:var(--green);stroke-width:2}
@media(max-width:620px){
  .report-context dl{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-context dl>div:first-child{grid-column:1/-1}
  .chat-message{padding:14px 12px;gap:10px}
  #dialog-body{padding-top:24px}
  .item-detail-header{padding-right:40px;margin-bottom:20px}
  .item-detail-header h2{font-size:22px}
}
@media(forced-colors:active){
  :root select:not([multiple]):not([size]){appearance:auto;background-image:none;padding-right:12px}
}

/* Public chat; signed-in members compose here and announcements use a separate dialog. */
@media(min-width:901px){.sidebar .main-navigation>.nav-chat{margin-top:-16px}}
@media(max-width:900px){.sidebar .main-navigation>.nav-chat{grid-column:1/-1;justify-self:start;width:auto;min-width:112px}.sidebar .main-navigation{grid-template-columns:1fr 1fr}}

/* Unified village / player statistics. */
@media(min-width:901px){.sidebar .main-navigation>.nav-stats,.sidebar .main-navigation>.nav-quests,.sidebar .main-navigation>.nav-records{margin-top:-16px}}
@media(max-width:900px){.sidebar .main-navigation>.nav-group{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}.sidebar .main-navigation>.nav-group>.nav-caption{grid-column:1/-1}}
.filters:is([data-mode=stats],[data-mode=records]){padding:10px 0 22px;margin-bottom:26px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.filters:is([data-mode=stats],[data-mode=records]) .filter-top{margin-bottom:18px;padding:0;border:0}
.filters:is([data-mode=stats],[data-mode=records]) .timezone{display:none}
.filters:is([data-mode=stats],[data-mode=records]) #filter-form{display:grid;grid-template-columns:minmax(150px,1.3fr) minmax(140px,1.1fr) minmax(130px,1fr) minmax(130px,1fr) auto;align-items:end;gap:12px}
.filters:is([data-mode=stats],[data-mode=records]) #filter-form .player-filter{grid-column:1;grid-row:1}
.filters:is([data-mode=stats],[data-mode=records]) #filter-form .dimension-filter{grid-column:2;grid-row:1}
.filters:is([data-mode=stats],[data-mode=records]) #filter-form .range-start{grid-column:3;grid-row:1}
.filters:is([data-mode=stats],[data-mode=records]) #filter-form .range-end{grid-column:4;grid-row:1}
.filters:is([data-mode=stats],[data-mode=records]) #filter-form .date-dash{display:none}
.filters:is([data-mode=stats],[data-mode=records]) #filter-form input,.filters:is([data-mode=stats],[data-mode=records]) #filter-form select{width:100%;font-size:12px;height:40px}
.filters:is([data-mode=stats],[data-mode=records]) #filter-form .primary{height:40px;padding:0 16px;font-size:12px;white-space:nowrap}
.filters:is([data-mode=stats],[data-mode=records]) #filter-form .primary span{display:none}
.stats-page{--stats-heat-0:var(--soft);--stats-heat-1:#dce8d4;--stats-heat-2:#b5cd9b;--stats-heat-3:#84a66a;--stats-heat-4:#456b44;max-width:1320px;margin:0 auto}
[data-theme=dark] .stats-page{--stats-heat-0:#213228;--stats-heat-1:#334c3b;--stats-heat-2:#4d6d46;--stats-heat-3:#77945c;--stats-heat-4:#b4cf87}
.stats-scope{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}
.stats-scope-person{display:flex;align-items:center;gap:12px;min-width:0}
.stats-scope h2{font-size:24px;letter-spacing:-.6px}
.stats-scope p{font-size:11px;color:var(--muted);margin-top:5px}
.stats-scope-actions{display:flex;align-items:center;gap:12px}
.stats-village-icon{color:var(--green);display:grid;place-items:center;width:36px;height:40px}
.stats-village-icon svg{width:30px;height:30px}
.stats-face{position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:8px;background:var(--soft);overflow:hidden;flex-shrink:0;font-weight:700}
.stats-face img{position:absolute;width:100%;height:100%;inset:0;image-rendering:pixelated}
.stats-face img[hidden]{display:none}
.stats-context{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0 0 28px}
.stats-context dt{font-size:11px;color:var(--muted);margin-bottom:8px}
.stats-context dd{margin:0;font-size:21px;line-height:1.3;font-weight:600;font-variant-numeric:tabular-nums}
.stats-context small{margin-left:5px;color:var(--muted);font-size:11px;font-weight:400}
.stats-tabs{display:flex;gap:30px;border-bottom:1px solid var(--line);margin-bottom:22px}
.stats-tabs button{background:transparent;border:0;border-radius:0;border-bottom:2px solid transparent;padding:10px 2px 14px;color:var(--muted);font-size:14px}
.stats-tabs button[aria-selected=true]{border-bottom-color:var(--green);color:var(--ink);font-weight:650}
.stats-tabs button:hover{color:var(--ink)}
.stats-activity-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:28px}
.stats-activity{padding:16px 12px;min-width:0;display:flex;flex-direction:column;text-align:left;gap:16px;border-radius:8px;border:1px solid transparent;border-bottom:2px solid transparent;background:transparent}
.stats-activity:hover{background:var(--soft)}
.stats-activity[aria-pressed=true]{border-color:var(--line);border-bottom-color:var(--green);background:var(--soft)}
.stats-activity>span{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);white-space:nowrap}
.stats-activity svg{width:16px;height:16px;color:var(--green);flex-shrink:0}
.stats-activity strong{font-size:clamp(18px,1.8vw,28px);font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.6px;white-space:nowrap}
.stats-activity small{font-size:10px;font-weight:400;margin-left:4px;color:var(--muted);letter-spacing:0}
.stats-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}
.stats-section-heading h3{font-size:16px;font-weight:650}
.stats-chart-section{padding:22px 24px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.stats-chart-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.stats-chart-controls select{font-size:12px;min-width:110px}
.stats-chart-controls .segmented button{padding:9px 13px;font-size:11px}
.stats-chart-section .chart-total{font-size:27px;margin-bottom:12px}
.stats-chart-section .chart-total small{font-size:11px;margin-left:10px}
.stats-chart-section .chart{max-height:280px;min-height:210px}
.stats-chart-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:14px;margin-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}
.stats-chart-footer [hidden]{display:none}
.stats-ranking{margin-top:30px}
.stats-rank-list{border-top:1px solid var(--line)}
.stats-rank-row{display:grid;grid-template-columns:32px minmax(140px,1fr) minmax(180px,1.4fr) auto;align-items:center;gap:16px;padding:17px 8px;border-bottom:1px solid var(--line)}
.stats-rank-number{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.stats-rank-player{display:flex;gap:12px;align-items:center;text-align:left;min-width:0;padding:4px;border-radius:6px;font-size:13px}
.stats-rank-player:hover{background:var(--soft)}
.stats-rank-player .avatar{width:30px;height:30px;font-size:12px;flex-shrink:0}
.stats-person-arrow{color:var(--muted);margin-left:auto}
.stats-rank-value{display:flex;align-items:center;gap:16px;justify-content:flex-end;font-variant-numeric:tabular-nums;font-size:13px}
.stats-rank-value strong{font-weight:600;white-space:nowrap}
.stats-rank-track{height:5px;background:var(--soft);border-radius:8px;width:120px;overflow:hidden}
.stats-rank-track i{display:block;height:100%;background:var(--green);border-radius:8px}
.stats-items .stats-section-heading{margin-bottom:24px}
.stats-item-filters{padding:0 0 20px;border-bottom:1px solid var(--line)}
.stats-item-filters .tabs{flex-wrap:wrap;gap:8px}
.stats-item-search{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}
.stats-item-search input{width:280px;max-width:100%;font-size:12px}
.stats-item-search select{font-size:12px}
.stats-item-search #items-count{margin-left:auto;font-size:11px;color:var(--muted)}
.stats-items .small-note{margin-top:20px}
.stats-heat{padding:0 0 26px;border-bottom:1px solid var(--line)}
.stats-heat>.small-note{margin-top:-8px;margin-bottom:20px}
.stats-heat-scroll{overflow-x:auto;padding-bottom:8px}
.stats-heat-scroll .heatmap{min-width:540px}
.stats-heat .heat-cell{height:22px}
.stats-heat .heat-cell,.stats-heat .heat-caption i{filter:none}
.stats-exploration{display:grid;grid-template-columns:1fr 1fr;gap:36px;padding-top:26px}
.stats-exploration>section{min-width:0}
.stats-exploration .movement-list{grid-template-columns:1fr;gap:18px}
.stats-exploration .small-note{margin-top:22px}
.stats-dimensions .donut{width:150px;height:150px;margin:0 auto 18px;display:block}
.stats-page .table-wrap{padding-right:12px}
@media(max-width:1150px){.stats-activity-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stats-activity{gap:10px;padding:14px}.stats-activity strong{font-size:25px}.stats-chart-controls{gap:6px}.stats-section-heading{flex-wrap:wrap}.filters:is([data-mode=stats],[data-mode=records]) #filter-form{grid-template-columns:1fr 1fr 1fr}.filters:is([data-mode=stats],[data-mode=records]) #filter-form .range-start{grid-column:1;grid-row:2}.filters:is([data-mode=stats],[data-mode=records]) #filter-form .range-end{grid-column:2;grid-row:2}.filters:is([data-mode=stats],[data-mode=records]) #filter-form .primary{grid-column:3;grid-row:2}.filters:is([data-mode=stats],[data-mode=records]) #filter-form .dimension-filter{grid-column:2/4}.stats-rank-track{width:100px}}
@media(max-width:650px){.stats-scope{align-items:flex-start;gap:12px}.stats-scope h2{font-size:22px}.stats-scope-actions{flex-wrap:wrap;justify-content:flex-end}.stats-scope-actions .page-button{font-size:11px;padding:8px 10px}.stats-context{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.stats-context dd{font-size:20px}.stats-tabs{gap:20px}.stats-tabs button{font-size:13px}.stats-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-chart-section{padding:18px 14px}.stats-chart-controls{width:100%;gap:8px}.stats-chart-controls select{min-width:0;flex:1}.stats-chart-controls .segmented{width:100%;margin-top:4px}.stats-chart-controls .segmented button{flex:1}.stats-chart-section .chart-scroll{overflow-x:auto}.stats-rank-row{grid-template-columns:22px minmax(100px,1fr) minmax(100px,1fr);gap:8px;padding:14px 0}.stats-rank-player{font-size:12px;gap:7px}.stats-rank-player .avatar{display:none}.stats-rank-track{width:70px}.stats-rank-value{flex-direction:column;align-items:flex-end;gap:8px;font-size:12px}.stats-rank-row .pa-admin-only{grid-column:2/4;justify-self:end}.stats-exploration{grid-template-columns:1fr;gap:28px}.stats-exploration>section+section{padding-top:24px;border-top:1px solid var(--line)}.stats-item-search input{flex:1;min-width:140px;width:auto}.stats-item-search #items-count{width:100%;margin:0}.stats-item-filters .tabs button{padding:8px 10px}.filters:is([data-mode=stats],[data-mode=records]) #filter-form{grid-template-columns:1fr 1fr}.filters:is([data-mode=stats],[data-mode=records]) #filter-form .dimension-filter{grid-column:2}.filters:is([data-mode=stats],[data-mode=records]) #filter-form .primary{grid-column:1/-1;grid-row:3}.filters:is([data-mode=stats],[data-mode=records]) .presets{gap:6px;flex-wrap:wrap}.filters:is([data-mode=stats],[data-mode=records]) .presets button{font-size:11px;padding:8px 10px}}
.chat-page{padding:24px 0 12px;min-width:0}
.chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:42px;margin-bottom:18px}
.chat-live{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.chat-live i{width:7px;height:7px;border-radius:50%;background:var(--state-offline)}
.chat-live.chat-connected i{background:var(--state-online)}
.chat-announce-button{display:flex;align-items:center;gap:9px;padding:10px 16px}
.chat-announce-button svg{width:17px;height:17px}
.chat-feed-wrap{position:relative;border:1px solid var(--line);border-radius:12px;background:var(--paper);overflow:hidden}
.chat-feed-stage{position:relative;min-width:0}
.chat-page .chat-feed{height:clamp(420px,calc(100dvh - 220px),800px);padding:14px 18px 28px;scrollbar-gutter:stable both-edges;overflow:auto}
.chat-day{display:flex;align-items:center;gap:18px;margin:24px 6px 20px;color:var(--muted);font-size:12px;line-height:1.5}
.chat-day:first-child{margin-top:8px}
.chat-day::before,.chat-day::after{content:'';height:1px;flex:1;background:var(--line)}
.chat-page .chat-message{display:flex;gap:14px;padding:13px 14px;border:0;border-radius:8px;margin:0}
.chat-page .chat-message+.chat-message{margin-top:8px}
.chat-page .chat-avatar{position:relative;overflow:hidden;width:36px;height:36px;flex:0 0 36px;border-radius:6px;background:var(--soft);color:var(--green);font-size:14px}
.chat-page .chat-avatar svg{width:21px;height:21px}
.chat-page .chat-avatar img{position:absolute;width:288px;max-width:none;height:auto;top:-36px;left:-36px;image-rendering:pixelated}
.chat-page .chat-avatar .chat-skin-hat{left:-180px}
.chat-page .skin-unavailable img{display:none}
.chat-page .chat-message-body{min-width:0;flex:1}
.chat-page .chat-message header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:19px}
.chat-page .chat-message header strong{font-size:13px;line-height:1.5;font-weight:650;overflow-wrap:anywhere}
.chat-page .chat-message time{margin-left:auto;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;flex-basis:auto}
.chat-page .chat-message p{margin-top:6px;font-size:14px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}
.chat-page .chat-announcement{background:color-mix(in srgb,var(--state-partial) 9%,var(--paper));margin-block:14px}
.chat-page .chat-announcement .chat-avatar{background:transparent;color:var(--orange)}
.chat-notice-label{font-size:11px;color:var(--orange);font-weight:600}
.chat-empty{text-align:center;color:var(--muted);padding:80px 12px;font-size:14px}
.chat-jump{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);padding:10px 18px;border:1px solid var(--line);border-radius:24px;background:var(--paper);color:var(--ink);box-shadow:0 4px 18px #0002;font-size:12px;white-space:nowrap;z-index:2}
.chat-compose{padding:16px 22px;border-top:1px solid var(--line);background:var(--paper)}
.chat-compose[hidden]{display:none}
.chat-compose-row{display:flex;align-items:flex-end;gap:12px}
.chat-input-wrap{position:relative;flex:1;min-width:0}
.chat-compose #chat-message{display:block;width:100%;min-width:0;height:46px;resize:none;padding:11px 92px 11px 13px;margin:0;font:inherit;font-size:14px;line-height:1.6;border:1px solid var(--control-border);border-radius:8px;background:var(--bg);color:var(--ink);outline-offset:3px;scrollbar-width:thin}
.chat-compose #chat-message:focus-visible{outline:2px solid var(--focus)}
.chat-compose #chat-message::placeholder{color:var(--muted)}
.chat-compose #chat-send{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 16px;white-space:nowrap;flex-shrink:0}
.chat-compose #chat-send svg{width:18px;height:18px}
#chat-count{position:absolute;right:24px;top:50%;transform:translateY(-50%);font-size:11px;line-height:1.6;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums;pointer-events:none}
#chat-send-result{margin:10px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
#chat-send-result:empty{display:none}
#chat-send-result.send-error,.chat-compose #chat-count.over-limit{color:var(--state-offline,#b94e4e)}
.chat-feed-wrap:has(.chat-compose:not([hidden])) .chat-feed{height:clamp(340px,calc(100dvh - 315px),705px)}
@media(max-width:700px){
 .chat-compose{padding:14px 16px}.chat-compose-row{gap:9px}
 .chat-compose #chat-send{padding:10px 13px}.chat-compose #chat-send span{display:none}
 .chat-feed-wrap:has(.chat-compose:not([hidden])) .chat-feed{height:clamp(300px,55dvh,600px)}
}
html:has(dialog.announcement-dialog[open]){overflow:hidden;scrollbar-gutter:stable}
dialog.announcement-dialog{width:min(580px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);overflow:hidden}
dialog.announcement-dialog[open]{display:flex;flex-direction:column}
dialog.announcement-dialog::backdrop{background:#08120db3;backdrop-filter:blur(3px)}
.announcement-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line);flex-shrink:0}
.announcement-dialog>header h2{font-size:19px;line-height:1.5}
.announcement-dialog .icon-button{display:grid;place-items:center;font-size:22px;width:36px;height:36px}
.announcement-dialog #announcement-form{display:flex;flex-direction:column;min-height:0}
.announcement-scroll{overflow:auto;min-height:0;padding:22px 18px 24px;scrollbar-gutter:stable both-edges;scrollbar-width:thin;overscroll-behavior:contain}
.announcement-dialog #announcement-form label{font-size:13px;margin:0 0 9px;line-height:1.6}
.announcement-dialog #announcement-message{min-height:90px;resize:vertical;font-size:14px;border-color:var(--control-border)}
.announcement-dialog .announcement-count{font-size:12px;margin-top:8px}
.announcement-options{display:flex;align-items:flex-end;gap:24px;margin-top:22px}
.announcement-options>label{width:130px;flex-shrink:0}
.announcement-options select{display:block;margin-top:8px}
.announcement-dialog #announcement-recipient{color:var(--muted);font-size:12px;line-height:1.8;margin:0 0 18px}
.announcement-dialog .announcement-preview{padding:20px;margin:14px 0 14px;min-height:156px;border-radius:9px}
.announcement-dialog .announcement-preview>span{font-size:11px;margin-bottom:18px}
.announcement-dialog .announcement-preview strong{font-size:23px}
.announcement-dialog .announcement-preview p{font-size:14px;margin-bottom:0}
.announcement-note{font-size:12px;line-height:1.8;color:var(--muted)}
.announcement-dialog footer{display:block;margin:0;padding:16px 24px;border-top:1px solid var(--line);flex-shrink:0}
.announcement-dialog #announcement-result{min-height:0;font-size:13px;line-height:1.7;color:var(--green);margin:0 0 14px}
.announcement-dialog #announcement-result:empty{display:none}
.announcement-buttons{display:flex;justify-content:flex-end;gap:10px}
.announcement-buttons>button{min-height:42px;padding:10px 20px}
.announcement-dialog #announcement-send{width:auto;padding:10px 20px}
@media(max-width:700px){
 .chat-page{padding-top:18px}.chat-toolbar{margin-bottom:14px}
 .chat-page .chat-feed{padding:12px 6px 24px;height:clamp(420px,65dvh,700px)}
 .chat-page .chat-message{gap:10px;padding:12px 10px}
 .chat-page .chat-message p{font-size:13px}.chat-page .chat-message header{gap:4px 8px}
 .chat-page .chat-message time{font-size:10px}.chat-day{gap:12px;font-size:11px}
 .announcement-dialog>header{padding:16px 18px}.announcement-scroll{padding:20px 12px}
 .announcement-dialog footer{padding:14px 18px}.announcement-options{gap:16px}
 .announcement-options>label{width:110px}.announcement-dialog .announcement-preview{padding:18px 14px}
}

/* Quest book: selection and progress first, then chapters and objectives. */
.quest-book{max-width:1320px;margin:0 auto;padding:24px 0 36px}
.quest-book .journal-overview{display:flex;align-items:center;justify-content:space-between;gap:28px;padding-bottom:24px}
.journal-player{display:grid;gap:8px;font-size:12px;color:var(--muted);width:280px;max-width:100%}
.journal-player select{width:100%;min-height:42px;font-size:14px}
.quest-book .journal-progress{width:340px;max-width:100%;flex-shrink:1}
.quest-book .journal-progress>div{gap:8px}
.quest-book .journal-progress .journal-progress-label{margin-right:auto;color:var(--muted)}
.quest-book .journal-progress strong{font-size:25px;font-weight:650;color:var(--ink)}
.quest-book .journal-progress em{font-size:13px;margin-left:12px}
.quest-book .journal-track{height:5px;margin:9px 0 0}
.quest-book .journal-progress small{display:block;margin-top:8px}
.quest-book .journal-toolbar{padding:0 0 20px;margin-bottom:24px;border-bottom:1px solid var(--line);gap:14px}
.quest-book .journal-filter-tabs{gap:6px 14px;min-width:0}
.quest-book .journal-filter-tabs button{font-size:13px;min-height:40px;padding:8px 4px;border:0;border-radius:0;white-space:nowrap}
.quest-book .journal-filter-tabs button.active{text-decoration:none;border-bottom:2px solid var(--green)}
.quest-book .journal-filter-tabs button span{font-size:12px;margin-left:6px}
.quest-book .journal-search{width:260px;max-width:100%;padding:0 12px;min-height:42px;gap:9px;background:var(--paper)}
.quest-book .journal-search svg{width:18px;height:18px;flex:none;color:var(--muted)}
.quest-book .journal-search input{font-size:13px;padding:10px 0;outline-offset:2px}
.quest-book .journal-layout{grid-template-columns:242px minmax(0,1fr);gap:26px}
.quest-book .journal-chapters{padding:0 18px 0 0;border-right:1px solid var(--line);position:sticky;top:20px}
.quest-book .journal-chapter-heading{display:block;padding:0 0 14px}
.quest-book .journal-chapter-heading h3{font-size:14px;margin:0 0 12px}
.quest-book .journal-chapter-heading select{width:100%;font-size:13px;padding-right:36px;min-height:40px}
.quest-book #chapter-list{max-height:min(640px,calc(100dvh - 180px));overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:10px;display:block}
.quest-book .journal-chapter{font-size:12px;padding:10px 9px;gap:9px;margin:0 0 5px;min-height:46px}
.quest-book .journal-chapter small{font-size:11px;font-variant-numeric:tabular-nums;padding-left:3px}
.quest-book .chapter-symbol{width:24px;height:24px;flex:none}
.quest-book .chapter-symbol svg{width:23px;height:23px}
.quest-book .chapter-group-label{padding:17px 9px 9px;line-height:1.5}
.quest-book .journal-chapters .hidden-quest-toggle{margin-top:16px;padding:14px 4px 0;font-size:11px}
.quest-book .journal-selection{padding:0 0 18px;margin:0 0 22px;gap:12px}
.quest-book .journal-selection>div{min-width:0}
.quest-book .journal-selection h2{font-size:19px;line-height:1.5}
.quest-book .journal-selection>span{font-size:12px}
.quest-book .journal-selection p{font-size:12px;margin-top:5px;overflow-wrap:anywhere}
.quest-book .quest-section{margin-bottom:32px}
.quest-book .quest-section-heading{margin-bottom:14px}
.quest-book .quest-section-heading h3{font-size:14px;scroll-margin-top:22px;line-height:1.5}
.quest-book .quest-section-heading h3>span:last-child{font-size:12px}
.quest-book .journal-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.quest-book .journal-card{padding:18px;gap:12px;border:1px solid var(--line);border-radius:10px;background:var(--paper);box-shadow:none}
.quest-book .journal-card:hover{background:var(--surface-alt);transform:none}
.quest-book .journal-card-top{gap:10px;align-items:flex-start}
.quest-book .journal-card-top .item-tile{width:42px;height:42px;flex:none}
.quest-book .journal-card h3{font-size:14px;line-height:1.55}
.quest-book .journal-card-top small{font-size:11px;line-height:1.5;margin-bottom:4px}
.quest-book .card-task-preview{flex-wrap:wrap;gap:7px 12px;margin-top:0;overflow:visible}
.quest-book .card-task-preview>span{max-width:100%}
.quest-book .card-task-preview>span>span{display:block;font-size:11px}
.quest-book .card-goal{font-size:11px;line-height:1.6;flex-wrap:wrap}
.quest-book .card-subtitle{font-size:12px;line-height:1.7}
.quest-book .journal-pagination{gap:14px;flex-wrap:wrap;margin-top:16px;font-size:12px}
.quest-book .journal-pagination>div{display:flex;gap:8px}
.quest-book .journal-pagination button{margin:0;min-height:36px;padding:7px 12px;font-size:12px}
.quest-book .journal-empty{padding:28px 0;font-size:13px}
.quest-detail .quest-modal-title{margin:8px 0 18px}
.quest-detail .quest-breadcrumb{padding-right:48px}
@media(min-width:1550px){.quest-book .journal-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.quest-book .journal-layout{grid-template-columns:210px minmax(0,1fr);gap:20px}.quest-book .journal-card{padding:15px}.quest-book .journal-filter-tabs{gap:6px 10px}.quest-book .journal-search{width:230px}}
@media(max-width:760px){
 .quest-book .journal-layout{grid-template-columns:1fr;gap:22px}
 .quest-book .journal-chapters{position:static;padding:0 0 20px;border-right:0;border-bottom:1px solid var(--line)}
 .quest-book .journal-chapter-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
 .quest-book .journal-chapter-heading h3{margin:0}
 .quest-book .journal-chapter-heading select{width:200px;max-width:70%}
 .quest-book #chapter-list{max-height:210px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px}
 .quest-book .journal-chapter{margin:0}
 .quest-book .chapter-group-label{grid-column:1/-1}
 .quest-book .journal-chapters .hidden-quest-toggle{margin:12px 0 0;border-top:0;padding-top:0}
 .quest-book .journal-toolbar{gap:12px}
 .quest-book .journal-search{width:100%}
}
@media(max-width:520px){
 .quest-book{padding-top:20px}
 .quest-book .journal-overview{flex-wrap:wrap;gap:18px;padding-bottom:20px}
 .journal-player,.quest-book .journal-progress{width:100%}
 .quest-book .journal-filter-tabs{width:100%;justify-content:space-between;gap:6px}
 .quest-book .journal-filter-tabs button{font-size:12px;padding:7px 0}
 .quest-book .journal-filter-tabs button span{font-size:11px;margin-left:4px}
 .quest-book .journal-cards{grid-template-columns:1fr}
 .quest-book .journal-card{padding:16px}
 .quest-book .journal-chapter{padding:9px 6px;gap:6px;font-size:11px}
 .quest-book .journal-chapter small{font-size:10px}
 .quest-book .journal-selection h2{font-size:18px}
}

/* Activity history: date groups and readable rows, with compact controls. */
.records-page{max-width:1320px;margin:0 auto;padding-bottom:30px}
.records-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);margin-bottom:20px}
.records-tabs{display:flex;align-items:stretch;gap:28px}
.records-tabs button{min-height:46px;padding:10px 0 15px;font-size:14px;border-bottom:2px solid transparent;color:var(--muted)}
.records-tabs button[aria-selected=true]{border-bottom-color:var(--green);color:var(--ink);font-weight:650}
.records-heading #record-export{font-size:12px;white-space:nowrap;padding:10px 0 15px}
.records-page .record-controls{display:flex;align-items:flex-end;gap:14px;margin:0 0 16px;flex-wrap:wrap}
.records-page .record-controls label{display:grid;gap:7px;font-size:12px;color:var(--muted);min-width:0}
.records-page #record-kind{width:210px;max-width:100%;min-height:40px;font-size:13px}
.records-page .record-search-label{width:300px;max-width:100%}
.records-page #record-search{width:100%;min-height:40px;font-size:13px}
#records-count{margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap;padding:10px 0 0}
#records-data{scroll-margin-top:20px;outline-offset:5px;transition:opacity .1s}
#records-data[aria-busy=true]{opacity:.55}
.records-table-wrap{border:1px solid var(--line);border-radius:11px;background:var(--paper);overflow:hidden}
.records-table{width:100%;table-layout:fixed;border-collapse:collapse;white-space:normal;font-size:13px}
.records-table thead th{font-size:11px;font-weight:500;color:var(--muted);padding:13px 16px;background:var(--paper);line-height:1.6}
.records-table .record-day th{padding:13px 16px;font-size:12px;font-weight:600;line-height:1.6;background:var(--surface-alt);color:var(--ink);border-top:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left}
.records-table td{padding:16px;border-bottom:1px solid var(--line);line-height:1.65;vertical-align:middle;overflow-wrap:anywhere}
.records-table .record-entry:last-child td{border-bottom:0}
.records-table .record-entry:hover td{background:var(--soft)}
.records-table .record-clock{font-size:12px;white-space:nowrap;color:var(--muted)}
.records-table time{font-variant-numeric:tabular-nums}
.records-table time>small{display:block;font-size:11px;color:var(--muted)}
.records-table .record-duration,.records-table .record-amount{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.record-person{display:inline-flex;align-items:center;gap:9px;text-align:left;max-width:100%;padding:3px 0;font-size:13px;font-weight:600;line-height:1.5}
.record-person>span:last-child{overflow-wrap:anywhere;min-width:0}
.record-person:hover>span:last-child{text-decoration:underline;text-underline-offset:4px}
.record-avatar{display:grid;place-items:center;position:relative;overflow:hidden;flex:0 0 26px;width:26px;height:26px;border-radius:5px;background:var(--soft);color:var(--green);font-size:11px}
.record-avatar img{position:absolute;width:208px;max-width:none;height:auto;left:-26px;top:-26px;image-rendering:pixelated}
.record-avatar img.record-skin-hat{left:-130px}
.record-avatar.skin-unavailable img{display:none}
.record-state{font-size:11px;line-height:1.6;color:var(--muted)}
.record-state.live{display:inline-flex;align-items:center;gap:7px;color:var(--green);font-weight:600}
.record-state.live::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--state-online)}
.record-state.uncertain{color:var(--orange)}
.record-last-seen>small{display:block;color:var(--muted);font-size:10px}
.record-sessions thead th:nth-child(1){width:24%}
.record-sessions thead th:nth-child(2),.record-sessions thead th:nth-child(3){width:20%}
.record-sessions thead th:nth-child(4){width:17%}
.record-sessions thead th:nth-child(5){width:19%}
.record-events thead th:nth-child(1){width:13%}
.record-events thead th:nth-child(2){width:18%}
.record-events thead th:nth-child(3){width:14%}
.record-events thead th:nth-child(4){width:29%}
.record-events thead th:nth-child(5){width:12%}
.record-events thead th:nth-child(6){width:14%}
.record-events .record-action strong{font-size:12px;font-weight:600}
.record-events .record-action small{display:block;font-size:11px;color:var(--muted)}
.record-events .record-target>span{font-size:13px}
.record-events .record-target>small{display:block;font-size:11px;color:var(--muted);line-height:1.6;margin-top:3px;overflow-wrap:anywhere}
.record-events .record-dimension{font-size:12px;color:var(--muted)}
.records-page .pagination{padding:18px 0 0}
.records-empty{padding:44px 16px;text-align:center;font-size:13px;line-height:1.8;color:var(--muted)}
@media(max-width:1150px){.records-table td,.records-table thead th{padding:13px 12px}.record-avatar{display:none}.record-person{font-size:12px}.record-events .record-target>span{font-size:12px}}
@media(max-width:700px){
 .records-tabs{gap:22px}
 .records-tabs button{font-size:13px}
 .records-heading{gap:12px;margin-bottom:16px}
 .records-heading #record-export{font-size:11px}
 .records-page .record-controls{gap:12px}
 .records-page .record-controls label{flex:1;min-width:130px}
 .records-page .record-search-label{width:auto}
 .records-page #record-kind{width:100%}
 #records-count{flex-basis:100%;padding-top:0;text-align:right}
 .records-table-wrap{border:0;border-radius:0;background:transparent;overflow:visible}
 .records-table,.records-table tbody{display:block}
 .records-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .records-table .record-day{display:block}
 .records-table .record-day th{display:block;border:0;border-bottom:1px solid var(--line);padding:13px 0;background:transparent;font-size:13px}
 .records-table .record-entry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;padding:18px 0;border-bottom:1px solid var(--line)}
 .records-table .record-entry td{display:block;padding:0;border:0;font-size:12px;text-align:left;white-space:normal;min-width:0}
 .records-table .record-entry:hover td{background:transparent}
 .records-table .record-entry td::before{content:attr(data-label);display:block;color:var(--muted);font-size:10px;font-weight:400;margin-bottom:5px}
 .records-table .record-player-cell{grid-column:1/-1}
 .records-table .record-player-cell::before{display:none!important}
 .record-avatar{display:grid}
 .record-person{font-size:13px}
 .record-events .record-clock{grid-column:2;grid-row:1;text-align:right!important}
 .record-events .record-clock::before{display:none!important}
 .record-events .record-player-cell{grid-column:1;grid-row:1}
 .record-events .record-action{grid-column:1;grid-row:2}
 .record-events .record-dimension{grid-column:2;grid-row:2}
 .record-events .record-target{grid-column:1;grid-row:3}
 .record-events .record-amount{grid-column:2;grid-row:3}
 .record-events .record-target>span{font-size:13px}
 .record-events .record-target>small{font-size:10px}
}
