/* Apotheosis page additions on top of the shared dashboard styles */
.apo-tabs { margin-bottom: 18px; }
.apo-tabs a { cursor: pointer; }
.sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; margin-bottom: 16px; }
.sum-grid > .card { margin-bottom: 0; }
.sum-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.sum-row:last-child { border-bottom: 0; }
.sum-row .r { margin-left: auto; text-align: right; }
.sum-row .issue { color: var(--bad); font-size: 12px; }
.sum-row .rk, td.rk, .prio-row .rk { color: var(--muted-2); font-weight: 700; width: 18px; text-align: right; }
.sum-roles { display: flex; gap: 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.sum-roles b { color: var(--text-strong); margin-left: 4px; }
.issue-list { max-height: 260px; overflow-y: auto; }
.boss-bd td { vertical-align: top; }
.boss-bd .bb { display: inline-flex; align-items: center; gap: 4px; margin: 0 12px 3px 0; white-space: nowrap; }
.prio-row { display: grid; grid-template-columns: 22px minmax(160px, 240px) 90px 1fr; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.prio-row:last-child { border-bottom: 0; }
.prio-row .pb { font-weight: 700; color: var(--text-strong); }
.prio-row .pw { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.foot { margin: 24px 0 8px; text-align: center; }
@media (max-width: 700px) { .prio-row { grid-template-columns: 22px 1fr; } .prio-row .pc, .prio-row .pw { grid-column: 2; } }
a { color: #58a6ff; }
.tab .logs-table th, .tab .logs-table td { text-align: left; }
.tab .logs-table td.rk { text-align: right; width: 24px; }

.wk-row { display: grid; grid-template-columns: 44px minmax(140px, 200px) 110px 60px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.wk-row.team { background: rgba(88,166,255,.06); }
.wk-row .lvl { background: #1f3a5f; color: #cfe3ff; border-radius: 4px; padding: 1px 6px; font-weight: 700; text-align: center; }
.wk-row .ok { color: var(--ok); } .wk-row .no { color: var(--bad); }
.wk-row .ww { display: flex; flex-wrap: wrap; gap: 4px 10px; }

.role-sec { margin-bottom: 10px; }
.role-sec .section-title h2 { display: inline-flex; align-items: center; gap: 8px; }
.role-ic { width: 20px; height: 20px; vertical-align: middle; flex: none; }
.avail { font-size: 12.5px; color: var(--muted); margin: -4px 0 12px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.avail b { color: var(--text); }
.offspecs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; }
.offspecs .ol { font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted-2); }
.offspecs .ob { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 2px; border: 1px solid #444; border-radius: 10px; background: #262626; }
.offspecs .ob .role-ic { width: 16px; height: 16px; }
.pop-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50; }
.pop { position: fixed; top: 6vh; left: 50%; transform: translateX(-50%); width: min(900px, 94vw); max-height: 86vh; overflow-y: auto; background: #1c1c1c; border: 1px solid #3a3a3a; border-radius: 10px; padding: 16px 20px; z-index: 51; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .pop-grid { grid-template-columns: 1fr; } }

.rb-links { display: flex; gap: 8px; margin-top: 8px; }
.rb-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #ddd; background: #2a2a2a; border: 1px solid #444; border-radius: 6px; padding: 3px 10px; text-decoration: none; }
.rb-btn:hover { border-color: #3987e5; color: #fff; }
.rb-btn img { width: 14px; height: 14px; }

.rb-links { flex-wrap: wrap; align-items: center; }
.rb-step { font-size: 10px; font-weight: 800; color: #111; background: #ffbb33; border-radius: 50%; width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; }

.lock { background: #2a2a2a; color: #ddd; border: 1px solid #444; border-radius: 8px; padding: 6px 12px; font-weight: 600; cursor: pointer; }
.lock.on { border-color: #e3b341; color: #e3b341; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 200px minmax(160px, 1fr) minmax(200px, 1.4fr); gap: 12px; align-items: center; font-size: 13px; }
.bar-row .bl { font-weight: 700; color: var(--text-strong); }
.bt { position: relative; height: 20px; background: #262626; border-radius: 4px; overflow: hidden; }
.bf { height: 100%; background: linear-gradient(90deg, #2f6fd6, #58a6ff); }
.bv { position: absolute; right: 6px; top: 1px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
.bw { display: flex; flex-wrap: wrap; gap: 3px 12px; }
.steps { margin: 0 0 10px 18px; padding: 0; font-size: 13px; color: var(--muted); }
.steps li { margin: 3px 0; }
.sim-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sim-form input { flex: 1 1 360px; background: #1a1a1a; border: 1px solid #444; color: #eee; border-radius: 6px; padding: 6px 10px; }
.sim-form select { background: #1a1a1a; border: 1px solid #444; color: #eee; border-radius: 6px; padding: 6px; }
.sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 16px; }
.sim-card { padding: 14px 16px; }
.sim-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.sim-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12.5px; padding: 3px 0; border-bottom: 1px solid var(--line-2); }
.sim-row .sn { display: flex; flex-direction: column; min-width: 0; }
.sim-row .si, .sim-row .sb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-row .sb { font-size: 11px; }
.sp.up2 { color: #1eff00; } .sp.up { color: #9be29b; } .sp.down { color: var(--muted-2); font-weight: 500; }
@media (max-width: 700px) { .sim-cols { grid-template-columns: 1fr; } .bar-row { grid-template-columns: 1fr; } .sim-grid { grid-template-columns: 1fr; } }

.sim-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.sim-tab { background: #1f1f1f; border: 1px solid #3a3a3a; border-radius: 10px; padding: 12px 16px; color: #ddd; font-size: 16px; font-weight: 700; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.sim-tab.on { border-color: #ffbb33; background: #2a2414; color: #fff; }
.run-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.run-step { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rb-step.big { width: 22px; height: 22px; font-size: 12px; }
.rb-btn.big { font-size: 13.5px; padding: 6px 14px; cursor: pointer; }
.stale { color: var(--bad); font-weight: 700; } .fresh { color: var(--ok); }
.sim-status td { vertical-align: middle; }
.sim-form textarea { flex: 1 1 420px; background: #1a1a1a; border: 1px solid #444; color: #eee; border-radius: 6px; padding: 6px 10px; font-family: inherit; }

.boss-row { grid-template-columns: 120px minmax(0, 1fr) auto; }
.popup-note { flex-basis: 100%; margin-left: 32px; font-size: 11.5px; }

.imp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wish-form select, .wish-form input { background: #1a1a1a; border: 1px solid #444; color: #eee; border-radius: 6px; padding: 6px 8px; }
.wish-form input { flex: 1 1 200px; }
.pill.wish { color: #e3b341; border-color: rgba(227,179,65,.5); }
.wish-row.got .si { text-decoration: line-through; color: var(--muted-2); }
.sim-card.dim { opacity: .7; }
tr.notready td { opacity: .85; }
@media (max-width: 900px) { .imp-split { grid-template-columns: 1fr; } }

.sim-tabs { grid-template-columns: 1fr 1fr 1fr; }
.bf.wishbar { background: linear-gradient(90deg, #a07a1f, #e3b341); }

/* Talents Check */
.tal-table td.tal-cell { text-align: center; font-weight: 700; cursor: default; }
.tal-cell.ok, .tal-mt.ok { color: #7ee787; } .tal-cell.near, .tal-mt.near { color: #e3b341; } .tal-cell.off, .tal-mt.off { color: #ff7b72; } .tal-cell.hero, .tal-mt.hero { color: #c67bff; }
.tal-mt { min-width: 92px; font-size: 12px; font-weight: 700; }
.tal-herobad { color: #c67bff; font-weight: 600; }
p .tal-cell { font-weight: 700; }
.tal-bh { cursor: pointer; text-decoration: underline dotted; }
.tal-row { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line, #333); align-items: baseline; }
.tal-row .tn { min-width: 150px; } .tal-row .tw { flex: 1; font-size: 13px; line-height: 1.5; }
.tal-ref { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 8px; }
.tal-copy { cursor: pointer; font: inherit; font-size: 12px; }
.tal-swap { font-size: 13px; margin: 0 0 8px; }
.tal-miss { color: var(--bad); } .tal-extra { color: #e3b341; }
.pill.tal-ok { color: var(--ok); border-color: rgba(63,185,80,.5); } .pill.tal-hero { color: #c67bff; border-color: rgba(163,53,238,.5); }

/* Loot Targets */
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 8px; margin-left: 4px; border: 1px solid; white-space: nowrap; vertical-align: 1px; }
.tag.bis { color: #58a6ff; border-color: rgba(88,166,255,.45); } .tag.sim { color: #3fb950; border-color: rgba(63,185,80,.45); }
.tag.bonus { color: #c67bff; border-color: rgba(198,123,255,.45); } .tag.wish { color: #e3b341; border-color: rgba(227,179,65,.45); }
.strong-lbl { color: #e5cc80; font-weight: 700; }
.loot-boss { padding: 9px 0; border-top: 1px solid var(--line, #333); }
.loot-boss:first-of-type { border-top: 0; }
.lb-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.lb-head .rk { min-width: 22px; color: var(--muted-2, #888); font-weight: 700; }
.lb-wants { display: flex; flex-wrap: wrap; gap: 6px; }
.want { display: inline-flex; align-items: center; gap: 2px; background: #232323; border: 1px solid #3a3a3a; border-radius: 8px; padding: 3px 8px; font-size: 12.5px; }
.want .wi { margin-left: 2px; }
.want.strong { border-color: #e5cc80; background: rgba(229,204,128,.08); }
.want.strong .wi { color: #e5cc80; font-weight: 600; }
.bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 4px 18px; }
.bt-row { display: grid; grid-template-columns: 120px minmax(150px, auto) 1fr; gap: 8px; align-items: baseline; padding: 4px 0; font-size: 13px; }
.bt-row .hint { font-size: 12px; }
.bt-line { font-size: 13px; margin: 2px 0 8px; }
.lp-group { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.lp-boss { width: 100%; font-size: 12px; color: var(--muted-2, #999); font-weight: 600; }
.st-ic { display: inline-flex; gap: 2px; vertical-align: -3px; } .st-ic .role-ic { width: 20px; height: 20px; }
.st-src { font-weight: 400; color: var(--muted-2, #999); font-size: 12px; }

/* Loot Targets: summary tiles, raid sections, boss headers */
.lt-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: start; gap: 12px; margin-bottom: 16px; }
.lt-tile { background: var(--card, #1c1c1c); border: 1px solid #333; border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.lt-tile:hover { border-color: #555; }
.lt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 14px; }
.lt-row { display: grid; grid-template-columns: minmax(0, 1.8fr) 1fr 22px; gap: 8px; align-items: center; font-size: 12px; padding: 3px 0; }
.lt-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-bar { height: 7px; background: #2a2a2a; border-radius: 4px; overflow: hidden; } .lt-bar span { display: block; height: 100%; background: #3987e5; border-radius: 4px; }
.lt-row b { text-align: right; }
.loot-raid .card-head h2 { font-size: 20px; }
.loot-boss { padding: 12px 0 14px; }
.lb-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: linear-gradient(90deg, rgba(57,135,229,.16), rgba(57,135,229,0) 70%);
  border-left: 3px solid #3987e5; border-radius: 6px; padding: 7px 12px; margin-bottom: 9px; }
.lb-rank { font-weight: 800; color: #8bb9f0; min-width: 16px; }
.lb-name { font-size: 17px; font-weight: 800; color: #fff; }
.lb-stats { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted-2, #aaa); } .lb-stats b { color: #ddd; } .lb-stats .up { color: #7ee787; font-weight: 700; }
.lb-roll { margin-left: auto; font-size: 12.5px; color: #e5cc80; }
.br-star { display: inline-block; color: #111; background: #e5cc80; border-radius: 8px; font-size: 10.5px; font-weight: 800; padding: 0 6px; margin-left: 6px; vertical-align: 1px; cursor: default; }

.setup-edit { margin: 4px 0 12px; font-size: 13px; } .setup-edit summary { cursor: pointer; color: var(--muted-2, #aaa); } .setup-edit summary:hover { color: #ddd; }
.setup-edit input { flex: 1; }

/* Drops cards */
.drop-card .name-row { cursor: pointer; }
.dc-caret { color: var(--muted-2, #999); margin-left: 8px; font-size: 12px; }
.dc-dates { font-size: 12px; margin-top: 4px; }
.dc-bosses { margin-top: 8px; }
.dc-boss { border-top: 1px solid #2c2c2c; padding: 5px 0; }
.dc-bh { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 13.5px; }
.dc-bh .dc-tags { margin-left: auto; }
.drop-card.open .dc-boss .sim-rows { margin: 4px 0 4px 10px; }

@media (max-width: 900px) { .lt-grid { grid-template-columns: 1fr; } }

.lt-l small { display: block; font-size: 10.5px; color: var(--muted-2, #888); line-height: 1.2; }

/* Boss / dungeon tiles with faded art */
.boss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.boss-tile { position: relative; overflow: hidden; background: #202020; border: 1px solid #343434; border-radius: 10px; padding: 12px 14px; min-height: 92px; }
.boss-tile.has-art::before { content: ""; position: absolute; inset: 0; background-image: var(--art); background-size: cover; background-position: center 25%; opacity: .22; filter: saturate(.8); pointer-events: none; }
.boss-tile.has-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.92) 0%, rgba(20,20,20,.55) 60%, rgba(20,20,20,.25) 100%); pointer-events: none; }
.boss-tile > * { position: relative; z-index: 1; }
.boss-tile:hover { border-color: #4a4a4a; }
.boss-tile.open { grid-column: 1 / -1; border-color: #3987e5; }
.bt-top { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.bt-title { flex: 1; } .bt-title small { display: block; color: var(--muted-2, #999); font-size: 11.5px; }
.bt-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted-2, #aaa); margin-top: 8px; cursor: pointer; }
.bt-stats b { color: #e6e6e6; } .bt-stats .up { color: #7ee787; font-weight: 700; }
.br-count { color: #e5cc80; font-weight: 700; }
.boss-tile .lb-roll { margin: 10px 0 8px; }
.boss-tile .lb-wants { margin-top: 8px; }

.player-tile { border-left: 3px solid var(--accent, #555); }
.player-tile .cls-ic { width: 28px; height: 28px; border-radius: 6px; }
.player-tile .bt-title small { display: flex; align-items: center; gap: 4px; } .player-tile .bt-title small .role-ic { width: 14px; height: 14px; }
.pt-rolls { margin-top: 8px; font-size: 12.5px; display: grid; gap: 3px; cursor: pointer; } .pt-rolls .br-star { margin-left: 0; }
.pt-groups { margin-top: 12px; border-top: 1px solid #333; padding-top: 10px; }
.boss-tile.open.has-art::before { opacity: .08; height: 220px; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }

.tag.own { color: #79c0ff; border-color: rgba(121,192,255,.45); }
.want.crest-up { border-style: dashed; }
.pt-crests { font-size: 12.5px; margin-top: 6px; cursor: pointer; color: var(--muted-2, #aaa); }
.crest-table td { padding: 3px 10px 3px 0; font-size: 12.5px; }
@media (max-width: 1100px) { .lt-grid { grid-template-columns: 1fr 1fr; } }
.pt-crestbox { background: rgba(121,192,255,.05); border: 1px solid rgba(121,192,255,.18); border-radius: 8px; padding: 8px 10px 2px; margin-bottom: 12px; }
.pt-ch { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #79c0ff; font-weight: 700; margin-bottom: 2px; }
.pt-crests > div { line-height: 1.45; }

/* Player tiles: every collapsed tile has the same rows, one line each */
.player-tile .pt-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.player-tile .bt-stats.pt-row > span { margin-right: 9px; }
.player-tile .pt-crests { margin-top: 6px; } .player-tile .pt-crests .pt-row::before { content: '• '; color: #79c0ff; }
.player-tile .pt-rolls { display: block; margin-top: 6px; } .player-tile .pt-rolls .pt-row { line-height: 1.6; }
.player-tile .bt-title { min-width: 0; } .player-tile .bt-title .lb-name, .player-tile .bt-title small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-gold { font-size: 12px; white-space: nowrap; align-self: center; }
.player-tile .pt-crests.pt-none { visibility: hidden; }
.tal-mt small { display: block; font-weight: 400; color: var(--muted-2, #999); font-size: 11px; }

/* Talents Check boss view tiles */
.tal-tile { border-left: 3px solid var(--accent, #555); }
.tal-tile .bt-title small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tal-copyrow { margin-top: 8px; } .tal-copyrow .tal-copy { font-size: 13px; padding: 4px 12px; }
.tal-from { font-size: 12.5px; margin-top: 6px; cursor: pointer; }
.tal-sums { margin-top: 6px; font-size: 12.5px; cursor: pointer; } .tal-sum { margin-right: 10px; color: #ddd; } .tal-sum b { font-weight: 700; }
.tal-sum.ok b { color: #7ee787; } .tal-sum.near b { color: #e3b341; } .tal-sum.off b { color: #ff7b72; } .tal-sum.hero b { color: #c67bff; }
.tal-tile.open .tal-sums { white-space: normal; }
.tal-tile .pt-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Header: officer button + guild links */
.top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.guild-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.glink { display: inline-flex; align-items: center; gap: 6px; background: #1f1f1f; border: 1px solid #3a3a3a; border-radius: 8px; padding: 4px 10px; font-size: 12.5px; color: #ddd; text-decoration: none; }
.glink:hover { border-color: #5a5a5a; color: #fff; }
.glink img { width: 16px; height: 16px; border-radius: 3px; }

/* Officer tabs */
.off-tabs { display: contents; }
.apo-tabs a.off-tab { border-color: rgba(227,179,65,.45); color: #e3b341; }
.apo-tabs a.off-tab.on { background: rgba(227,179,65,.18); color: #fff; }
.off-count { background: #e3b341; color: #111; border-radius: 8px; padding: 0 6px; margin-left: 5px; font-size: 11px; font-weight: 800; }
.off-count:empty { display: none; }
/* Requests */
.req-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.req-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-items: end; }
.req-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted-2, #aaa); }
.req-form label.wide { grid-column: 1 / -1; }
.req-form input, .req-form select, .req-actions input { background: #1a1a1a; color: #eee; border: 1px solid #3a3a3a; border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 13px; }
.req-form .req-msg { grid-column: 1 / -1; white-space: pre-line; }
.rd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.req-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.toggle-btn.ok { border-color: rgba(63,185,80,.6); color: #7ee787; } .toggle-btn.bad { border-color: rgba(248,81,73,.6); color: #ff7b72; }
/* Great Vault */
.vault-table td { white-space: nowrap; } .vault-table tr.raid-only td { background: rgba(227,179,65,.07); }
.vh-spark { display: inline-flex; gap: 3px; align-items: flex-end; height: 22px; }
.vh-w { display: inline-flex; gap: 1px; align-items: flex-end; height: 22px; } .vh-w i { width: 3px; min-height: 1px; border-radius: 1px; }
.vault-grid { margin-top: 4px; } .vault-box .vault-row { grid-template-columns: 58px 1fr 30px; }
.vault-alt { border-top: 1px solid #333; margin-top: 10px; padding-top: 8px; } .vault-alt-n { font-size: 13px; margin-bottom: 4px; }
.player-tile .vault-box { margin-top: 6px; }
/* Attendance / performance */
.att-table td.att { text-align: center; font-weight: 700; } .att-table td.att.y { color: #7ee787; } .att-table td.att.n { color: #555; }
.att-table tr.bench td { opacity: .75; }
.perf-table td { white-space: nowrap; }
.sim-tabs.upload-kinds { grid-template-columns: 1fr 1fr 1fr; }

/* Season tools, alts */
.tool-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #2c2c2c; }
.tool-row:first-of-type { border-top: 0; }
.reset-box { background: rgba(248,81,73,.05); border: 1px solid rgba(248,81,73,.25); border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.reset-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 5px 0; border-top: 1px solid #2c2c2c; }
.reset-row b { min-width: 110px; } .reset-pick { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; cursor: pointer; }
.alts-card { padding: 10px 16px; } .alt-row { display: flex; gap: 12px; padding: 6px 0; border-top: 1px solid #2c2c2c; align-items: baseline; } .alt-row:first-child { border-top: 0; }
.alt-p { min-width: 140px; } .alt-list { display: flex; flex-wrap: wrap; gap: 6px 14px; } .alt-chip { font-size: 13px; }
.req-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
/* Request forms: fields fill their column and never spill out of the card */
.req-form > * { min-width: 0; }
.req-form input, .req-form select { width: 100%; box-sizing: border-box; min-width: 0; }
.req-form label .hint { display: inline; }
.req-form button { justify-self: start; padding: 6px 16px; }
.req-form label { display: block; } .req-form label input, .req-form label select { display: block; margin-top: 4px; }

.pill.init { margin-left: 8px; color: #79c0ff; border-color: rgba(121,192,255,.5); font-size: 11px; }
.perf-table tr.role-row td { border-top: 0; padding-top: 0; }
.rank-set { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; margin-bottom: 12px; align-items: end; }
.rank-pick { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted-2, #aaa); }
.rank-pick select { background: #1a1a1a; color: #eee; border: 1px solid #3a3a3a; border-radius: 6px; padding: 5px 8px; font: inherit; font-size: 12.5px; width: 100%; }
.rank-off { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 4px 0 8px; font-size: 13px; }

.perf-table td.dimname { opacity: .55; }
.oh { display: inline-block; margin-left: 3px; font-size: 10px; font-weight: 700; color: #3fb950; vertical-align: 1px; }

/* Officer tabs sit under the Officer mode button */
.top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.off-nav { display: flex; justify-content: flex-end; }
.off-nav { margin: 0; padding: 0; border: 0; } .off-nav .off-tabs { display: grid; grid-template-columns: auto auto; gap: 6px; justify-content: end; }
.off-nav a.off-tab { font-size: 13px; padding: 5px 12px; }

.rank-pick span { white-space: nowrap; }
.rank-off { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.rank-lbl { font-size: 12.5px; color: var(--muted-2, #aaa); margin-right: 6px; }
.rank-chip { background: #1e1e1e; color: #bbb; border: 1px solid #3a3a3a; border-radius: 14px; padding: 4px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.rank-chip:hover { border-color: #666; color: #eee; }
.rank-chip.on { background: rgba(227,179,65,.15); border-color: #e3b341; color: #f0c75e; font-weight: 600; }
.rank-sec { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 4px; } .rank-sec h3 { margin: 0; font-size: 14px; }
.rank-table td:first-child { width: 26%; } .rank-table td:nth-child(2) { width: 17%; } .rank-table td:nth-child(3) { width: 15%; } .rank-table td:nth-child(4) { width: 17%; }
.manage-table { margin-top: 8px; } .manage-table tr.bench td { opacity: .7; }
.m-chip { display: inline-flex; align-items: center; gap: 2px; background: #232323; border: 1px solid #3a3a3a; border-radius: 8px; padding: 2px 4px 2px 8px; margin: 2px 4px 2px 0; font-size: 12.5px; }
.m-x { background: none; border: 0; color: #ff7b72; font-size: 15px; line-height: 1; cursor: pointer; padding: 0 4px; }
@media (max-width: 800px) { .rank-set { grid-template-columns: 1fr; } }

.alt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-bottom: 18px; }
.alt-card { background: #1e1e1e; border: 1px solid #333; border-left: 3px solid var(--accent, #555); border-radius: 10px; padding: 10px 12px; }
.alt-top { display: flex; align-items: center; gap: 8px; } .alt-top .cls-ic { width: 26px; height: 26px; border-radius: 6px; }
.alt-name { font-size: 16px; font-weight: 700; }
.alt-info { font-size: 12.5px; color: var(--muted-2, #aaa); margin-top: 6px; } .alt-info b { color: #e6e6e6; }
.alt-of { font-size: 12.5px; color: var(--muted-2, #999); margin-top: 4px; }

.req-help { margin: 0 0 10px; min-height: 4.35em; line-height: 1.45; }
.req-form input, .req-form select { height: 34px; padding: 0 10px; }
.req-form label { line-height: 18px; }
.req-form label > input, .req-form label > select { margin-top: 5px; }

.rank-msg { margin-left: 6px; }

.manage-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.add-form { margin-top: 12px; padding: 12px; background: #1a1a1a; border: 1px solid #333; border-radius: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.add-form button, .add-form .req-msg { grid-column: auto; align-self: end; }

.att-table td.att.on-alt { color: #79c0ff; line-height: 1.05; }
.att-alt { display: block; font-size: 10px; color: #79c0ff; opacity: .85; white-space: nowrap; max-width: 80px; overflow: hidden; text-overflow: ellipsis; margin: 0 auto; }
.att-key { color: #79c0ff; }
.unm-table select { background: #1a1a1a; color: #eee; border: 1px solid #3a3a3a; border-radius: 6px; height: 30px; padding: 0 8px; }
.unm-act { white-space: nowrap; } .unm-act .toggle-btn + .toggle-btn { margin-left: 6px; }

/* ---------- Tidy-up ---------- */
.tip { position: fixed; z-index: 1000; display: none; max-width: 340px; background: #111; color: #e6e6e6; border: 1px solid #444; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 6px 18px rgba(0,0,0,.5); pointer-events: none; }
.info { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #555; color: #aaa; font: italic 700 10.5px Georgia, serif; cursor: help; vertical-align: 1px; margin-left: 4px; }
.info:hover { border-color: #aaa; color: #fff; }
.card-head h2 { font-size: 18px; }
.card-head > .hint { text-align: right; }
.lead { margin: 0 0 10px; color: var(--muted-2, #aaa); font-size: 13px; line-height: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 12.5px; color: var(--muted-2, #aaa); margin: 0 0 10px; }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--card, #1e1e1e); border: 1px solid #2e2e2e; border-radius: 10px; padding: 10px 14px; }
.stat.jump { cursor: pointer; } .stat.jump:hover { border-color: #555; }
.stat .k { font-size: 11px; color: var(--muted-2, #999); text-transform: uppercase; letter-spacing: .5px; }
.stat .v { font-size: 24px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v .of { font-size: 15px; color: #777; font-weight: 600; }
.stat .s { font-size: 11.5px; color: #888; }
.msg-line { margin: -6px 0 12px; font-size: 13px; color: #e3b341; }
.sub-title { margin: 26px 0 10px; font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .6px; border-top: 1px solid #2a2a2a; padding-top: 14px; }
.fold > .card-head { cursor: pointer; margin-bottom: 0; border-bottom-color: transparent; padding-bottom: 0; }
.fold.open > .card-head { margin-bottom: 14px; border-bottom-color: var(--line-2, #333); padding-bottom: 8px; }
.fold-ar { display: inline-block; width: 16px; color: #888; transition: transform .15s; } .fold.open .fold-ar { transform: rotate(90deg); }
.fold { padding-top: 14px; padding-bottom: 14px; }
/* One table style */
.tab .logs-table th, .tab .logs-table td { padding: 7px 8px; font-size: 13px; vertical-align: middle; }
.tab .logs-table th { font-size: 11px; padding-top: 4px; }
.tab .logs-table tbody tr:hover td { background: rgba(255,255,255,.025); }
.tab .logs-table td:first-child { font-weight: 500; }
.tab .logs-table td .hint { font-size: 12px; }
.tab .logs-table .cls-ic { vertical-align: -4px; }

.req-grid.inner .req-card { background: #1a1a1a; border: 1px solid #2e2e2e; margin: 0; box-shadow: none; }
.req-card .req-actions label { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; }
.req-card .req-actions label input { flex: 1; height: 30px; }
.tab .att-table th:nth-child(n+3), .tab .att-table td:nth-child(n+3) { text-align: center; }

.vpips { display: grid; gap: 3px; min-width: 190px; }
.vp-row { display: flex; align-items: center; gap: 4px; font-size: 11.5px; cursor: help; }
.vp-l { width: 50px; color: #999; }
.vp-row i { width: 16px; height: 10px; border-radius: 3px; border: 1px solid #444; background: #222; }
.vp-row i.on { background: var(--c); border-color: var(--c); }
.vp-n { color: #888; margin-left: 4px; white-space: nowrap; }
.wboxes { display: inline-flex; gap: 3px; }
.wb { width: 20px; height: 20px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font: 600 10.5px/1 inherit; font-style: normal; color: #fff;
  background: rgba(163, 53, 238, var(--a, .2)); border: 1px solid rgba(163, 53, 238, .5); cursor: help; }
.wb.none { background: transparent; border: 1px dashed #3a3a3a; }

/* ---------- Raiding & Loot Rules ---------- */
.rules-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; position: sticky; top: 0; z-index: 5; background: var(--bg, #121212); padding: 6px 0; }
.rules-nav a { padding: 5px 12px; border: 1px solid #3a3a3a; border-radius: 999px; font-size: 13px; color: #ddd; cursor: pointer; text-decoration: none; }
.rules-nav a:hover { border-color: #888; color: #fff; }
.rules-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat .v.sm { font-size: 19px; }
#tab-rules .card { scroll-margin-top: 54px; }
#tab-rules h3 { font-size: 15px; margin: 14px 0 6px; color: #f0f0f0; }
#tab-rules h3:first-child { margin-top: 2px; }
#tab-rules h4 { margin: 0 0 4px; font-size: 14.5px; }
#tab-rules p, #tab-rules li { font-size: 13.5px; line-height: 1.55; color: #cfcfcf; }
#tab-rules p { margin: 0 0 8px; }
#tab-rules ul, #tab-rules ol { margin: 0 0 8px; padding-left: 20px; }
#tab-rules li { margin: 2px 0; }
#tab-rules a[data-jump] { cursor: pointer; }
.rules-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 10px 28px; }
.rules-warn { background: rgba(255,123,114,.06); border: 1px solid rgba(255,123,114,.25); border-radius: 10px; padding: 10px 14px; }
.rules-warn h3 { color: #ff9b94 !important; }
.rules-warn-line { margin: 12px 0 0 !important; padding: 8px 12px; border-radius: 8px; background: rgba(255,123,114,.07); color: #ffaaa4 !important; font-weight: 600; }
.rules-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 4px 0 12px; }
.rstep { display: flex; gap: 12px; align-items: flex-start; background: #1a1a1a; border: 1px solid #2e2e2e; border-radius: 10px; padding: 10px 14px; }
.rstep > b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #1f6feb; color: #fff; display: flex; align-items: center; justify-content: center; }
.rstep p { margin: 0 !important; }
.rules-eg { list-style: none; padding-left: 0 !important; }
.rules-eg li { padding: 6px 10px; border-left: 3px solid #555; background: #1a1a1a; border-radius: 0 6px 6px 0; margin: 5px 0; }
.rules-eg li.ok { border-left-color: #3fb950; } .rules-eg li.bad { border-left-color: #f85149; }
.rules-table td:first-child { white-space: nowrap; width: 80px; }
.rules-groups { display: grid; gap: 8px; }
.grp { background: #1a1a1a; border: 1px solid #2e2e2e; border-left: 3px solid #888; border-radius: 10px; padding: 10px 14px; }
.grp p, .grp ul { margin-bottom: 4px !important; }
.grp.core { border-left-color: #e3b341; } .grp.farm { border-left-color: #3fb950; } .grp.fam { border-left-color: #79c0ff; } .grp.alts { border-left-color: #a371f7; }
.grp .tag { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: #2a2a2a; color: #aaa; font-weight: 600; vertical-align: 1px; }
.rules-rolls { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 4px 0 16px; }
.roll { background: #1a1a1a; border: 1px solid #2e2e2e; border-top: 3px solid var(--rc); border-radius: 10px; padding: 10px 12px; }
.roll > b { font: 700 18px ui-monospace, Consolas, monospace; color: var(--rc); }
.roll h4 { margin: 4px 0 2px !important; } .roll p { margin: 0 !important; font-size: 12.5px !important; }
.roll.r101 { --rc: #ff8000; } .roll.r100 { --rc: #a335ee; } .roll.r99 { --rc: #0070dd; } .roll.r50 { --rc: #1eff00; } .roll.r25 { --rc: #9d9d9d; }
.rules-matrix th:nth-child(n+4), .rules-matrix td.p1, .rules-matrix td.p2, .rules-matrix td.tm, .rules-matrix tr.roll-row td:nth-child(n+2) { text-align: center !important; }
.rules-matrix td.p1, .rules-matrix td.p2 { font-size: 15px; }
.rules-matrix td { border-left: 1px solid #262626; }
.rules-matrix td.p1 { color: #7ee787; font-weight: 700; } .rules-matrix td.p2 { color: #e3b341; font-weight: 700; }
.rules-matrix tr.g-core td { background: rgba(227,179,65,.04); }
.rules-matrix tr.roll-row td { font: 600 12.5px ui-monospace, Consolas, monospace; color: #aaa; background: #1a1a1a; }
.rules-big { font-size: 15px !important; color: #fff !important; padding: 8px 12px; background: #1a1a1a; border-radius: 8px; border: 1px solid #333; }
.rules-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 20px; margin-bottom: 8px; }
.rules-links a { display: block; padding: 4px 0; font-size: 13.5px; }
.rules-links a span, .rules-discords a span { color: #888; font-size: 12px; margin-left: 4px; }
.rules-discords { display: flex; flex-wrap: wrap; gap: 6px; }
.rules-discords a { padding: 5px 11px; border: 1px solid #333; border-left: 3px solid var(--c); border-radius: 8px; font-size: 13px; color: #e6e6e6; text-decoration: none; background: #1a1a1a; }
.rules-discords a:hover { border-color: #666; border-left-color: var(--c); }

.rstep, .rstep * { position: static; } .rstep > div { flex: 1; min-width: 0; }
.rules-matrix + .rules-cols, .table-wrap + .rules-cols { margin-top: 14px; }
.stat .v a.addon { color: inherit; text-decoration: underline; text-decoration-color: #555; text-underline-offset: 3px; } .stat .v a.addon:hover { color: #79c0ff; text-decoration-color: #79c0ff; }

/* ---------- Raid Boss Strats ---------- */
.st-nav { display: grid; gap: 8px; margin-bottom: 12px; }
.st-row { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { padding: 6px 13px; border: 1px solid #3a3a3a; border-radius: 999px; font-size: 13px; color: #ddd; cursor: pointer; text-decoration: none; background: #1a1a1a; }
.st-chip.big { font-size: 14.5px; font-weight: 700; padding: 7px 16px; }
.st-chip.on { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.st-chip .n { font-size: 11px; opacity: .7; margin-left: 3px; }
.st-bosses { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 16px; }
.st-boss { position: relative; display: flex; align-items: flex-end; gap: 6px; min-height: 74px; padding: 9px 11px; border: 1px solid #333; border-radius: 10px; background: #1a1a1a; color: #e6e6e6; cursor: pointer; text-decoration: none; overflow: hidden; }
.st-boss.has-art::before { content: ''; position: absolute; inset: 0; background: var(--art) center 30% / cover no-repeat; opacity: .28; transition: opacity .15s; }
.st-boss:hover::before, .st-boss.on::before { opacity: .45; }
.st-boss.on { border-color: #1f6feb; box-shadow: 0 0 0 1px #1f6feb inset; }
.st-boss > * { position: relative; }
.st-boss .num { position: absolute; top: 7px; left: 9px; font-size: 11px; color: #aaa; font-weight: 700; }
.st-boss .nm { font-weight: 700; font-size: 13.5px; line-height: 1.25; text-shadow: 0 1px 3px #000; }
.st-boss .dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #e3b341; }
.st-boss .nn { position: absolute; top: 6px; right: 22px; font-size: 11px; color: #ddd; }
.st-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: 4px; }
.st-tag.todo { background: rgba(227,179,65,.15); color: #e3b341; } .st-tag.draft { background: rgba(121,192,255,.15); color: #79c0ff; }
.sb-head { position: relative; border-radius: 12px; border: 1px solid #2e2e2e; background: #1a1a1a; padding: 22px 22px 18px; margin-bottom: 14px; overflow: hidden; min-height: 120px; display: flex; align-items: flex-end; }
.sb-head.has-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #161616 25%, rgba(22,22,22,.55) 60%, rgba(22,22,22,.2)), var(--art) right 25% / 55% auto no-repeat; }
.sb-title { position: relative; }
.sb-title h2 { margin: 2px 0 8px; font-size: 26px; }
.sb-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #ccc; }
.sb-facts b { color: #888; font-weight: 600; margin-right: 4px; text-transform: uppercase; font-size: 11px; letter-spacing: .4px; }
.sb-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 900px) { .sb-top { grid-template-columns: 1fr; } }
.sb-top > .card { margin-bottom: 14px; }
.cliff-card { border-top: 3px solid #e3b341; }
.notes-card { border-top: 3px solid #79c0ff; }
ol.cliff { counter-reset: c; list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 7px; }
ol.cliff li { counter-increment: c; display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: #f2f2f2; background: #1a1a1a; border: 1px solid #2c2c2c; border-radius: 8px; padding: 8px 10px; }
ol.cliff li::before { content: counter(c); flex: none; width: 24px; height: 24px; border-radius: 50%; background: #e3b341; color: #111; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.sn-note { background: #1a1a1a; border: 1px solid #2c2c2c; border-radius: 8px; padding: 9px 11px; margin-bottom: 8px; }
.sn-text { font-size: 13.5px; line-height: 1.5; color: #e6e6e6; }
.sn-img { display: block; margin-top: 8px; } .sn-img img { max-width: 100%; max-height: 520px; border-radius: 6px; border: 1px solid #333; display: block; }
.sn-tools { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 7px; }
.sn-tools .hint { margin-right: auto; font-size: 11.5px; }
.sn-tools button, .sn-drop button { background: #242424; border: 1px solid #3a3a3a; color: #ccc; border-radius: 6px; padding: 2px 9px; font-size: 12px; cursor: pointer; }
.sn-tools button.danger { color: #ff7b72; border-color: rgba(255,123,114,.4); }
.sn-add { display: inline-block; margin-top: 4px; text-decoration: none; }
.sg-phase h3, .sg-sec h3 { font-size: 15px; margin: 12px 0 6px; }
.sg-phase ul, .sg-sec ul, .wipes ul { margin: 0; padding-left: 20px; }
.sg-phase li, .sg-sec li, .wipes li { font-size: 13.5px; line-height: 1.55; color: #cfcfcf; margin: 3px 0; }
.sg-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.sg-sec { background: var(--card, #1e1e1e); border: 1px solid #2e2e2e; border-radius: 12px; padding: 12px 16px; border-top: 3px solid #888; }
.sg-sec h3 { margin-top: 2px; display: flex; align-items: center; gap: 6px; } .sg-sec h3 .hint { font-weight: 400; font-size: 12px; }
.sg-sec.tank { border-top-color: #79c0ff; } .sg-sec.healer { border-top-color: #7ee787; } .sg-sec.dps { border-top-color: #ff7b72; }
.wipes { border-top: 3px solid #f85149; }
.sg-links { font-size: 13px; color: #999; }
.sn-pick { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.sn-pick label { display: grid; gap: 4px; font-size: 12.5px; color: #aaa; }
.sn-pick select { min-width: 200px; height: 34px; background: #1a1a1a; color: #eee; border: 1px solid #3a3a3a; border-radius: 6px; padding: 0 8px; }
.sn-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; } @media (max-width: 1000px) { .sn-grid { grid-template-columns: 1fr; } }
.sn-grid > .card { margin-bottom: 14px; }
.sn-form { grid-template-columns: 1fr; }
.sn-form textarea { width: 100%; box-sizing: border-box; background: #1a1a1a; color: #eee; border: 1px solid #3a3a3a; border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 13.5px; resize: vertical; }
.sn-drop { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border: 1px dashed #444; border-radius: 8px; padding: 10px; color: #999; font-size: 13px; }
.sn-drop img { max-height: 160px; max-width: 100%; border-radius: 6px; }
.cliff-form { display: grid; gap: 7px; }
.cliff-form label { display: flex; gap: 8px; align-items: center; } .cliff-form label b { width: 22px; height: 22px; border-radius: 50%; background: #e3b341; color: #111; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.cliff-form input { flex: 1; height: 32px; background: #1a1a1a; color: #eee; border: 1px solid #3a3a3a; border-radius: 6px; padding: 0 9px; }
.sb-title h2 .st-tag { display: inline-block; white-space: nowrap; line-height: 1.5; }
.sn-drop label.toggle-btn { display: inline-block; cursor: pointer; }

ol.cliff li .cl-text { flex: 1; min-width: 0; }
.cl-roles { flex: none; display: inline-flex; gap: 3px; align-items: center; margin-left: 6px; padding: 2px 5px; border-radius: 6px; background: #222; cursor: help; }
.cl-roles svg, .cl-roles img { width: 17px; height: 17px; }
.cl-roles.all { opacity: .7; }
.cl-row { display: flex; gap: 8px; align-items: center; }
.cl-row > b { width: 22px; height: 22px; border-radius: 50%; background: #e3b341; color: #111; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.cl-row > input { flex: 1; min-width: 0; height: 32px; background: #1a1a1a; color: #eee; border: 1px solid #3a3a3a; border-radius: 6px; padding: 0 9px; }
.cl-pick { display: inline-flex; gap: 3px; flex: none; }
.cl-pick label { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid #333; border-radius: 6px; cursor: pointer; opacity: .35; }
.cl-pick label:has(input:checked) { opacity: 1; border-color: #666; background: #262626; }
.cl-pick input { display: none; }
.cl-pick svg, .cl-pick img { width: 17px; height: 17px; }

.hero-line { display: flex; gap: 10px; align-items: center; background: linear-gradient(90deg, rgba(255,128,0,.16), rgba(255,128,0,.04)); border: 1px solid rgba(255,128,0,.45); border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; }
.hero-line .hero-ic { width: 30px; height: 30px; border-radius: 6px; border: 1px solid #ff8000; flex: none; }
.hero-line b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #ffae5c; }
.hero-line span { font-size: 14.5px; font-weight: 700; color: #fff; }
.hero-edit .hero-ic { width: 22px; height: 22px; border-radius: 5px; flex: none; }

.diff-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
@media (max-width: 900px) { .diff-tiles { grid-template-columns: 1fr; } }
.diff-tile { background: var(--card, #1e1e1e); border: 1px solid #2e2e2e; border-top: 3px solid #888; border-radius: 12px; padding: 12px 16px; }
.diff-tile.normal { border-top-color: #3fb950; } .diff-tile.heroic { border-top-color: #a335ee; box-shadow: 0 0 0 1px rgba(163,53,238,.35); } .diff-tile.mythic { border-top-color: #ff8000; opacity: .8; }
.dt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.dt-head b { font-size: 16px; } .diff-tile.normal .dt-head b { color: #56d364; } .diff-tile.heroic .dt-head b { color: #c37cff; } .diff-tile.mythic .dt-head b { color: #ffa040; }
.diff-tile ul { margin: 0; padding-left: 18px; } .diff-tile li { font-size: 13px; line-height: 1.5; color: #cfcfcf; margin: 3px 0; }
.hc-tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: #fff; background: #8a2be2; border-radius: 4px; padding: 1px 5px; margin-right: 6px; vertical-align: 1px; cursor: help; }
li.hc { list-style: none; margin-left: -18px; display: flex; gap: 0; align-items: baseline; } li.hc .hc-tag { flex: none; }
.ach-card { border-top: 3px solid #e3b341; }
.ach-req { font-size: 14.5px; font-weight: 600; color: #f2f2f2; margin: 0 0 8px; }
.ach-card h3 { font-size: 14px; margin: 10px 0 4px; }
.ach-how { margin: 0 0 8px; padding-left: 20px; } .ach-how li { font-size: 13.5px; line-height: 1.55; color: #cfcfcf; margin: 3px 0; }
.ach-meta { font-size: 12.5px; color: #999; border-top: 1px solid #2a2a2a; padding-top: 8px; margin: 8px 0 0; }

.ach-pre { background: rgba(227,179,65,.07); border: 1px solid rgba(227,179,65,.3); border-radius: 8px; padding: 8px 12px; margin: 6px 0 4px; }
.ach-pre h3 { margin: 0 0 4px !important; color: #e3b341; }
.ach-pre ul { margin: 0; padding-left: 20px; } .ach-pre li { font-size: 13.5px; line-height: 1.55; color: #e6e6e6; margin: 2px 0; }
.ach-pre p { margin: 0; }

.ab { display: inline-flex; align-items: center; gap: 3px; color: #f0d58a; border-bottom: 1px dotted #a08a4a; cursor: help; white-space: nowrap; }
.ab img { width: 16px; height: 16px; border-radius: 3px; vertical-align: -3px; }
.ab.has-pic::after { content: '\1F4F7'; font-size: 10px; margin-left: 2px; opacity: .8; }
.ab-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.ab.chip { border: 1px solid #333; border-radius: 6px; padding: 4px 8px; background: #1a1a1a; color: #e6e6e6; font-size: 12.5px; }
.ab.chip img { width: 20px; height: 20px; }
.tip .abtip { max-width: 330px; }
.abt-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; } .abt-h img { width: 30px; height: 30px; border-radius: 5px; border: 1px solid #555; } .abt-h b { font-size: 14px; color: #ffd100; }
.abtip p { margin: 0; color: #ddd; font-size: 12.5px; line-height: 1.45; }
.abt-pic { display: block; margin-top: 8px; max-width: 320px; max-height: 220px; border-radius: 6px; border: 1px solid #444; }
.ap-form { display: grid; gap: 10px; }
.ap-form > label { display: grid; gap: 4px; font-size: 12.5px; color: #aaa; }
.ap-form select, .ap-form input[name=imageUrl] { height: 34px; background: #1a1a1a; color: #eee; border: 1px solid #3a3a3a; border-radius: 6px; padding: 0 8px; max-width: 420px; }

.strat-map .map-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.map-panel { margin: 0; background: #141518; border: 1px solid #2c2d33; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.map-panel figcaption { font-weight: 700; font-size: 13.5px; color: #f0d58a; display: flex; align-items: center; gap: 8px; }
.map-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f0c24b; color: #111; font-size: 12px; }
.map-panel svg { width: 100%; height: auto; display: block; }
.map-panel p { margin: 0; font-size: 12.5px; color: #cfcfcf; line-height: 1.45; }
.map-key { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12px; color: #aaa; }
.map-key span { display: inline-flex; align-items: center; gap: 5px; }
.map-key i { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; color: #fff; font-style: normal; font-size: 9px; font-weight: 700; }
.map-key i.dots { border: 1px dashed #8b8b8b; background: rgba(139,139,139,.15); }

.ge-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .ge-groups { grid-template-columns: 1fr; } }
.ge-group { background: #17181c; border: 1px solid #2c2d33; border-top: 3px solid var(--ge); border-radius: 12px; padding: 12px; }
.ge-gh { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ge-gh svg { width: 26px; height: 26px; }
.ge-gh h3 { margin: 0; font-size: 15px; color: var(--ge); }
.ge-count { margin-left: auto; font-size: 12px; color: #999; background: #222; border-radius: 10px; padding: 1px 8px; }
.ge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .ge-grid { grid-template-columns: 1fr; } }
.ge { background: #111215; border: 1px solid #2a2b31; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.ge-top { display: flex; align-items: center; gap: 6px; }
.ge-type { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ge); }
.ge-name { font-size: 14px; font-weight: 700; }
.ge-name .ab img { width: 20px; height: 20px; }
.ge-look { display: flex; align-items: center; gap: 10px; min-height: 64px; background: #0e0f12; border-radius: 8px; padding: 6px 10px; color: #888; font-size: 11.5px; }
.ge-look svg { width: 52px; height: 52px; flex: none; }
.ge-look img { width: 100%; max-height: 170px; object-fit: cover; border-radius: 6px; }
.ge-do { margin: 0; font-size: 12.5px; color: #cfcfcf; line-height: 1.45; }

.ach-pace { --pc: #46a758; border: 1px solid #2c2d33; border-left: 4px solid var(--pc); background: #141518; border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.ach-pace.burn { --pc: #e5484d; } .ach-pace.hold { --pc: #f0c24b; } .ach-pace.slow { --pc: #f08a3c; }
.pace-chip { display: inline-block; font-weight: 800; font-size: 12.5px; color: var(--pc); background: #1f2026; border: 1px solid var(--pc); border-radius: 999px; padding: 2px 10px; }
.ach-pace p { margin: 7px 0 0; font-size: 13px; color: #ddd; line-height: 1.5; }

/* Sims Priority: Major / Minor upgrade filter and the officer setting */
.chip-sep { display: inline-block; width: 1px; height: 22px; background: #444; margin: 0 6px; vertical-align: middle; }
.chip.size-major.on { border-color: #ff8000; color: #ffb066; }
.chip.size-minor.on { border-color: #3987e5; color: #8fbdf5; }
.tier-form { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #333; border-radius: 8px; background: rgba(255,255,255,.02); }
.tier-form label { display: inline-flex; align-items: center; gap: 6px; color: #ccc; }
.tier-form input[type=number] { flex: 0 0 auto; width: 80px; }

/* Housing: guild neighborhood map with plot pins */
.hs-wrap { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.hs-left { flex: 3 1 520px; min-width: 0; }
.hs-panel { flex: 1 1 260px; background: rgba(255,255,255,.03); border: 1px solid #333; border-radius: 10px; padding: 12px 14px; position: sticky; top: 10px; }
.hs-panel h3 { margin: 0; font-size: 18px; }
.hs-ph { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.hs-map { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid #333; line-height: 0; user-select: none; }
.hs-map img { width: 100%; height: auto; display: block; }
.hs-map.editing { cursor: crosshair; outline: 2px dashed #c9a74a; outline-offset: -2px; }
.hs-pin { position: absolute; transform: translate(-50%, -50%); min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; border: 2px solid #111;
  font: 700 11px/20px system-ui, sans-serif; color: #111; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.7); transition: transform .1s; }
.hs-pin:hover { transform: translate(-50%, -50%) scale(1.2); z-index: 3; }
.hs-pin.free { background: #7fd17f; }
.hs-pin.res { background: #f0c050; }
.hs-pin.home { background: #6aa8ff; color: #fff; }
.hs-pin.sel { border-color: #fff; transform: translate(-50%, -50%) scale(1.3); z-index: 4; box-shadow: 0 0 0 3px rgba(201,167,74,.8), 0 1px 6px rgba(0,0,0,.8); }
.hs-pin.moving { animation: hsBlink .8s infinite alternate; }
@keyframes hsBlink { to { opacity: .35; } }
.hs-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 3px 0 8px; vertical-align: -1px; }
.hs-dot.free { background: #7fd17f; } .hs-dot.res { background: #f0c050; } .hs-dot.home { background: #6aa8ff; }
.hs-counts { font-size: 13px; color: #bbb; }
.hs-legend { font-size: 13px; color: #bbb; margin-top: 10px; }
.hs-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; border: 1px solid; white-space: nowrap; }
.hs-pill.free { color: #7fd17f; border-color: #3d6b3d; } .hs-pill.res { color: #f0c050; border-color: #6b5a24; } .hs-pill.home { color: #8fbdf5; border-color: #2f4f7a; }
.hs-owner { font-size: 16px; font-weight: 700; margin: 6px 0 2px; }
.hs-note { margin: 4px 0; color: #ccc; font-style: italic; }
.hs-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.hs-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #aaa; }
.hs-form input, .hs-form select, .hs-offrow input { background: #1a1a1a; border: 1px solid #444; color: #eee; border-radius: 6px; padding: 6px 8px; font: inherit; }
.hs-off { border-top: 1px solid #333; padding-top: 10px; margin-top: 14px; }
.hs-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.toggle-btn.danger { border-color: #7a2f2f; color: #f08a8a; }
.hs-msg { margin: 8px 0 0; font-size: 13px; color: #ddd; }
.hs-nomap { border: 1px dashed #444; border-radius: 10px; padding: 40px 20px; text-align: center; }
.hs-offbar .hs-offrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hs-offbar label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: #ccc; }
.hs-edit-hint { margin: 6px 0 0; }
.hs-table tr[data-hsrow] { cursor: pointer; }
.hs-table tr.sel td { background: rgba(201,167,74,.12); }
.hs-filters { display: inline-flex; gap: 6px; }
