.rift-icon{display:inline-block;width:32px;height:32px;object-fit:contain;vertical-align:middle;flex:none}.rift-entry{display:inline-flex;align-items:center;gap:4px;padding:2px 8px!important;border-color:#9d5b43!important;color:#edb18d!important;white-space:nowrap}.rift-entry .rift-icon{width:25px;height:25px}.rift-hunt-header{padding:10px 12px;background:linear-gradient(110deg,#38211e,#1c241b);border-block:1px solid #88503e}.rift-hunt-header[hidden],.rift-result[hidden],.rift-entry[hidden]{display:none}.rift-hunt-header>div{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:3px 0}.rift-hunt-header strong{display:flex;align-items:center;gap:5px;color:#e7b69b}.rift-hunt-header span{font-size:12px;overflow-wrap:anywhere}.rift-hunt-header small{color:#bdba9e}.rift-hunt-header button{padding:4px 9px;min-height:30px;white-space:nowrap}.in-rift .location-select{border-color:#83503f}.rift-result{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 10px;padding:12px;border:1px solid #a88557;background:#28281c}.rift-result p{margin:4px 0}.rift-result small{color:#b6bda7}.rift-result button{white-space:nowrap}#rift-dialog{width:min(880px,calc(100vw - 24px));max-height:88dvh;padding:0;border:1px solid #ae8157;background:#172019;color:#d3d5c6;border-radius:8px;overflow:hidden}#rift-dialog::backdrop{background:#000a}#rift-dialog>header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid #76533d}#rift-dialog h2{font-size:19px;margin:0}#rift-dialog header button{font-size:22px;min-width:40px;min-height:40px}.rift-dialog-body{padding:16px;max-height:calc(88dvh - 70px);overflow:auto}.rift-warning{margin:0 0 12px;color:#e4a88b;font-size:13px;line-height:1.6}.rift-rooms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rift-rooms article{border:1px solid #735d43;background:#23271d;padding:13px;border-radius:6px}.rift-room-heading{display:flex;align-items:center;gap:9px}.rift-room-heading .rift-icon{width:56px;height:56px}.rift-room-heading h3{margin:0 0 4px;font-size:17px}.rift-room-heading small,.rift-room-ruler small{color:#aeb69b}.rift-rooms article>p{font-size:12px;line-height:1.7;margin:12px 0}.rift-room-ruler{font-size:12px;line-height:1.8;min-height:44px}.rift-room-footer{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-top:12px}.rift-consent{display:flex;align-items:center;gap:9px;margin-top:16px;font-size:13px;line-height:1.5}.rift-consent input{width:18px;height:18px;flex:none}.rift-entry-rules{margin-top:14px;font-size:12px;line-height:1.7;color:#b4b9a4}.rift-entry-rules summary{cursor:pointer;min-height:32px}.rift-target-list{display:grid;gap:8px}.rift-target-list article{display:grid;grid-template-columns:48px minmax(0,1fr) 66px;gap:10px;align-items:center;padding:10px;border:1px solid #46503b;background:#20291e}.rift-target-list .rift-ruler-target{border-color:#b69257;background:#302b1c}.rift-target-list .pk-current-portrait{width:48px;height:60px}.rift-target-list article b{display:block;overflow-wrap:anywhere}.rift-target-list article small{display:block;color:#b0b79e;font-size:11px;margin-top:4px}.rift-target-list article button{min-height:40px}#rift-dialog.rift-target-dialog{position:fixed;inset:20px 16px auto auto;margin:0;width:420px;max-width:calc(100vw - 24px)}@media(max-width:700px), (max-width:1000px) and (pointer:coarse){.rift-rooms{grid-template-columns:1fr}.rift-rooms article{padding:12px;display:grid;grid-template-columns:1fr 1fr;column-gap:10px}.rift-room-heading{grid-column:1/-1}.rift-room-ruler{grid-column:1}.rift-room-footer{grid-column:2;grid-row:2/4;flex-direction:column;justify-content:center;align-items:stretch;margin:0}.rift-rooms article>p{grid-column:1;margin:8px 0}.rift-dialog-body{padding:12px}.rift-hunt-header{padding:7px 9px}.rift-hunt-header .rift-icon{width:25px;height:25px}.rift-hunt-header strong{font-size:14px}.rift-hunt-header small{font-size:11px}.rift-hunt-header button{min-height:36px}.rift-result{margin:6px 0;padding:10px;font-size:13px}#rift-dialog.rift-target-dialog{inset:auto 0 0 0;width:100%;max-width:100%;max-height:80dvh;border-radius:14px 14px 0 0}.rift-target-dialog .rift-dialog-body{max-height:calc(80dvh - 70px)}}

.pvp-history-mode-filter{display:flex;gap:6px;margin:8px 0}.pvp-history-mode-filter button[aria-pressed=true]{border-color:#bb975a;background:#363a26}

.rift-target-list .pk-current-portrait{display:grid;place-items:center;position:relative}.rift-target-list .character-portrait-art,.rift-target-list .character-portrait-base{display:block;width:100%;height:100%}
:root.mobile-workspace .hunt-panel>.rift-hunt-header,:root.mobile-workspace .hunt-panel>.rift-result{order:1!important}
@media(max-width:700px),(max-width:1000px) and (pointer:coarse){
 .rift-rooms{gap:8px}.rift-rooms article{grid-template-columns:minmax(0,1fr) 90px;gap:4px 8px;padding:10px}.rift-room-heading{grid-column:1;grid-row:1;gap:6px}.rift-room-heading .rift-icon{width:38px;height:38px}.rift-room-heading h3{font-size:15px}.rift-rooms article>p{grid-column:1;grid-row:2;margin:2px 0;font-size:11px;line-height:1.4}.rift-room-ruler{grid-column:1;grid-row:3;min-height:0;font-size:11px}.rift-room-footer{grid-column:2;grid-row:1/4;font-size:11px}.rift-room-footer button{padding:8px 5px}.rift-consent{font-size:12px;margin-top:10px}.rift-warning{font-size:12px}
}
@media(max-width:1000px) and (max-height:560px) and (pointer:coarse){
 :root.mobile-workspace .hunt-panel.in-rift{grid-template-rows:44px auto minmax(160px,calc(100dvh - 230px))!important}
 :root.mobile-workspace .hunt-panel.in-rift>.rift-hunt-header{grid-column:1/-1;grid-row:2}
 :root.mobile-workspace .hunt-panel.in-rift>.hunt-scene,:root.mobile-workspace .hunt-panel.in-rift>.encounter,:root.mobile-workspace .hunt-panel.in-rift>.mobile-hunt-side{grid-row:3!important}
 :root.mobile-workspace .hunt-panel.in-rift:has(>.rift-result:not([hidden])){grid-template-rows:44px auto auto minmax(160px,calc(100dvh - 260px))!important}
 :root.mobile-workspace .hunt-panel.in-rift>.rift-result{grid-column:1/-1;grid-row:3}
 :root.mobile-workspace .hunt-panel.in-rift:has(>.rift-result:not([hidden]))>.hunt-scene,:root.mobile-workspace .hunt-panel.in-rift:has(>.rift-result:not([hidden]))>.encounter,:root.mobile-workspace .hunt-panel.in-rift:has(>.rift-result:not([hidden]))>.mobile-hunt-side{grid-row:4!important}
}

.rift-hunt-header .rift-overview{gap:8px;flex-wrap:wrap}.rift-overview>small{text-align:right;margin-left:auto}.rift-hunt-header .rift-leader-line{align-items:baseline;flex-wrap:wrap;gap:3px 14px;margin:7px 0 9px}.rift-earned{margin-left:auto;text-align:right}.rift-earned b{color:#ead6a5;font-variant-numeric:tabular-nums}.rift-earned small{font-size:11px;margin-right:4px}.rift-hunt-header .rift-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%;max-width:460px;margin-left:auto}.rift-hunt-header .rift-actions button{width:100%;min-width:0;min-height:36px;margin:0;padding:5px 6px;font-size:12px;border-radius:4px}.rift-actions .rift-challenge:not(:disabled){background:#58362b;border-color:#ba7857;color:#ffe0c0}.rift-actions .rift-leave{background:#1b241c;color:#b6bcaa}.rift-actions button:focus-visible{outline:2px solid #e6c081;outline-offset:2px}
@media(max-width:700px),(max-width:1000px) and (pointer:coarse){.rift-hunt-header .rift-actions{max-width:none;gap:5px}.rift-hunt-header .rift-actions button{min-height:40px}.rift-hunt-header .rift-leader-line{margin:5px 0 8px}.rift-earned{font-size:12px}.rift-overview>small{font-size:10px}}

.rift-rulebook{font-size:13px;line-height:1.65}.rift-rule-summary{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px;color:#e6bf94}.rift-rule-summary strong{font-size:16px}.rift-rule-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}.rift-rule-cards article,.rift-rule-gold{border:1px solid #67533d;background:#23271e;border-radius:6px;padding:14px}.rift-rule-cards article:last-child{border-color:#a97b4e}.rift-rulebook h3{margin:0 0 6px;font-size:14px;color:#dec59c}.rift-rule-cards b{color:#e9aa91;font-size:16px}.rift-rulebook p{margin:7px 0}.rift-rule-gold{margin-top:12px}.rift-rule-example{padding:9px 12px;background:#161e18;border-left:2px solid #b08b52;margin:10px 0;font-variant-numeric:tabular-nums}.rift-rule-gold small,.rift-rule-footnote{color:#aab29e;font-size:12px}.rift-rulebook dl{margin:14px 0}.rift-rulebook dl>div{display:grid;grid-template-columns:108px minmax(0,1fr);gap:8px;padding:9px 0;border-bottom:1px solid #354031}.rift-rulebook dt{color:#cfbb91;font-weight:600}.rift-rulebook dd{margin:0}.rift-rule-footnote{padding-top:4px}
@media(max-width:600px){.rift-rule-cards{grid-template-columns:1fr}.rift-rulebook dl>div{grid-template-columns:83px minmax(0,1fr)}.rift-rule-cards article,.rift-rule-gold{padding:11px}.rift-rule-summary{gap:4px}.rift-rule-summary span{font-size:12px}}

.rift-reign{display:inline-block;font-size:11px;color:#c8b48a;white-space:nowrap;font-variant-numeric:tabular-nums;margin-left:5px}.rift-target-list .rift-reign{margin-left:0;margin-top:4px}

/* Keep both columns at two fixed rows: elapsed digits and gold never reflow the HUD. */
.rift-hunt-header .rift-leader-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:8px}
.rift-leader-summary,.rift-hunt-header .rift-earned{display:grid;grid-template-rows:18px 18px;min-width:0;margin:0;line-height:18px}
.rift-hunt-header .rift-earned{justify-items:end}.rift-leader-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rift-leader-summary .rift-reign{display:block;margin:0;line-height:18px}
.rift-hunt-header .rift-earned small{white-space:nowrap;margin:0;font-size:11px;line-height:18px}.rift-hunt-header .rift-earned b{white-space:nowrap;font-size:12px;line-height:18px}

.rift-loss-preview{margin:12px 0;padding:11px 12px;border:1px solid #846846;border-radius:6px;background:#2b271e}.rift-loss-preview>div{display:flex;justify-content:space-between;align-items:baseline;gap:4px 12px;flex-wrap:wrap}.rift-loss-preview strong{color:#ead0a2;white-space:nowrap;font-variant-numeric:tabular-nums}.rift-loss-preview>small{display:block;margin-top:3px;color:#bdb6a1}.rift-loss-preview details{margin-top:8px;padding-top:8px}.rift-loss-preview summary{color:#d0c4ad}.rift-loss-preview dl{margin:10px 0}.rift-loss-preview dl>div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:3px 10px;margin:5px 0}.rift-loss-preview dd{margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}.rift-loss-preview p{font-size:12px;word-break:keep-all;margin-top:7px}

.rift-hunt-header .rift-auto-toggle{margin-left:auto;font-size:11px;min-height:30px;padding:3px 7px}.rift-auto-toggle[aria-pressed=true]{border-color:#b49c63;color:#ead497;background:#353725}.rift-overview:has(.rift-auto-toggle)>small{flex-basis:100%;text-align:left;margin:0}
.rift-result.rift-auto-waiting{flex-wrap:wrap}.rift-auto-wait{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-basis:100%;min-width:0;font-size:12px}.rift-auto-wait>span{min-width:0;overflow-wrap:anywhere}.rift-auto-wait>button{flex:none;font-size:11px;padding:6px;min-height:36px}.rift-result:has(>[data-rift-dismiss]) .rift-auto-wait{padding-top:8px;border-top:1px solid #665a3e}
