/* Admin tools inherit the game's compact white and green interface. */
#admin-view{--muted:#626e68;color:#16201c}
#admin-view .page-heading h1{font-size:26px}
#admin-view .intro,#admin-view .small-note{color:#626e68}
#admin-view .field input::placeholder,#admin-action-form input::placeholder{color:#64726b}
#admin-view button:focus-visible,#admin-view input:focus-visible,#admin-view select:focus-visible,#admin-view summary:focus-visible,#admin-action-form input:focus-visible,#admin-action-form button:focus-visible{outline:3px solid #11694f;outline-offset:3px}
.admin-search-actions{display:flex;align-items:flex-end;gap:12px}
.admin-search-actions .field{flex:1;margin:0;min-width:0}
.admin-search-actions .primary{width:auto;min-width:98px;background:#087b60}
#twins-search .primary:not(:disabled){background:#087b60;color:#fff}
.admin-count{font-size:14px;color:#626e68;font-weight:400;margin-left:6px}
.admin-player-row{display:flex;gap:12px;align-items:center;width:100%;text-align:left;padding:16px 0;border-bottom:1px solid #e4ebe7}
.admin-player-row:hover{background:#f3f8f5}
.admin-player-info{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0;overflow-wrap:anywhere}
.admin-player-info strong{font-size:15px}
.admin-player-info>span{font-size:12px;color:#526059;line-height:1.5}
.admin-chevron{font-size:24px;color:#67766e}
.admin-badge{display:inline-block;font-size:12px;font-weight:600;padding:3px 8px;border-radius:6px;background:#fff0ec;color:#a33125}
.admin-badge.is-active{background:#eaf6ef;color:#206a47}
.admin-pagination{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:20px 0}
.admin-pagination>span{font-size:13px;color:#526059}
.secondary-button,.danger-button{min-height:46px;padding:12px 14px;border-radius:10px;font-size:14px;font-weight:600;line-height:1.4}
.secondary-button{background:#eaf5ef;color:#186247}
.secondary-button:hover{background:#dceee4}
.danger-button{background:#fff0ec;color:#a33125}
.danger-button:hover{background:#ffe2da}
.secondary-button:disabled,.danger-button:disabled{opacity:.5;cursor:not-allowed}
.admin-danger-zone{border-top:1px solid #e4ebe7;margin-top:30px;padding-top:22px}
.admin-danger-zone h2{font-size:17px;margin:0 0 10px}
.admin-danger-zone p,.admin-copy{font-size:13px;line-height:1.65;color:#526059}
.admin-danger-zone .danger-button{width:100%;margin:8px 0}
.admin-identity{margin:8px 0 22px;overflow-wrap:anywhere}
.admin-identity h2{font-size:23px;margin:0 0 6px}
.admin-identity p{font-size:13px;color:#526059;line-height:1.65;margin:0 0 10px}
.admin-facts{margin:0}
.admin-facts>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:14px;padding:11px 0;border-bottom:1px solid #e4ebe7;font-size:13px;line-height:1.5}
.admin-facts dt{color:#526059}
.admin-facts dd{margin:0;text-align:right;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.admin-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 24px}
.admin-details{border-bottom:1px solid #e4ebe7;padding:14px 0}
.admin-details summary{cursor:pointer;font-size:14px;font-weight:600;line-height:1.5;padding:4px 0}
.admin-history{padding:15px 0;border-bottom:1px solid #e4ebe7;overflow-wrap:anywhere}
.admin-history strong{display:block;font-size:14px;line-height:1.5}
.admin-history span{display:block;font-size:12px;line-height:1.65;color:#526059;margin-top:5px}
.admin-history p{font-size:13px;margin:8px 0;line-height:1.5}
.admin-notice{padding:14px;background:#fff5dd;border-radius:12px;color:#725009;margin:12px 0}
.admin-notice p{font-size:13px;line-height:1.5;margin:0 0 10px}
#admin-action-form>[type="submit"],.admin-cancel{width:100%}
#admin-action-form .primary{background:#087b60}
@media(max-width:360px){#admin-view{padding-left:16px;padding-right:16px}.admin-action-grid{grid-template-columns:1fr}.admin-search-actions{gap:8px}}
.admin-access{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid #e5ebe7}
.admin-access h2{font-size:19px;margin:0 0 8px}
.admin-access>p{font-size:13px;line-height:1.6;color:#53665c}
.admin-access .primary{width:100%;min-height:44px}
.admin-access .primary:not(:disabled){background:#087b60;color:#fff}
[data-theme=dark] .admin-access{border-color:#34473d}
[data-theme=dark] .admin-access>p{color:#adbbb4}
.admin-tabs{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 20px;border-bottom:1px solid #e4ebe7}
.admin-tabs button{flex:1;min-height:44px;padding:10px 4px;font-size:13px;color:#526059;border-bottom:2px solid transparent}
.admin-tabs button[aria-current=page]{color:#087657;border-color:#087657;font-weight:650}
.admin-promo-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.admin-promo-fields .field{min-width:0}
.admin-promo-row{padding:18px 0;border-bottom:1px solid #e4ebe7;overflow-wrap:anywhere}
.admin-promo-row h3{font-size:18px;margin:0 0 10px}
.admin-promo-row p{font-size:13px;line-height:1.6;margin:6px 0;color:#526059}
.admin-promo-row button{margin-top:8px}
[data-theme=dark] :is(.admin-tabs,.admin-promo-row){border-color:#34473d}
[data-theme=dark] :is(.admin-tabs button,.admin-promo-row p){color:#adbbb4}
[data-theme=dark] .admin-tabs button[aria-current=page]{color:#82d9b3;border-color:#82d9b3}

.admin-boss-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.admin-boss-fields .field{min-width:0;margin:0}
.admin-boss-fields input{width:100%;min-width:0;box-sizing:border-box}
.admin-boss-reward{grid-column:1/-1}
.admin-boss .primary{white-space:normal}
.admin-boss-appearance{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:center;margin:16px 0}
.admin-boss-appearance img{display:block;width:120px;height:140px;object-fit:contain}
.admin-boss-appearance .field{min-width:0;margin:0}
.admin-boss-appearance select{width:100%;min-width:0;box-sizing:border-box}
@media(max-width:520px){.admin-boss-appearance{grid-template-columns:minmax(0,1fr);gap:8px}.admin-boss-appearance img{width:144px;height:144px;justify-self:center}}
@media(max-width:360px){.admin-boss-fields{grid-template-columns:minmax(0,1fr)}.admin-tabs button{font-size:12px}}

.admin-tabs button{flex:1 0 28%}
#admin-view textarea{width:100%;min-height:160px;resize:vertical;box-sizing:border-box;padding:12px;border:1px solid #c7d4cc;border-radius:10px;font:inherit;font-size:15px;line-height:1.6;background:#fff;color:#16201c}
#admin-view textarea::placeholder{color:#64726b}
#admin-view textarea:focus-visible{outline:3px solid #11694f;outline-offset:3px}
.broadcast-text-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#526059;line-height:1.5}
#broadcast-length{white-space:nowrap;font-variant-numeric:tabular-nums}
.broadcast-preview{margin-top:20px;font-size:14px}
.broadcast-preview summary,.broadcast-history-message summary{cursor:pointer;padding:8px 0;font-weight:600}
.broadcast-message{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6;margin-top:12px;padding:16px;background:#f0f7f3;border-radius:12px;color:#16201c}
.broadcast-game-link{display:block;text-align:center;padding:12px;color:#186247;font-size:13px;font-weight:600}
.broadcast-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.broadcast-actions .primary{margin:0;font-size:14px;padding:12px;line-height:1.4}
.broadcast-history-heading,.broadcast-row-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.broadcast-history-heading h2{font-size:19px;margin:0}
.broadcast-history-heading button{font-size:13px;min-height:44px}
.broadcast-history-row{padding:20px 0;border-bottom:1px solid #e4ebe7}
.broadcast-row-heading{flex-wrap:wrap}
.broadcast-row-heading h3{font-size:15px;margin:0}
.broadcast-date{font-size:12px;color:#526059;line-height:1.6;margin:8px 0}
.broadcast-history-message{font-size:13px}
.broadcast-history-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.broadcast-progress-label{font-size:12px;color:#526059;margin:14px 0 6px}
.broadcast-history-row progress{width:100%;height:6px;accent-color:#087b60;display:block}
.broadcast-counts{margin:12px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;font-size:12px}
.broadcast-counts div{display:flex;justify-content:space-between;gap:8px}
.broadcast-counts dt{color:#526059}
.broadcast-counts dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
.broadcast-confirm-message{max-height:35vh;overflow:auto;margin-bottom:16px}
[data-theme=dark] #admin-view textarea{background:#1c2e24;color:#e5eee8;border-color:#486251}
[data-theme=dark] #admin-view textarea::placeholder{color:#adbbb4}
[data-theme=dark] .broadcast-game-link{color:#82d9b3}
[data-theme=dark] .broadcast-message{background:#24382c;color:#e5eee8}
[data-theme=dark] :is(.broadcast-text-meta,.broadcast-counts dt,.broadcast-date,.broadcast-progress-label){color:#adbbb4}
[data-theme=dark] .broadcast-history-row{border-color:#34473d}
@media(max-width:360px){.broadcast-actions{grid-template-columns:1fr}.broadcast-text-meta{flex-wrap:wrap}}
