/* Admin section (owner only) */
.tab-admin { border-color: #ff5b6e55; }
.btn-danger { background: var(--red); color: #fff; }

.adm { display: flex; flex-direction: column; gap: 14px; }
.adm h4 { font-family: var(--font-display); font-size: 16px; display: flex; align-items: center; gap: 8px; }
.adm h4 .muted { font-family: var(--font); font-size: 12.5px; font-weight: 500; }
.adm code { background: var(--bg-2); padding: 1px 6px; border-radius: 5px; color: var(--pink); font-size: 12px; }
.adm-note { font-size: 13px; }
.adm-note b { color: var(--text); }
.adm-lbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.adm-box { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.adm-row { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-row > .select, .adm-row > .input { flex: 1 1 140px; min-width: 0; }
.adm-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.adm-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); flex: 1 1 140px; }
.adm-inline .input { flex: 1; min-width: 70px; }
.adm-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.adm-check input { accent-color: var(--pink); width: 16px; height: 16px; }

.adm-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.adm-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.adm-form label.wide { grid-column: 1 / -1; }
.adm-form label.adm-check { flex-direction: row; font-weight: 500; }
.adm-more summary { cursor: pointer; font-size: 13px; color: var(--text-2); margin-bottom: 10px; }

.adm-target { display: flex; align-items: center; gap: 18px; padding: 16px 18px; flex-wrap: wrap; }
.adm-target-main { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.adm-all { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.adm-all span:last-child { display: flex; flex-direction: column; }
.adm-all b { font-size: 14px; }
.adm-all small { font-size: 12px; color: var(--text-3); }

.adm-pick { position: relative; }
.adm-pick .input { width: 100%; }
.adm-sugg { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 300px; overflow: auto; padding: 4px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.adm-sugg button { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; width: 100%; padding: 8px 10px; border-radius: var(--r-sm); text-align: left; color: var(--text); background: none; border: 0; cursor: pointer; font: inherit; }
.adm-sugg button:hover, .adm-sugg button:focus { background: var(--panel); }
.adm-sugg span { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-sugg small { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.adm-sugg p { padding: 8px 10px; font-size: 13px; }

.adm-emo { width: 20px; height: 20px; vertical-align: -4px; object-fit: contain; }
.adm-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.adm-item input { position: absolute; opacity: 0; pointer-events: none; }
.adm-item span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; font-size: 13px; height: 100%; }
.adm-item span b { font-size: 12.5px; }
.adm-item span small { font-size: 11px; color: var(--text-3); }
.adm-item input:checked + span { border-color: var(--pink); background: #ff4db31a; }
.adm-item input:focus-visible + span { outline: 2px solid var(--purple); }

.adm-card { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-sm); border: 1px solid var(--line); border-left: 3px solid var(--rc, var(--line)); background: var(--bg-2); min-width: 0; }
.adm-card img { width: 34px; height: 48px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.adm-card span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.adm-card b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-card small { font-size: 11.5px; color: var(--text-3); }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; max-height: 460px; overflow: auto; }
.adm-cardq { max-width: 260px; }

.adm-kvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.adm-player { display: flex; align-items: center; gap: 14px; padding: 16px 18px; flex-wrap: wrap; }
.adm-player img { width: 56px; height: 56px; border-radius: 50%; }
.adm-player > div { flex: 1 1 260px; }
.adm-player h3 { font-family: var(--font-display); font-size: 20px; }
.adm-player p { font-size: 13px; }
.adm-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.adm-list li { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 8px 10px; border-radius: var(--r-sm); background: var(--bg-2); font-size: 13px; }
.adm-list li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.adm-danger { flex-direction: row; align-items: center; justify-content: space-between; border-color: #ff5b6e44; flex-wrap: wrap; }
.adm-danger .btn { color: var(--red); border-color: #ff5b6e66; }

.adm-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; }
.adm-log li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--bg-2); border-left: 3px solid var(--green); }
.adm-log li.error { border-left-color: var(--red); }
.adm-log li.muted { border-left-color: var(--line); }
.adm-log small { color: var(--text-3); white-space: nowrap; }

.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table td small { display: block; color: var(--text-3); font-size: 11.5px; }
.adm-tactions { white-space: nowrap; text-align: right; }
.adm-tactions .btn { margin-left: 4px; }
.adm-st { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; font-family: var(--font); }
.adm-st.ok { background: #3ddc9722; color: var(--green); }
.adm-st.bad { background: #ff5b6e22; color: var(--red); }
.adm-st.off { background: var(--bg-2); color: var(--text-3); }

.adm-raid { flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
.adm-raid > img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--r); }
.adm-raid-main { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.adm-hp { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); }
.adm-hp span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--pink)); }
