/* Private tech editor — isolated visual system, no leaderboard styling. */
.admin-main{padding:35px 0 80px;min-height:75vh}
.admin-hero{max-width:840px;margin-bottom:28px}
.admin-hero h1{font-size:clamp(39px,6vw,67px);line-height:1.1;letter-spacing:-.065em;margin:10px 0 14px}
.admin-hero p{font-size:14px;line-height:1.8;color:#a9bdd7;max-width:740px}
.admin-hero a{color:#91dcff!important;text-decoration:underline!important}
.admin-card{background:linear-gradient(155deg,rgba(17,31,52,.94),rgba(10,20,37,.93));border:1px solid rgba(160,200,246,.19);padding:24px;border-radius:21px;min-width:0}
.admin-login{max-width:730px;padding:30px}
.admin-login h2{font-size:26px;letter-spacing:-.04em;margin:0 0 10px}
.admin-login p{color:#9db5d0;font-size:13px;line-height:1.75}
.admin-login code{color:#d6e9ff;background:#20324e;padding:3px 5px;border-radius:5px}
.login-form label,.field-label{display:block;color:#b6cbe5;font-size:12px;font-weight:800;margin:16px 0 7px}
.login-row{display:flex;gap:9px}
body[data-page="tech"] .admin-card input,body[data-page="tech"] .admin-card select,body[data-page="tech"] .admin-card textarea{width:100%;color:#edf6ff;background:#0b192b;border:1px solid rgba(166,209,253,.24);border-radius:11px;padding:12px 13px;outline:none;font-size:13px;min-width:0}
body[data-page="tech"] .admin-card input:focus,body[data-page="tech"] .admin-card select:focus,body[data-page="tech"] .admin-card textarea:focus{border-color:#8bddff;box-shadow:0 0 0 3px rgba(125,210,255,.1)}
body[data-page="tech"] .admin-card input::placeholder,body[data-page="tech"] .admin-card textarea::placeholder{color:#70849e}
body[data-page="tech"] .admin-card select{cursor:pointer}
body[data-page="tech"] .login-row input{flex:1}
body[data-page="tech"] .login-row button,.save-button{border:0;border-radius:10px;padding:10px 20px;background:linear-gradient(110deg,#81ddff,#a3afff);color:#071525;font-size:13px;font-weight:850;min-height:43px;white-space:nowrap}
body[data-page="tech"] button:disabled{opacity:.45;cursor:not-allowed}
.admin-message{min-height:20px;margin:15px 0 0;font-size:12px;color:#aac3e0}
.admin-message.error{color:#ffb5b9}.admin-message.success{color:#86e5c6}
.admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:21px}
.admin-toolbar h2{font-size:31px;letter-spacing:-.05em;margin:4px 0}
.admin-toolbar p{color:#8ea7c7;font-size:12px;margin:0}
.toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.toolbar-actions a,.toolbar-actions button{border:1px solid rgba(148,197,250,.22);border-radius:9px;padding:10px 12px;color:#b8daff!important;font-size:12px;font-weight:800;background:rgba(128,190,242,.07)}
.toolbar-actions button:hover,.toolbar-actions a:hover{background:rgba(128,190,242,.15)}
.admin-layout{display:grid;grid-template-columns:minmax(270px,.95fr) minmax(0,1.3fr);gap:17px;align-items:start}
.pane-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.pane-title h3{font-size:20px;letter-spacing:-.045em;margin:0}
.mini-button{border:1px solid rgba(112,211,254,.32);border-radius:9px;background:rgba(100,188,240,.13);color:#b1e9ff;padding:8px 12px;font-size:12px;font-weight:850}
.list-count{color:#7f98b5;font-size:11px;font-weight:760;margin:18px 0 10px}
.admin-entry-list{display:flex;flex-direction:column;gap:7px;max-height:66vh;overflow:auto;padding:0 4px 2px 0}
body[data-page="tech"] .admin-entry{display:block;width:100%;text-align:left;background:rgba(9,21,38,.82);border:1px solid rgba(170,200,238,.13);border-radius:11px;padding:12px;color:#eef5ff}
body[data-page="tech"] .admin-entry:hover,body[data-page="tech"] .admin-entry.active{border-color:rgba(133,216,255,.6);background:rgba(33,70,101,.25)}
.admin-entry strong{display:block;font-size:13px;font-weight:840;line-height:1.5}
.admin-entry small{display:block;font-size:11px;color:#849bb7;margin-top:4px;overflow-wrap:anywhere}
.admin-entry .entry-status{display:inline-block;margin-top:9px;font-size:10px}
.list-empty{color:#8fa7c2;font-size:12px;padding:20px;text-align:center;border:1px dashed rgba(165,199,240,.18);border-radius:12px}
.editing-id{font-size:10px;color:#6889ab;word-break:break-all;max-width:250px;text-align:right}
.field-help{margin:6px 0 16px;font-size:11px;color:#819bb9}
#entry-form .field-label{margin-top:18px}
#entry-form .field-label:first-of-type{margin-top:0}
.form-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}
.delete-button,.reset-button{border-radius:10px;padding:10px 12px;background:transparent;font-size:12px;font-weight:820;min-height:43px}
.delete-button{color:#ffb4c1;border:1px solid rgba(255,149,171,.25)}
.reset-button{color:#9db6d3;border:1px solid rgba(165,202,248,.2)}
.delete-button:hover{background:rgba(255,136,153,.08)}
.reset-button:hover{background:rgba(162,210,249,.07)}
.admin-note{margin-top:25px;border-top:1px solid rgba(173,204,246,.11);padding-top:19px}
.admin-note strong{font-size:12px;color:#dcecff}
.admin-note p{font-size:12px;color:#8ca4c1;margin:6px 0 0;line-height:1.75}
[hidden]{display:none!important}
@media(max-width:780px){.admin-layout{grid-template-columns:1fr}.admin-entry-list{max-height:45vh}.admin-main{padding-top:24px}}
@media(max-width:480px){.admin-card{padding:19px}.login-row{flex-wrap:wrap}.login-row button{width:100%}.admin-hero h1{font-size:39px}}

/* Related-style multi-select, grouped by the existing rarity roster. */
.style-picker-heading{display:flex;justify-content:space-between;align-items:end;gap:12px}
.style-picker-heading .field-label{margin-bottom:7px}
.style-picker-count{font:700 11px var(--mono,monospace);color:#8bdcff;white-space:nowrap}
.selected-style-chips{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 12px;min-height:32px;align-items:center}
body[data-page="tech"] .selected-style-chips .style-chip{border:1px solid rgba(130,212,253,.32);border-radius:8px;padding:7px 10px;background:rgba(95,166,226,.16);color:#d7edff;font:700 11px/1.2 var(--body,system-ui);cursor:pointer}
body[data-page="tech"] .selected-style-chips .style-chip:hover{background:rgba(111,194,241,.26)}
.style-no-selection{font-size:12px;color:#8199b6}
.style-picker-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:9px 0 10px;color:#7e99b9;font-size:11px}
body[data-page="tech"] #clear-styles{padding:5px 10px;background:transparent;border:1px solid rgba(163,208,251,.23);border-radius:7px;color:#a3d6f9;font-size:11px;cursor:pointer}
.style-picker-groups{max-height:330px;overflow:auto;padding:10px;background:rgba(4,13,27,.38);border:1px solid rgba(161,198,246,.17);border-radius:12px;scrollbar-color:#38536f transparent}
.style-choice-group{border:0;padding:0;margin:0 0 15px;min-width:0}
.style-choice-group:last-child{margin-bottom:0}
.style-choice-group legend{padding:0 0 8px;color:#8aaacb;font:700 10px var(--mono,monospace);text-transform:uppercase;letter-spacing:.1em}
.style-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.style-choice{display:flex;align-items:center;gap:8px;min-width:0;padding:9px;border:1px solid rgba(169,203,244,.13);border-radius:9px;background:rgba(20,36,58,.65);color:#c3d7ed;font-size:12px;line-height:1.35;cursor:pointer;transition:background .15s,border-color .15s}
.style-choice:hover{background:rgba(44,73,106,.65);border-color:rgba(135,207,248,.4)}
.style-choice.is-selected{border-color:rgba(126,214,255,.65);background:rgba(67,139,190,.2);color:#f2faff}
body[data-page="tech"] .style-choice input{width:15px;height:15px;min-width:15px;accent-color:#81d8ff;cursor:pointer;margin:0;padding:0;box-shadow:none}
.style-choice:has(input:disabled){opacity:.47;cursor:not-allowed}
.custom-style-row{display:flex;gap:7px;margin-top:10px}
body[data-page="tech"] .custom-style-row input{flex:1}
body[data-page="tech"] #add-custom-style{border:1px solid rgba(144,202,255,.3);border-radius:10px;color:#c7e7ff;background:#1c3451;padding:9px 14px;font-size:12px;font-weight:750;white-space:nowrap;cursor:pointer}
body[data-page="tech"] #add-custom-style:hover{background:#2a4b70}
@media(max-width:540px){.style-choice-grid{grid-template-columns:1fr 1fr}.style-choice{font-size:11px;padding:8px 6px}.style-picker-groups{max-height:295px}.custom-style-row{flex-wrap:wrap}body[data-page="tech"] #add-custom-style{flex:1}}
@media(max-width:380px){.style-choice-grid{grid-template-columns:1fr}.style-picker-heading{align-items:start;flex-direction:column;gap:0}}
@media(prefers-reduced-motion:reduce){.style-choice{transition:none}}

/* Admin-only gameplay metadata editor. All optional fields start unrated. */
.assessment-editor{margin-top:28px;padding:20px;border:1px solid rgba(143,191,251,.2);border-radius:16px;background:rgba(6,18,36,.43)}
.assessment-title-row{display:flex;justify-content:space-between;align-items:center;gap:13px;flex-wrap:wrap}
.assessment-title-row h4{font-size:19px;letter-spacing:-.035em;margin:2px 0 0}
#overall-preview{font-size:12px;font-weight:900;color:#b7e6ff;background:rgba(102,170,230,.12);border:1px solid rgba(116,190,255,.25);padding:7px 11px;border-radius:9px}
.rating-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:17px 0 20px}
.rating-control{display:flex;flex-direction:column;gap:6px;min-width:0}
.rating-label{font-size:12px;font-weight:800;color:#c9dbef}
.rating-control small{font-size:10px;color:#809dbd;line-height:1.5}
body[data-page="tech"] .rating-control select{padding:9px 11px}
.tag-editor{border:0;border-top:1px solid rgba(163,201,243,.13);margin:4px 0 0;padding:18px 0 0;min-width:0}
.tag-editor>legend{font-size:12px;color:#c7ddf6;font-weight:850;padding:0 0 7px}
.tag-picker{display:grid;gap:14px}
.tag-group{border:0;padding:0;margin:0;min-width:0}
.tag-group legend{font-size:11px;color:#88add4;font-weight:800;margin-bottom:7px}
.tag-options{display:flex;flex-wrap:wrap;gap:7px}
.tag-choice{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;background:rgba(118,163,215,.085);border:1px solid rgba(141,185,232,.16);border-radius:8px;color:#b9cee6;cursor:pointer;font-size:11px;line-height:1.3}
.tag-choice:has(input:checked){background:rgba(84,175,232,.19);border-color:rgba(117,207,252,.49);color:#e6f8ff}
body[data-page="tech"] .tag-choice input{accent-color:#80d9ff;width:14px;height:14px;min-width:14px;margin:0;padding:0;cursor:pointer;box-shadow:none}
body[data-page="tech"] #entry-counterplay{min-height:118px;resize:vertical}
@media(max-width:520px){.rating-fields{grid-template-columns:1fr}.assessment-editor{padding:14px}.assessment-title-row{align-items:flex-start}}
