/* Role detail page. Scope cards to the existing workbench palette. */
.wc-page { display:flex; flex-direction:column; gap:24px; color:var(--text); padding-bottom:24px; }
.wc-page h2, .wc-page h3, .wc-page p { margin:0; }
.wc-sync-note { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; flex-wrap:wrap; }
.wc-sync-note svg { width:15px; height:15px; color:var(--primary); }
.wc-sync-note > span:last-child { margin-left:auto; }
.wc-identity { background:#263e32; color:#f2f8f3; border-radius:12px; display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,auto); gap:26px; padding:30px; }
.wc-profile { display:flex; align-items:center; gap:22px; min-width:0; }
.wc-profile > div { min-width:0; }
.wc-profile-avatar { width:70px; height:70px; border:1px solid #62826d; border-radius:18px; background:#3a5744; color:#eff6e6; display:flex; align-items:center; justify-content:center; font-size:30px; flex-shrink:0; }
.wc-profile small { color:#c2d3c7; font-size:12px; }
.wc-profile h2 { font-size:26px; font-weight:650; margin:4px 0 12px; overflow-wrap:anywhere; }
.wc-profile-tags { display:flex; flex-wrap:wrap; gap:8px 18px; color:#d5e2d8; font-size:12px; }
.wc-profile-tags > span { display:inline-flex; align-items:center; gap:6px; }
.wc-profile-tags svg { width:15px; height:15px; color:#aecaaf; }
.wc-power { border-left:1px solid #516455; padding-left:28px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:8px; }
.wc-power > span:first-child { font-size:12px; color:#d2dfd3; display:flex; gap:6px; align-items:center; }
.wc-power > strong { font-size:30px; color:#f4e7b8; font-variant-numeric:tabular-nums; font-weight:600; line-height:1.25; }
.wc-power .wc-delta.gain { background:#3d5d47; color:#ceedd2; }
.wc-power .wc-delta.loss { background:#674440; color:#ffe0d7; }
.wc-power .wc-delta.flat, .wc-power .wc-delta.pending { color:#c7d4ca; }
.wc-section { background:#fff; border:1px solid var(--line); border-radius:12px; padding:24px; min-width:0; }
.wc-section-heading { display:flex; gap:15px; align-items:center; justify-content:space-between; margin-bottom:20px; }
.wc-section-heading h2 { font-size:17px; font-weight:650; color:var(--heading); }
.wc-section-heading p { color:var(--muted); font-size:12px; margin-top:5px; }
.wc-baseline-label, .wc-queue-summary, .wc-buff-count { color:var(--primary-dark); font-size:12px; white-space:nowrap; padding:6px 10px; background:#f0f5f1; border-radius:6px; }
.wc-primary-resources { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.wc-stat { padding:18px 16px; min-width:0; background:#fafcfb; display:flex; align-items:flex-start; flex-direction:column; gap:9px; border-right:1px solid var(--line); }
.wc-stat:last-child { border-right:0; }
.wc-stat-label { display:flex; align-items:center; gap:7px; font-size:12px; color:var(--muted); }
.wc-stat-label svg { color:#68987b; width:16px; height:16px; }
.wc-stat strong { color:var(--heading); font-size:24px; line-height:1.3; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.wc-stat strong small { color:var(--muted); font-size:12px; font-weight:400; }
.wc-delta { display:inline-flex; align-items:center; border-radius:4px; padding:3px 6px; line-height:1.3; font-size:11px; width:fit-content; overflow-wrap:anywhere; }
.wc-delta.gain { background:#e7f4ea; color:#216440; }
.wc-delta.loss { background:#fbefec; color:#973d31; }
.wc-delta.flat, .wc-delta.pending, .wc-stamina-note { color:var(--muted); font-size:11px; }
.wc-delta.flat, .wc-delta.pending { padding-left:0; }
.wc-basic-resources { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-top:18px; }
.wc-basic-resource { border:1px solid var(--line); border-radius:8px; padding:16px; min-width:0; }
.wc-basic-resource h3 { display:flex; align-items:center; gap:8px; font-size:14px; color:var(--heading); margin-bottom:14px; }
.wc-basic-resource h3 svg { color:#a68d55; }
.wc-basic-resource > div { display:flex; justify-content:space-between; gap:8px; align-items:center; padding-top:8px; }
.wc-basic-resource > div > span { font-size:11px; color:var(--muted); display:flex; align-items:center; gap:5px; }
.wc-basic-resource > div > span svg { width:12px; height:12px; color:#6a997c; }
.wc-basic-resource b { font-size:15px; font-weight:600; font-variant-numeric:tabular-nums; }
.wc-subheading { display:flex; align-items:center; gap:12px; margin:24px 0 12px; }
.wc-subheading h3 { font-size:14px; color:var(--heading); }
.wc-subheading > span { font-size:11px; color:var(--muted); }
.wc-speedups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.wc-speedup { border:1px solid var(--line); border-radius:8px; padding:16px; min-width:0; }
.wc-speedup-main { display:flex; align-items:center; gap:12px; margin-bottom:9px; }
.wc-speedup-icon { width:34px; height:38px; border-radius:8px; background:#f4f0e5; color:#9c8247; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.wc-speedup h3 { font-size:12px; color:var(--muted); font-weight:500; }
.wc-speedup strong { display:block; font-size:19px; line-height:1.4; color:var(--heading); margin-top:3px; font-weight:600; font-variant-numeric:tabular-nums; }
.wc-speedup details { margin-top:12px; border-top:1px solid #edf0ee; padding-top:10px; }
.wc-speedup summary { cursor:pointer; display:flex; align-items:center; justify-content:space-between; list-style:none; color:var(--muted); font-size:11px; }
.wc-speedup summary::-webkit-details-marker { display:none; }
.wc-speedup summary svg { width:14px; height:14px; }
.wc-speedup details[open] summary svg { transform:rotate(180deg); }
.wc-speedup details > div { margin-top:10px; display:grid; grid-template-columns:1fr 1fr; gap:7px 12px; color:var(--muted); font-size:11px; }
.wc-speedup details > div > span { display:flex; justify-content:space-between; gap:6px; }
.wc-speedup details b { color:var(--text); font-weight:500; }
.wc-resource-footnote { display:flex; align-items:flex-start; gap:7px; font-size:11px; color:var(--muted); margin-top:18px !important; }
.wc-resource-footnote svg { width:14px; height:14px; margin-top:2px; }
.wc-queues { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.wc-queue { border:1px solid #dbe7df; border-radius:9px; padding:18px; min-width:0; background:#fbfdfb; }
.wc-queue-top { display:flex; align-items:center; gap:10px; }
.wc-queue-icon { width:34px; height:37px; display:flex; align-items:center; justify-content:center; border-radius:7px; background:#e7f1ea; color:#377b52; flex-shrink:0; }
.wc-queue-top > div { flex:1; min-width:0; }
.wc-queue-top small { font-size:10px; color:var(--muted); }
.wc-queue h3 { font-size:14px; font-weight:600; color:var(--heading); overflow-wrap:anywhere; }
.wc-queue-state { font-size:10px; color:#286745; background:#eaf3ec; padding:3px 7px; border-radius:4px; }
.wc-queue-target, .wc-queue-time { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:11px; margin-top:12px !important; }
.wc-queue-time { padding-bottom:13px; border-bottom:1px solid #e7ece8; margin-top:7px !important; }
.wc-queue-target svg, .wc-queue-time svg { width:13px; height:13px; color:#7b9685; }
.wc-squad-row { display:grid; grid-template-columns:54px minmax(0,1fr); gap:8px; align-items:baseline; margin-top:12px; font-size:12px; }
.wc-squad-row > span { color:var(--muted); white-space:nowrap; }
.wc-squad-row b { font-weight:500; overflow-wrap:anywhere; }
.wc-bear-leader small { grid-column:2; color:var(--muted); font-size:11px; }
.wc-soldiers { display:flex; flex-direction:column; gap:4px; overflow-wrap:anywhere; }
.wc-soldiers small { color:var(--muted); margin-top:3px; }
.wc-queue.idle { background:#f8f9f8; border-color:#e4e9e5; display:flex; flex-direction:column; min-height:136px; }
.wc-queue.idle > p { margin:20px 0 0; font-size:12px; color:var(--muted); }
.wc-queue.idle .wc-queue-icon { background:#eaf0ec; color:#7f9387; }
.wc-queue.idle .wc-queue-state { color:#56675b; background:#ebefec; }
.wc-buff-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.wc-buff { display:flex; gap:12px; border:1px solid #dae8df; background:#f9fcf9; padding:18px; border-radius:9px; min-width:0; }
.wc-buff-icon { width:35px; height:38px; border-radius:8px; background:#e6f0e8; color:#387348; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.wc-buff > div { flex:1; min-width:0; }
.wc-buff-title { display:flex; gap:10px; align-items:center; justify-content:space-between; }
.wc-buff h3 { font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.wc-buff-title > span { color:#2c7047; font-size:10px; white-space:nowrap; }
.wc-buff p { font-size:12px; color:var(--text); margin:7px 0 2px; overflow-wrap:anywhere; }
.wc-buff small { font-size:11px; color:var(--muted); }
.wc-buff-time { display:flex; flex-wrap:wrap; align-items:center; gap:5px 8px; font-size:11px; color:var(--muted); margin-top:12px; }
.wc-buff-time svg { width:13px; height:13px; }
.wc-buff-time > span:last-child { font-size:10px; }
.wc-empty { grid-column:1/-1; padding:28px; text-align:center; background:#fafbfa; border:1px dashed #dde5df; border-radius:8px; color:var(--muted); }
.wc-empty svg { color:#82a08b; width:24px; height:24px; margin-bottom:8px; }
.wc-empty p { font-size:13px; margin-bottom:4px; }
.wc-empty small { font-size:11px; }
/* Long activity status must stay within its own table cell. */
.wb-task-row > .wb-pill { min-width:0; max-width:100%; overflow-wrap:anywhere; white-space:normal; justify-self:start; }
@media (max-width:1400px) {
 .wc-primary-resources { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .wc-stat:nth-child(3) { border-right:0; }
 .wc-stat:nth-child(-n+3) { border-bottom:1px solid var(--line); }
 .wc-queues, .wc-buff-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .wc-profile-avatar { width:58px; height:58px; }
 .wc-identity { padding:24px; gap:18px; }
 .wc-basic-resource { padding:13px; }
 .wc-basic-resource > div { flex-wrap:wrap; }
}
@media (max-width:1000px) {
 .wc-identity { grid-template-columns:1fr; }
 .wc-power { border-left:0; border-top:1px solid #526957; padding:18px 0 0; display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px 12px; }
 .wc-power > strong { grid-column:1; grid-row:2; }
 .wc-power .wc-delta { grid-column:2; grid-row:1/3; }
 .wc-basic-resources { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .wc-speedups { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px) { .wb-mobile-nav { grid-template-columns:repeat(5,minmax(0,1fr)); } }
@media (max-width:767px) {
 .wc-page { gap:16px; }
 .wc-section { padding:16px; }
 .wc-section-heading { align-items:flex-start; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
 .wc-section-heading h2 { font-size:16px; }
 .wc-section-heading p { font-size:11px; }
 .wc-section-heading > span { font-size:10px; }
 .wc-identity { padding:20px; }
 .wc-profile { gap:14px; align-items:flex-start; }
 .wc-profile h2 { font-size:22px; }
 .wc-profile-avatar { width:48px; height:48px; border-radius:13px; font-size:22px; }
 .wc-profile-tags { gap:7px 12px; font-size:11px; }
 .wc-profile small { font-size:11px; }
 .wc-power > strong { font-size:27px; }
 .wc-sync-note { font-size:10px; }
 .wc-primary-resources { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .wc-stat { padding:14px; border-right:1px solid var(--line) !important; border-bottom:1px solid var(--line); }
 .wc-stat:nth-child(2n) { border-right:0 !important; }
 .wc-stat:nth-last-child(-n+2) { border-bottom:0; }
 .wc-stat strong { font-size:23px; }
 .wc-basic-resources, .wc-speedups { gap:10px; }
 .wc-basic-resource > div { gap:3px 8px; }
 .wc-speedup { padding:13px; }
 .wc-speedup-main { gap:8px; align-items:flex-start; }
 .wc-speedup-icon { width:27px; height:32px; }
 .wc-speedup strong { font-size:16px; }
 .wc-speedup details > div { grid-template-columns:1fr; }
 .wc-queues, .wc-buff-grid { grid-template-columns:1fr; }
 .wc-subheading { flex-wrap:wrap; gap:4px 10px; }
 .wc-queue { padding:16px; }
 .wc-buff { padding:16px; }
 .wc-resource-footnote { font-size:10px; }
}
