/* Warchest Crossroads (crossroads.html). Uses the modern layout's colours (modern.css). */
.xr { max-width: 1320px; margin: 0 auto; padding: 32px clamp(16px, 3vw, 32px) 72px !important; color: var(--text); font-family: var(--f-body); }
.xr .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xr code, .xr-dlg code { font: 500 .92em/1.4 "JetBrains Mono", ui-monospace, monospace; background: #1b1e25; border: 1px solid #2a2e37; border-radius: 6px; padding: 1px 6px; color: #f0c97a; }
.xr-head { display: flex; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.xr-head > div:first-child { flex: 1 1 480px; }
.xr-head h1 { margin: 0; font: 700 clamp(32px, 4vw, 42px)/1.08 var(--f-body) !important; letter-spacing: -.025em; color: var(--head) !important; }
.xr-head .lede { margin: 8px 0 0; color: var(--muted); font-size: 17px; max-width: 640px; }
.xr-live { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.xr-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #6f727b; }
.xr-live.on .dot { background: #6fcf97; box-shadow: 0 0 0 4px rgba(111,207,151,.15); animation: xrpulse 2.4s ease-in-out infinite; }
.xr-live.poll .dot { background: var(--gold); }
@keyframes xrpulse { 50% { box-shadow: 0 0 0 7px rgba(111,207,151,.05); } }
@media (prefers-reduced-motion: reduce) { .xr-live.on .dot { animation: none; } }

/* scope bar */
.xr-scope { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 24px; }
.xr-seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.xr-seg button { border: 0; border-radius: 7px; padding: 7px 13px; background: transparent; color: var(--muted); font: 500 13.5px/1.2 var(--f-body); cursor: pointer; }
.xr-seg button:hover { color: var(--text); }
.xr-seg button.on { background: #262a33; color: var(--head); font-weight: 600; }
.xr-seg button.on.ally { background: #1c2a3d; color: #8fc4ff; }
.xr-seg button.on.horde { background: #3a1d1d; color: #ff9a8a; }
.xr-seg.sm { display: inline-flex; align-self: flex-start; margin-right: 10px; }
.tb-signin[hidden] { display: none !important; }
.xr-region select { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 10px; font: 500 13.5px var(--f-body); }
.xr-search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 40px; color: var(--dim); }
.xr-search:focus-within { border-color: #4a4f5a; }
.xr-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: 400 14px var(--f-body); }
.xr-search.sm { flex: 1 1 200px; height: 36px; }

/* buttons */
.xr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font: 600 14px/1 var(--f-body); cursor: pointer; text-decoration: none; white-space: nowrap; }
.xr-btn:hover { border-color: #4a4f5a; color: var(--head); }
.xr-btn.gold { background: var(--gold); border-color: var(--gold); color: #1a1408; }
.xr-btn.gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: #1a1408; }
.xr-btn.ghost { background: transparent; }
.xr-btn.sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.xr-btn.block { width: 100%; height: 48px; font-size: 15px; border-radius: 12px; }
.xr-btn:disabled { background: #2a2e37 !important; border-color: #2a2e37 !important; color: var(--dim) !important; cursor: not-allowed; }
.xr-icon { width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.xr-icon:hover { color: var(--head); border-color: var(--line-2); }
.xr-link { background: none; border: 0; padding: 0; color: var(--dim); font: 500 13px var(--f-body); text-decoration: underline; cursor: pointer; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 12px; font: 500 13px/1.2 var(--f-body); cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { border-color: #6b5a35; background: #2a2214; color: #f0c97a; font-weight: 600; }
.chip button { background: none; border: 0; color: inherit; padding: 0; display: inline-grid; cursor: pointer; }

/* layout */
.xr-grid { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.xr-main { flex: 999 1 560px; min-width: 0; }
.xr-rail { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
@media (max-width: 900px) { .xr-rail { position: static; } }

/* tabs and filters */
.xr-bar { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 16px; }
.xr-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.xr-tabs button { border: 0; background: transparent; padding: 10px 14px; margin-bottom: -1px; color: var(--muted); font: 500 14.5px/1.2 var(--f-body); border-bottom: 2px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.xr-tabs button:hover { color: var(--text); }
.xr-tabs button.on { color: var(--head); font-weight: 600; border-bottom-color: var(--gold); }
.xr-tabs .n { color: var(--dim); font-weight: 500; font-size: 13px; }
.xr-tabs .nb { background: var(--gold); color: #1a1408; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.xr-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.xr-filters .lbl { font-size: 13px; color: var(--muted); }
.xr-view { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; margin-left: 4px; }
.xr-view button { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 5px 11px; font: 500 12.5px var(--f-body); cursor: pointer; }
.xr-view button.on { background: #262a33; color: var(--head); font-weight: 600; }

/* cards */
.xr-cards { display: flex; flex-direction: column; gap: 12px; }
.xr-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; transition: border-color .15s; }
.xr-card:hover { border-color: #2e323b; }
.xr-ico { width: 44px; height: 44px; flex: none; border-radius: 11px; display: grid; place-items: center; background: #16263a; color: #8fc4ff; }
.t-raid .xr-ico { background: #2e2412; color: var(--gold); }
.t-quest .xr-ico { background: #17291f; color: #6fcf97; }
.t-pvp .xr-ico { background: #2f1a1a; color: #ff9a8a; }
.t-craft .xr-ico { background: #2a1d17; color: #e89a6c; }
.t-lfg .xr-ico, .t-other .xr-ico { background: #231d33; color: #b9a6ff; }
.xr-cb { flex: 1; min-width: 0; }
.xr-ct { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.xr-ct h3 { margin: 0; font: 600 17px/1.3 var(--f-body) !important; letter-spacing: -.01em; color: var(--head) !important; }
.xr-kind { font: 700 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: #8fc4ff; }
.t-raid .xr-kind { color: var(--gold); } .t-quest .xr-kind { color: #6fcf97; } .t-pvp .xr-kind { color: #ff9a8a; } .t-craft .xr-kind { color: #e89a6c; } .t-lfg .xr-kind, .t-other .xr-kind { color: #b9a6ff; }
.xr-when { margin-left: auto; font: 600 13px var(--f-body); color: var(--muted); }
.xr-when.now { color: #6fcf97; }
.xr-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.xr-slots { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.slot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.slot.f { color: #0d0e12; }
.slot.k { background: #2a2e37; border: 1px solid #343842; width: 26px; height: 26px; }
.slot.o { width: 26px; height: 26px; color: var(--gold); border: 1.5px dashed #6b5a35; background: #1a1710; }
.xr-need { font: 600 13px var(--f-body); color: var(--gold); margin-left: 8px; }
.xr-fillbar { flex: 0 1 220px; height: 8px; border-radius: 4px; background: #2a2e37; overflow: hidden; }
.xr-fillbar span { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.xr-role { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--f-body); color: #d6d2c8; padding: 5px 11px; border-radius: 999px; background: #1b1e25; border: 1px solid #2a2e37; }
.xr-item { margin-top: 10px; font: 600 14px var(--f-body); color: #e89a6c; }
.xr-recipes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.xr-recipes span, .xr-recipes .more { font: 400 12.5px/1.3 var(--f-body); padding: 4px 10px; border-radius: 6px; background: #1b1e25; border: 1px solid #2a2e37; color: #d6d2c8; }
.xr-recipes .more { cursor: pointer; color: var(--gold); }
.xr-note { margin: 12px 0 0; font-size: 14.5px; color: #d6d2c8; }
.xr-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.xr-tags span { font-size: 12px; color: var(--muted); padding: 2px 9px; border-radius: 999px; border: 1px solid #2a2e37; }
.xr-foot { display: flex; align-items: center; gap: 8px 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #1f2229; flex-wrap: wrap; }
.xr-who { font-size: 13px; color: var(--muted); }
.xr-who b { font-weight: 600; }
.xr-ver { display: inline-flex; align-items: center; gap: 4px; font: 500 12px var(--f-body); color: #8fc4ff; margin-left: 2px; }
.xr-ago { font-size: 12px; color: var(--dim); }
.xr-acts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.xr-yours { font: 600 12px var(--f-body); color: var(--gold); }
.xr-state { font: 600 12.5px var(--f-body); }
.xr-state.wait { color: var(--gold); } .xr-state.yes { color: #6fcf97; } .xr-state.no { color: var(--dim); }
.xr-fine { font-size: 12.5px; color: var(--dim); margin: 0; }
.xr-fine.center { text-align: center; padding: 22px 0; }
.xr-main > div > .xr-fine { margin-top: 16px; text-align: center; }

/* stream */
.xr-stream { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.xr-row { display: grid; grid-template-columns: 62px auto auto 74px minmax(0, 1fr) auto auto; align-items: center; gap: 0 10px; padding: 9px 14px; border-bottom: 1px solid #1c1f26; font-size: 13.5px; }
.xr-row:last-child { border-bottom: 0; }
.xr-row:hover { background: #171a20; }
.xr-row .tm { color: var(--dim); font: 500 12px "JetBrains Mono", ui-monospace, monospace; }
.xr-row .k { font: 700 10.5px var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: #8fc4ff; }
.xr-row.t-craft .k { color: #e89a6c; } .xr-row.t-raid .k { color: var(--gold); } .xr-row.t-lfg .k { color: #b9a6ff; }
.xr-row .ti { font-weight: 600; color: var(--head); white-space: nowrap; }
.xr-row .de { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xr-row .wh { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.xr-row .wh.now { color: #6fcf97; }
.xr-row .ac { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.xr-row .ac .xr-btn { height: 30px; padding: 0 11px; font-size: 12.5px; }
@media (max-width: 760px) {
  .xr-row { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "tm who ti ti" "k de de ac"; row-gap: 4px; }
  .xr-row .tm { grid-area: tm; } .xr-row > b { grid-area: who; } .xr-row .ti { grid-area: ti; white-space: normal; } .xr-row .k { grid-area: k; } .xr-row .de { grid-area: de; } .xr-row .ac { grid-area: ac; } .xr-row .wh, .xr-row > .xr-ver { display: none; }
}

/* empty and loading */
.xr-empty { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: 16px; }
.xr-empty h2 { margin: 0 0 6px; font: 600 22px var(--f-body) !important; color: var(--head) !important; }
.xr-empty p { margin: 0 auto 18px; color: var(--muted); max-width: 440px; }
.xr-skel div { height: 132px; border-radius: 14px; background: linear-gradient(90deg, #14161b, #191c22, #14161b); background-size: 200% 100%; animation: xrsk 1.4s linear infinite; margin-bottom: 12px; border: 1px solid var(--line); }
@keyframes xrsk { to { background-position: -200% 0; } }

/* rail */
.xr-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.xr-panel h2 { margin: 0 0 6px; font: 600 16px var(--f-body) !important; color: var(--head) !important; }
.xr-panel h2.xr-ph { display: flex; align-items: center; gap: 8px; font: 600 12.5px var(--f-body) !important; text-transform: uppercase; letter-spacing: .08em; color: var(--muted) !important; margin-bottom: 12px; }
.xr-panel p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.xr-hello { background: linear-gradient(160deg, #1d1a12, var(--surface) 65%); border-color: #3a3222; }
.xr-me-row { display: flex; align-items: center; gap: 12px; }
.xr-me-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.xr-me-row b { font-size: 16px; }
.xr-av { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #1b1e25; border: 1px solid var(--line-2); display: grid; place-items: center; font: 700 16px var(--f-body); }
.xr-warn { color: #ff9a8a !important; margin-top: 12px !important; }
.xr-me .xr-fine { margin-top: 12px; }
.xr-mp { padding: 12px 0; border-top: 1px solid #1f2229; }
.xr-mp:first-of-type { border-top: 0; padding-top: 0; }
.xr-mp-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xr-mp-h > b { color: var(--head); font-size: 15px; }
.xr-mp-h > span { font-size: 12.5px; color: var(--muted); }
.xr-mp-h .xr-icon { width: 30px; height: 30px; margin-left: auto; }
.xr-q { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.xr-q.done { display: block; }
.xr-q-who { flex: 1; min-width: 0; font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.xr-q-sub { width: 100%; font-size: 12px; color: var(--muted); }
.xr-q.done .xr-q-who .xr-state { margin-left: auto; }
.xr-q-acts { display: flex; gap: 8px; align-items: center; }
.xr-in { margin: 8px 0 0 !important; color: #6fcf97 !important; font-weight: 600; font-size: 13.5px !important; }
.xr-cmd { display: flex; align-items: center; gap: 8px; margin-top: 8px; background: var(--bg); border: 1px solid #2a2e37; border-radius: 10px; padding: 5px 5px 5px 12px; }
.xr-cmd code { flex: 1; min-width: 0; background: none !important; border: 0 !important; padding: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px !important; }
.xr-replies { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.xr-replies .chip { padding: 5px 10px; font-size: 12.5px; }
.xr-said { margin: 8px 0 0 !important; font-size: 13px !important; color: #d6d2c8 !important; }
.xr-watch { display: flex; gap: 8px; }
.xr-watch input { flex: 1; min-width: 0; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 10px; font: 400 13.5px var(--f-body); }
.xr-watches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.xr-check2 { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.xr-rules { padding: 0 4px; }

/* chat */
.xr-chat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; height: clamp(360px, calc(100vh - 150px), 760px); min-height: 0; position: relative; overflow: hidden; }
.xr-chat-top { display: flex; align-items: center; gap: 12px; padding: 10px; border-bottom: 1px solid var(--line); }
.xr-msgs { flex: 1; overflow-y: auto; padding: 8px 4px 8px 0; scroll-behavior: auto; }
.xr-msg { display: flex; gap: 10px; align-items: baseline; padding: 4px 14px; font-size: 14px; line-height: 1.5; position: relative; }
.xr-msg:hover { background: #171a20; }
.xr-msg.men { background: rgba(226,180,90,.07); box-shadow: inset 2px 0 0 var(--gold); }
.xr-msg .tm { flex: none; color: var(--dim); font: 500 11.5px "JetBrains Mono", ui-monospace, monospace; width: 58px; }
.xr-msg .body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.xr-msg .body b { font-weight: 600; margin-right: 6px; }
.xr-msg .body .xr-ver { margin-right: 6px; }
.xr-msg .tx { color: #dedad2; }
.xr-msg .mact { display: none; gap: 6px; }
.xr-msg:hover .mact, .xr-msg:focus-within .mact { display: flex; }
.xr-msg .mact button { background: #1b1e25; border: 1px solid #2a2e37; color: var(--muted); border-radius: 6px; font: 500 11.5px var(--f-body); padding: 2px 8px; cursor: pointer; }
.xr-newmsg { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--gold); color: #1a1408; border: 0; border-radius: 999px; padding: 6px 14px; font: 700 12.5px var(--f-body); cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.xr-compose-chat { border-top: 1px solid var(--line); padding: 10px; }
.xr-say { display: flex; align-items: center; gap: 8px; }
.xr-say input { flex: 1; min-width: 0; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 12px; font: 400 14px var(--f-body); }
.xr-say input:focus { outline: none; border-color: #6b5a35; }
.xr-say .xr-btn { min-width: 64px; }
.xr-count { font: 500 12px var(--f-body); color: var(--dim); margin-left: auto; }
.xr-cnote { margin: 6px 2px 0; min-height: 16px; font-size: 12.5px; color: var(--muted); }
.xr-cnote.bad { color: #ff9a8a; }
.xr-cant { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); padding: 4px 4px; }

/* dialogs */
.xr-dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 1px solid #2a2e37; border-radius: 18px; padding: 0; background: #121419; color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.6); font-family: var(--f-body); }
.xr-dlg.wide { width: min(1060px, calc(100vw - 32px)); }
.xr-dlg::backdrop { background: rgba(5,6,8,.72); backdrop-filter: blur(3px); }
.xr-dlg-in { padding: 24px 26px 26px; margin: 0; }
.xr-dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.xr-dlg-h h2 { margin: 0; font: 700 22px var(--f-body) !important; letter-spacing: -.015em; color: var(--head) !important; }
.xr-dlg-p { margin: 0 0 14px; color: #d6d2c8; font-size: 15px; }
.xr-dlg-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.xr-field { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; min-width: 0; flex: 1 1 200px; }
.xr-field.sm { flex: 0 1 150px; }
.xr-lbl { font: 600 13px var(--f-body); color: var(--text); display: flex; gap: 8px; align-items: baseline; }
.xr-lbl .xr-fine { font-weight: 400; }
.xr-lbl .xr-count { margin-left: auto; }
.xr-dlg input:not([type=checkbox]):not([type=file]), .xr-dlg select, .xr-dlg textarea { height: 42px; border-radius: 10px; border: 1px solid #2a2e37; background: #0d0e12; color: var(--text); padding: 0 12px; font: 400 14px var(--f-body); width: 100%; box-sizing: border-box; }
.xr-dlg textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.xr-dlg input:focus, .xr-dlg select:focus, .xr-dlg textarea:focus { outline: none; border-color: #6b5a35; }
.xr-row2 { display: flex; gap: 0 14px; flex-wrap: wrap; }
.xr-lv { display: flex; align-items: center; gap: 8px; }
.xr-lv input { width: 72px !important; }
.xr-lv span { color: var(--dim); font-size: 13px; }
.xr-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.xr-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.xr-step { display: flex; align-items: center; gap: 8px; background: #0d0e12; border: 1px solid #2a2e37; border-radius: 10px; padding: 4px 4px 4px 12px; }
.xr-step span { font-size: 13px; color: #d6d2c8; min-width: 46px; }
.xr-step button { width: 32px; height: 32px; border-radius: 7px; border: 0; background: #1b1e25; color: var(--text); font-size: 17px; cursor: pointer; }
.xr-step button:hover { background: #262a33; }
.xr-step b { width: 18px; text-align: center; }
.xr-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.xr-kinds button { text-align: left; border-radius: 12px; padding: 13px 14px; border: 1px solid #2a2e37; background: #0d0e12; cursor: pointer; font-family: var(--f-body); }
.xr-kinds button:hover { border-color: #3a3f4a; }
.xr-kinds button.on { border-color: var(--gold); background: #1d1a12; }
.xr-kinds b { display: block; font-size: 14px; color: var(--head); font-weight: 600; }
.xr-kinds span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.xr-compose { display: flex; gap: 28px; flex-wrap: wrap; }
.xr-cf { flex: 999 1 460px; min-width: 0; }
.xr-pv { flex: 1 1 320px; min-width: 0; background: #0f1115; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; align-self: flex-start; position: sticky; top: 0; }
.xr-pv .xr-card { padding: 16px; }
.xr-pv .xr-ico { width: 38px; height: 38px; }
.xr-check { margin: 12px 0 0; font-size: 13px; min-height: 18px; }
.xr-check.good { color: #6fcf97; } .xr-check.bad { color: #ff9a8a; }
.xr-import { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--dim); }
.xr-import span { flex: 1 1 200px; }
.xr-picks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.xr-picks.col { flex-direction: column; }
.xr-pick { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 11px; border: 1px solid #2a2e37; background: #0d0e12; color: var(--text); cursor: pointer; font: 400 13px var(--f-body); text-align: left; }
.xr-pick span { color: var(--muted); }
.xr-pick:hover { border-color: #3a3f4a; }
.xr-pick.on { border-color: var(--gold); background: #1d1a12; }
.xr-picks.roles .xr-pick { flex: 1 1 120px; justify-content: center; padding: 16px; font-size: 15px; color: var(--gold); }
.xr-picks.roles .xr-pick b { color: var(--head); }
.xr-picks.col .xr-pick { width: 100%; }
.xr-rlist { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; margin-top: 10px; border: 1px solid #2a2e37; border-radius: 10px; }
.xr-rlist button { text-align: left; background: transparent; border: 0; border-bottom: 1px solid #1c1f26; color: var(--text); padding: 10px 12px; font: 400 14px var(--f-body); cursor: pointer; }
.xr-rlist button:hover { background: #171a20; }
.xr-rlist button.on { background: #1d1a12; color: #f0c97a; font-weight: 600; }
.xr-rlist.plain { padding: 8px; flex-direction: row; flex-wrap: wrap; gap: 6px; }
.xr-rlist.plain span { font-size: 13px; padding: 4px 10px; border-radius: 6px; background: #1b1e25; border: 1px solid #2a2e37; }
.xr-ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: #d6d2c8; font-size: 14.5px; }
.xr-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; max-width: min(560px, calc(100vw - 32px)); background: #1d2027; border: 1px solid #343842;
  color: var(--head); border-radius: 12px; padding: 12px 16px; font: 500 14px/1.4 var(--f-body); box-shadow: 0 14px 40px rgba(0,0,0,.5); transition: opacity .35s, transform .35s; }
.xr-toast.bad { border-color: #6a2f2a; background: #2a1715; }
.xr-toast.out { opacity: 0; transform: translate(-50%, 8px); }

@media (max-width: 640px) {
  .xr { padding-top: 20px !important; }
  .xr-scope { padding: 8px; }
  .xr-seg button { padding: 7px 10px; }
  .xr-search { flex-basis: 100%; order: 5; }
  #xpost { order: 6; flex: 1 1 100%; height: 46px; }
  .xr-filters { margin-left: 0; }
  .xr-card { padding: 14px; gap: 12px; }
  .xr-ico { width: 36px; height: 36px; border-radius: 9px; }
  .xr-ico svg { width: 18px; height: 18px; }
  .xr-acts { width: 100%; margin-left: 0; justify-content: flex-end; }
  .xr-acts .xr-btn.gold { flex: 1; height: 44px; }
  .xr-dlg-in { padding: 18px 16px 20px; }
  .xr-chat { height: calc(100vh - 130px); }
  .xr-msg { padding: 4px 10px; } .xr-msg .tm { width: 46px; }
}

/* the site banner */
.xr-banner { margin: 0 0 14px; padding: 11px 16px; border-radius: 12px; font: 500 14.5px/1.45 var(--f-body); border: 1px solid #2a3a52; background: #142030; color: #cfe5ff; }
.xr-banner.warn { border-color: #5a4520; background: #241c0e; color: #f4d79a; }
.xr-banner.good { border-color: #24503a; background: #10241a; color: #b5ecc9; }
.xr-banner a { color: inherit; font-weight: 700; }

.xr-count.over { color: #ff9a8a; font-weight: 700; }
.xr-recipes span .wi-link { font-weight: 500; }
.xr-item .wi-link { font-size: 14.5px; }
