/* Albion build maker */
.ab { padding-top: 26px; }
.ab-setup { padding: 22px; border-radius: var(--radius); display: grid; gap: 18px; margin: 22px 0; }
.ab-field > span { display: block; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.ab-field input[type="text"], .ab-field input[type="number"] { width: 100%; max-width: 520px; }
.ab-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-tags .chip { cursor: pointer; border: 1px solid var(--line); background: var(--card); }
.ab-tags .chip.on { background: rgba(217, 164, 65, .22); border-color: #d9a441; color: #f1c96b; }
.ab-size { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ab-size .seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ab-size .seg button { min-width: 48px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 800; cursor: pointer; }
.ab-size .seg button.on { background: #d9a441; border-color: #d9a441; color: #1d1410; }
.ab-size input { width: 110px; }
.ab-party { display: grid; gap: 14px; }
.ab-party.many { grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); }
.ab-card { padding: 14px 16px 16px; border-radius: 18px; border-color: rgba(217, 164, 65, .3); }
.ab-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ab-num { width: 28px; height: 28px; border-radius: 50%; background: #d9a441; color: #1d1410; font-weight: 900; display: grid; place-items: center; font-size: 13px; flex: none; }
.ab-role { flex: 0 1 220px; min-width: 120px; padding: 8px 12px; }
.ab-wname { color: var(--muted); font-size: 13px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-slots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.ab-slot { position: relative; aspect-ratio: 1; border-radius: 12px; border: 1px dashed var(--line-hi); background: rgba(0, 0, 0, .3); cursor: pointer; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--dim); transition: transform .12s, border-color .2s; }
.ab-slot:hover:not(:disabled) { transform: translateY(-2px); border-color: #d9a441; }
.ab-slot.set { border-style: solid; border-color: rgba(217, 164, 65, .45); }
.ab-slot img { width: 100%; height: 100%; object-fit: contain; }
.ab-slot small { position: absolute; bottom: -2px; left: 0; right: 0; font-size: 10px; font-weight: 800; color: var(--muted); text-shadow: 0 1px 2px #000; pointer-events: none; }
.ab-slot.set small { opacity: 0; }
.ab-slot:hover small { opacity: 1; }
.ab-slot.locked { opacity: .45; cursor: not-allowed; }
.ab-ph { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.ab-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 36px; }
.ab-pick { width: min(760px, calc(100vw - 32px)); max-height: min(80vh, 760px); border: 1px solid var(--line-hi); border-radius: 20px; background: #160c30; color: var(--text); padding: 0; }
.ab-pick::backdrop { background: rgba(5, 2, 14, .7); backdrop-filter: blur(4px); }
.ab-pick-head { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px; background: #160c30; border-bottom: 1px solid var(--line); }
.ab-pick-head h2 { font-size: 16px; margin: 0; flex: 1 1 100%; }
.ab-pick-head input { flex: 1; min-width: 160px; }
.ab-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 16px; }
.ab-pi { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-align: left; cursor: pointer; font-size: 12px; font-weight: 700; line-height: 1.2; }
.ab-pi:hover { border-color: #d9a441; background: rgba(217, 164, 65, .12); }
.ab-pi img { width: 44px; height: 44px; flex: none; }
.ab-pi em { display: block; font-style: normal; color: #d9a441; font-size: 11px; margin-top: 2px; }
@media (max-width: 640px) {
  .ab-slots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ab-party.many { grid-template-columns: 1fr; }
  .ab-wname { flex-basis: 100%; }
}
/* inputs match the maker's */
.ab input:not([type=checkbox]), .ab-pick input { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-hi); background: rgba(10, 4, 30, .55); color: var(--text); font: inherit; font-weight: 600; outline: none; }
.ab input:focus, .ab-pick input:focus { border-color: #d9a441; box-shadow: 0 0 0 3px rgba(217, 164, 65, .22); }
.ab .ab-role { width: auto; padding: 8px 12px; }
.ab .ab-size input { width: 110px; }
.ab .ab-field input[type="text"] { max-width: 520px; }
.ab-pick-head input { width: auto; }
.ab-copy { background: none; border: 0; color: #d9a441; font-weight: 800; font-size: 13px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.ab-copy:hover { background: rgba(217, 164, 65, .12); }

/* published-build bar and community gallery */
.ab-published { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(217, 164, 65, .1); border: 1px solid rgba(217, 164, 65, .35); font-weight: 700; }
.ab-published .muted { font-weight: 500; font-size: 13px; }
.ab-vote.on { background: #d9a441; color: #1d1410; border-color: #d9a441; }
.ab .link-btn { background: none; border: 0; color: var(--muted); font-weight: 700; cursor: pointer; text-decoration: underline; }
.ab-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 16px; border-radius: var(--radius); margin: 8px 0 20px; }
.ab-filters .seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ab-filters .seg button { padding: 8px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 800; cursor: pointer; }
.ab-filters .seg button.on { background: #d9a441; border-color: #d9a441; color: #1d1410; }
.ab-filters .ab-tags { flex-basis: 100%; }
.ab-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ab-gcard { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; text-decoration: none; color: var(--text); border-color: rgba(217, 164, 65, .25); transition: transform .15s, border-color .2s; }
.ab-gcard:hover { transform: translateY(-2px); border-color: #d9a441; }
.ab-gtop { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ab-gtop b { font-family: var(--font-display); font-size: 17px; line-height: 1.2; }
.ab-gsize { flex: none; font-size: 12px; font-weight: 800; color: #f1c96b; }
.ab-gweap { display: flex; flex-wrap: wrap; gap: 4px; min-height: 44px; }
.ab-gweap img { width: 44px; height: 44px; border-radius: 8px; background: rgba(0, 0, 0, .3); }
.ab-gfoot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; }
.ab-gfoot .chip { font-size: 11px; padding: 3px 9px; }
.ab-gmeta { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 700; }
.ab-more { display: flex; justify-content: center; margin: 18px 0 30px; }
