/* Shared tools components only; no overrides to banners, courses or player. */
.tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,248px),1fr));gap:18px;align-items:stretch}
.tools-card{min-width:0;overflow:hidden;border:1px solid #ffffff16;border-radius:10px;background:#121212;display:flex;flex-direction:column;transition:border-color .18s}
.tools-card:hover{border-color:#ffffff32}
.tools-art{position:relative;aspect-ratio:16/9;overflow:hidden;background:#0d0d0d;border-bottom:1px solid #ffffff0d;display:grid;place-items:center}
.tools-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:1}
.tools-art-fallback{color:#5c5953;display:grid;place-items:center}
.tools-art-fallback svg{width:36px;height:36px}
.tools-copy{padding:17px;display:flex;flex-direction:column;flex:1;min-width:0}
.tools-copy h2,.tools-copy h3{font:600 15px/1.45 Inter,sans-serif;letter-spacing:-.25px;color:#f4f2ee;margin:0 0 7px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tools-copy>p{font:400 12px/1.7 Inter,sans-serif;color:#a8a59f;margin:0 0 18px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-height:40px}
.tools-open{display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;color:#eeece7;border-top:1px solid #ffffff12;padding-top:13px;margin-top:auto;font:500 11px/1.4 Inter,sans-serif;min-height:34px}
.tools-open>span:last-child{font-size:17px;color:#b7ae9c}
.tools-open:focus-visible,.tools-button:focus-visible{outline:2px solid #b9af98;outline-offset:4px}
.tools-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 22px}
.tools-search{position:relative;display:flex;align-items:center;gap:10px;width:min(100%,360px);border:1px solid #ffffff1c;background:#101010;border-radius:7px;padding:0 13px;color:#8e8a82}
.tools-search svg{width:16px;height:16px;flex-shrink:0}
.tools-search input{min-width:0;width:100%;height:40px;outline:0;border:0!important;box-shadow:none!important;background:transparent!important;color:#f4f2ee;font:400 12px Inter,sans-serif;padding:0!important}
.tools-search:focus-within{border-color:#b9af98}
.tools-count{color:#96938d;font-size:11px;white-space:nowrap}
.tools-state{grid-column:1/-1;text-align:center;border:1px solid #ffffff14;border-radius:10px;background:#101010;padding:54px 22px;color:#aaa69f;font-size:13px}
.tools-state>svg{width:30px;height:30px;color:#b9af98;margin-bottom:12px}
.tools-state h2,.tools-state h3{font-size:16px;color:#eeece7;margin:0 0 9px;letter-spacing:-.3px}
.tools-state p{font-size:12px;line-height:1.7;margin:0 auto 17px;max-width:400px}
.tools-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 13px;border:1px solid #ffffff26;background:#1b1b19;color:#eeece7;border-radius:6px;cursor:pointer;font:500 11px Inter,sans-serif;text-decoration:none}
.tools-button:hover:not(:disabled){background:#262623}
.tools-button:disabled{opacity:.38;cursor:default}
.tools-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:23px 0 0;color:#96938d;font-size:11px}
.tools-pagination>div{display:flex;align-items:center;gap:12px}
.tools-admin-status{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 15px;border-bottom:1px solid #ffffff0c;color:#8d8982;font-size:10px}
.tools-admin-status .tools-status{color:#c8c1b1}
.tools-admin-status .tools-status.is-draft{color:#8d8982}
.tools-admin-actions{display:flex;align-items:center;gap:7px;margin-top:auto;flex-wrap:wrap}
.tools-admin-actions .tools-button{flex:1;font-size:10px}
.tools-delete{color:#dfb6ae}
#admin-dialog.tools-dialog{width:min(580px,calc(100vw - 32px))}
.tools-form{display:flex;flex-direction:column;gap:18px}
.tools-steps{display:flex;gap:12px;padding:0 0 15px;border-bottom:1px solid #ffffff14;color:#77736c;font-size:11px}
.tools-steps span{display:flex;align-items:center;gap:7px}
.tools-steps i{font-style:normal;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;border:1px solid #ffffff21;font-size:10px}
.tools-steps .is-active{color:#ede9df}
.tools-steps .is-active i{border-color:#b9af98;background:#b9af981c}
.tools-form [data-tools-step]{display:flex;flex-direction:column;gap:17px}
.tools-form [hidden]{display:none!important}
.tools-form label:not(.checkbox){display:flex;flex-direction:column;gap:8px;font-size:12px;color:#d7d3ca}
.tools-form textarea{min-height:112px;resize:vertical;max-height:180px}
.tools-form .tools-help{margin:0;color:#969086;font-size:11px;line-height:1.7}
.tools-form .tools-upload{display:grid;grid-template-columns:148px minmax(0,1fr);gap:16px;align-items:center}
.tools-form .tools-upload-preview{aspect-ratio:16/9;display:grid;place-items:center;border:1px solid #ffffff1c;background:#101010;overflow:hidden;border-radius:7px}
.tools-upload-preview img{width:100%;height:100%;object-fit:contain}
.tools-upload-preview svg{width:28px;height:28px;color:#8a8274}
.tools-form .tools-upload input{width:100%;font-size:10px;padding:9px}
.tools-form .tools-form-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tools-form .tools-form-bottom label{font-size:11px}
.tools-form .tools-order{max-width:110px}
.tools-form .tools-order input{width:100%}
.tools-form .form-error{margin:0}
.tools-form .dialog-actions{margin-top:0}
.tools-confirm p{font-size:13px;line-height:1.8;overflow-wrap:anywhere;color:#b8b2a7}
.tools-confirm strong{color:#f4f2ee}
@media(max-width:600px){.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tools-copy{padding:13px}.tools-copy h2,.tools-copy h3{font-size:13px}.tools-copy>p{font-size:11px}.tools-toolbar{align-items:stretch;flex-direction:column;gap:10px}.tools-search{width:100%}.tools-count{align-self:flex-end}.tools-pagination{font-size:10px}.tools-pagination>div{gap:8px}.tools-admin-actions .tools-button{padding:7px;min-width:0}.tools-form .tools-upload{grid-template-columns:1fr}.tools-form .tools-upload-preview{max-width:210px}.tools-form .tools-form-bottom{align-items:flex-start}.tools-steps{font-size:10px}}
@media(max-width:380px){.tools-grid{grid-template-columns:1fr}.tools-pagination{flex-direction:column;align-items:flex-start}}
