/* Alliance Wars - clan teamwork tabs (client/panels/clanteam.js): quests, shop, help, ranks. Portrait first. */
.ct-seg { flex-wrap: wrap; } /* every tab stays visible: the bar wraps into rows instead of scrolling sideways */
.ct-seg button { flex: 1 0 auto; min-width: calc(20% - 3px); white-space: nowrap; padding: 7px 8px; }
.ct .list { display: flex; flex-direction: column; gap: 8px; }
.ct .card .bar { display: block; margin-top: 6px; }
.ct select, .ct input, .ct textarea { width: 100%; min-height: 40px; }
.ct-notice { padding: 8px 10px; border-radius: 10px; background: rgba(255,196,64,.14); border: 2px solid rgba(255,196,64,.45); color: #f8e7b8; font-weight: 700; word-break: break-word; }
.ct-notice div { margin-top: 4px; white-space: pre-wrap; }
.ct-pin { margin: 6px 8px 0; font-size: 13px; }
.ct-meter { position: relative; margin: 8px 0 4px; }
.ct-meter .bar { display: block; height: 14px; }
.ct-meter > i { position: absolute; top: -3px; width: 3px; height: 20px; margin-left: -2px; background: #6b5a3a; border-radius: 2px; }
.ct-meter > i.on { background: var(--gold); }
.ct-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.ct-tier { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 10px; background: rgba(0,0,0,.25); border: 2px solid #11161f; opacity: .75; }
.ct-tier.on { opacity: 1; border-color: var(--gold); }
.ct-tier .btn { min-height: 40px; }
.ct-task.done { opacity: .7; border-left: 6px solid var(--green); }
.ct-item { display: flex; flex-direction: column; gap: 6px; }
.ct-item .btn { margin-top: auto; min-height: 40px; }
.ct-pact { background: rgba(111,182,255,.2); border-color: #6fb6ff; color: #cfe6ff; font-size: 12px; }
.ct-pact.ask { background: rgba(255,196,64,.16); border-color: var(--gold); color: #f8e7b8; }
.ct-ranks { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-ranks .btn { flex: 1 1 45%; min-height: 40px; }
.ct-ranks .btn.on { background: linear-gradient(#3a4a6b, #2b3752); color: #ffe7a8; }

/* Clan Pass (client/panels/clanteam.js passHTML) */
.cp-head .bar { display: block; height: 14px; margin: 8px 0 4px; }
.cp-prem { border-color: var(--gold2); background: linear-gradient(180deg, rgba(245,198,60,.14), rgba(245,198,60,.03)), var(--card); box-shadow: 0 0 14px rgba(245,198,60,.18); }
.cp-prem.on { border-color: var(--gold); }
.cp-grid { display: flex; flex-direction: column; gap: 6px; }
.cp-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; align-items: stretch; opacity: .7; }
.cp-row.on { opacity: 1; }
.cp-hdr { opacity: 1; font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.cp-hdr span { text-align: center; }
.cp-tier { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: var(--bg2); border: 2px solid #11161f; }
.cp-row.on .cp-tier { border-color: var(--gold); }
.cp-tier b { font-size: 16px; } .cp-tier small { font-size: 11px; color: var(--mute); }
.cp-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 6px; border-radius: 10px; background: rgba(0,0,0,.25); border: 2px solid #11161f; }
.cp-cell.prem { background: linear-gradient(180deg, rgba(245,198,60,.12), rgba(0,0,0,.25)); border-color: #5a4a1e; }
.cp-cell.locked .chips { opacity: .55; }
.cp-cell.got { opacity: .6; }
.cp-cell .chips { justify-content: center; flex-wrap: wrap; }
.cp-cell .btn { min-height: 36px; width: 100%; padding: 0 8px; }
.cp-row { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.5fr); }
.cp-cell .rw-tiles { grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); }
.cp-cell.locked .rw-tiles { opacity: .55; }
