:root{font-family:"DM Sans","Noto Sans SC","Microsoft YaHei",sans-serif;color:#232638;background:#f6f7fb;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit;text-decoration:none}
.layout{display:flex;min-height:100vh}.sidebar{width:242px;background:#fff;border-right:1px solid #ececf4;padding:29px 18px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:3}
.brand{display:flex;gap:11px;align-items:center;padding:0 10px 38px}.brand-icon{width:42px;height:42px;border-radius:14px;background:#7864df;color:white;display:grid;place-items:center;font-size:23px;box-shadow:0 7px 16px #806ce353}.brand strong{display:block;font-size:17px;letter-spacing:1px}.brand small{font-size:10px;letter-spacing:1.6px;color:#a6a6b8}
.nav-label{font-size:11px;color:#b1b1c2;letter-spacing:1px;margin:12px 12px}.nav{display:grid;gap:5px}.nav button{display:flex;align-items:center;gap:12px;border:0;background:transparent;text-align:left;color:#85869a;padding:12px 14px;border-radius:10px;font-size:14px;font-weight:600}.nav button.active,.nav button:hover{background:#f0edff;color:#7560d7}.nav-icon{font-size:18px;width:20px;text-align:center}.side-bottom{margin-top:auto;padding:17px 12px;border-top:1px solid #f0f0f5;font-size:12px;color:#a4a4b5;line-height:1.7}
.main{margin-left:242px;min-width:0;width:calc(100% - 242px)}.topbar{height:82px;padding:0 44px;background:#fff;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #efeff5}.breadcrumb{font-size:13px;color:#b2b1c0}.breadcrumb b{color:#4d4d62;font-weight:600}.top-actions{display:flex;align-items:center;gap:14px}.user-badge{font-size:13px;color:#6b6b7f}.avatar-dot{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#ffe5d9;color:#b8755f;margin-right:8px;font-weight:bold}
.content{max-width:1450px;margin:auto;padding:34px 44px 70px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.page-head h1{margin:0 0 8px;font-size:26px;letter-spacing:.3px}.page-head p{margin:0;color:#9a9bad;font-size:13px}.btn{border:0;border-radius:9px;padding:10px 16px;background:#7864df;color:white;font-size:13px;font-weight:600;white-space:nowrap}.btn:hover{background:#6550ca}.btn.secondary{background:#f0edff;color:#7560d7}.btn.secondary:hover{background:#e5e0ff}.btn.ghost{background:#fff;color:#6d6c80;border:1px solid #e8e8f0}.btn.danger{background:#fff1f1;color:#d76367}.btn.small{padding:7px 10px;font-size:12px}
.hero{background:#7664db;color:white;border-radius:17px;padding:30px 34px;position:relative;overflow:hidden;min-height:174px;display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.hero:after{content:'✦';position:absolute;right:60px;top:-85px;color:#fff;opacity:.1;font-size:280px}.hero span{display:inline-block;background:#ffffff25;border:1px solid #ffffff25;border-radius:20px;padding:5px 10px;font-size:11px}.hero h2{font-size:23px;margin:15px 0 8px}.hero p{margin:0;color:#e5e0ff;font-size:13px}.hero-stat{position:relative;z-index:1;text-align:right}.hero-stat b{font-size:42px}.hero-stat small{display:block;color:#e2dfff}
.grid{display:grid;gap:18px}.metrics{grid-template-columns:repeat(4,1fr);margin-bottom:26px}.card{background:white;border:1px solid #eeeef5;border-radius:14px;box-shadow:0 5px 22px #29214a06}.metric{padding:20px;display:flex;align-items:center;gap:14px}.metric-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#f1edff;color:#7966db;font-size:20px}.metric:nth-child(2) .metric-icon{background:#fff0e8;color:#e89468}.metric:nth-child(3) .metric-icon{background:#e9f8f2;color:#65b69b}.metric:nth-child(4) .metric-icon{background:#fff5df;color:#d9aa50}.metric small{display:block;color:#a0a0b0;font-size:12px}.metric b{display:block;font-size:22px;margin-top:3px}
.section-title{display:flex;justify-content:space-between;align-items:center;margin:8px 0 15px}.section-title h2{font-size:17px;margin:0}.section-title span{font-size:12px;color:#a8a8b8}.event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.event-card{padding:22px;cursor:pointer;transition:transform .15s,box-shadow .15s}.event-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px #49368d12}.event-top{display:flex;justify-content:space-between;align-items:start}.event-icon{width:46px;height:46px;background:#f2efff;border-radius:12px;display:grid;place-items:center;font-size:23px}.tag{display:inline-block;padding:5px 9px;border-radius:20px;font-size:11px;font-weight:600;background:#e8f8ef;color:#45a47c}.tag.closed{background:#f2f2f5;color:#9999a8}.event-card h3{margin:18px 0 7px;font-size:17px}.muted{color:#a1a1b0;font-size:12px}.event-footer{margin-top:22px;padding-top:16px;border-top:1px solid #f1f1f6;display:flex;justify-content:space-between;font-size:12px;color:#9696a8}.arrow{color:#7864df;font-weight:700}
.panel{padding:22px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.tabs button{border:0;background:transparent;color:#9999a9;padding:10px 15px;border-radius:9px;font-size:13px;font-weight:600}.tabs button.active{background:#eeeaff;color:#715bd5}.columns{grid-template-columns:1.35fr 1fr}.stack{display:grid;gap:18px;align-content:start}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field{display:grid;gap:6px;color:#77788b;font-size:12px}.field.full{grid-column:1/-1}.field input,.field select{width:100%;border:1px solid #e6e6ef;background:#fff;border-radius:8px;padding:10px 11px;color:#343447;outline:none}.field input:focus,.field select:focus{border-color:#9c8ae8}.form-actions{margin-top:16px;display:flex;gap:8px}.note{font-size:12px;color:#a3a2b3;line-height:1.7}.notice{background:#f8f6ff;border:1px solid #ece8ff;border-radius:10px;padding:13px;color:#77718e;font-size:12px;line-height:1.7;margin-bottom:16px}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{font-size:11px;font-weight:600;color:#aaaabb;background:#fafafe}th,td{padding:12px;border-bottom:1px solid #f1f1f5;white-space:nowrap}td{color:#626278}tr:last-child td{border-bottom:0}.empty{padding:42px 12px;text-align:center;color:#aaaabb;font-size:13px;line-height:2}.empty-icon{font-size:28px;display:block;color:#cfc9e9}.horse-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:9px;max-height:430px;overflow:auto;padding:4px}.horse-card{border:1px solid #ececf4;border-radius:10px;padding:8px;background:#fff;display:flex;gap:8px;align-items:center;font-size:11px;color:#69697d;cursor:pointer;min-width:0}.horse-card.selected{border-color:#8f79e3;background:#f4f1ff}.horse-card img{width:38px;height:38px;border-radius:8px;object-fit:cover}.horse-card span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fee-bar{display:flex;gap:9px;align-items:end;flex-wrap:wrap;margin-bottom:15px}.fee-bar .field{min-width:140px}.list-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid #f1f1f5}.list-row:last-child{border:0}.list-row strong{display:block;font-size:13px}.list-row small{color:#aaaabb;font-size:11px}.buttons{display:flex;gap:6px;flex-wrap:wrap}
.overlay{position:fixed;inset:0;background:#25213977;display:grid;place-items:center;z-index:5;padding:20px}.modal{width:min(440px,100%);background:#fff;border-radius:16px;padding:26px;box-shadow:0 20px 70px #17112640}.modal h2{margin:0 0 8px;font-size:21px}.modal .form-grid{margin-top:20px}.modal-top{display:flex;justify-content:space-between;align-items:center}.close{border:0;background:transparent;font-size:24px;color:#aaa}.inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#toast{position:fixed;bottom:24px;right:24px;padding:12px 18px;background:#302a49;color:white;border-radius:9px;z-index:10;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}
.horse-picker{border:0;padding:0;margin:18px 0 0;min-width:0}.horse-picker legend{font-size:12px;color:#77788b;margin-bottom:10px}.horse-picker .horse-list{max-height:300px}.horse-picker .horse-card{position:relative}.horse-picker .horse-card[hidden]{display:none}.horse-picker .horse-card input{position:absolute;width:1px;height:1px;opacity:0}.horse-picker .horse-card:has(input:checked){border-color:#8f79e3;background:#f4f1ff}.horse-picker .horse-card:has(input:focus-visible){outline:2px solid #7864df;outline-offset:2px}.team-members{display:flex;flex-wrap:wrap;gap:4px 12px;color:#77788b;font-size:12px;margin-top:6px}
.stats-filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin-bottom:20px}.stats-filters .field{min-width:180px;flex:1}.stats-filters .note{margin:0}
.privacy-consent{display:flex;align-items:flex-start;gap:8px;margin-top:12px;color:#77788b;font-size:12px;line-height:1.6}.privacy-consent input{margin:3px 0 0}.privacy-consent a{color:#7560d7;text-decoration:underline}
.fee-board-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(210px,1fr);gap:18px;align-items:start}.fee-board-scroll{overflow:auto;max-height:70vh;border:1px solid #e8e5f1;border-radius:10px}.fee-board{display:grid;grid-template-columns:58px minmax(0,1fr);gap:1px;background:#e8e5f1}.fee-board-header,.fee-board-rank{background:#eeeaff;color:#6352ae;font-size:13px;font-weight:700;text-align:center;padding:12px 4px}.fee-board-header{position:sticky;top:0;z-index:2}.fee-board-rank{display:grid;place-items:center}.fee-board-cell{background:#fff;min-height:116px;padding:8px;display:flex;align-content:flex-start;align-items:flex-start;gap:5px;flex-wrap:wrap}.fee-board-item{position:relative}.fee-board-avatar,.fee-library-avatar{width:72px;height:72px;padding:2px;background:#fff;border:2px solid transparent;border-radius:9px}.fee-board-avatar img,.fee-library-avatar img{width:100%;height:100%;object-fit:cover;border-radius:6px;display:block}.fee-board-avatar.selected,.fee-library-avatar.selected{border-color:#7864df;background:#eeeaff}.fee-board-remove{position:absolute;right:-4px;top:-4px;border:0;border-radius:50%;width:20px;height:20px;padding:0;background:#6c5aab;color:white;line-height:20px}.fee-board-add{width:64px;height:64px;border:1px dashed #d2c9ee;border-radius:8px;background:#faf9ff;color:#8f7dd7;font-size:26px}.fee-board-add:hover{background:#eeeaff}.fee-library{min-width:0}.fee-library-list{display:grid;grid-template-columns:repeat(auto-fill,72px);gap:7px;max-height:60vh;overflow:auto;margin-top:12px}.fee-board-avatar[draggable=true],.fee-library-avatar[draggable=true]{cursor:grab}.fee-board-avatar:focus-visible,.fee-library-avatar:focus-visible,.fee-board-add:focus-visible,.fee-board-remove:focus-visible{outline:2px solid #7864df;outline-offset:2px}
@media(max-width:900px){.fee-board-layout{grid-template-columns:1fr}.fee-library-list{max-height:240px}}
@media(max-width:900px){.sidebar{width:70px;padding:24px 9px}.brand{padding:0 4px 35px}.brand div:not(.brand-icon),.nav-label,.nav button span:not(.nav-icon),.side-bottom{display:none}.nav button{justify-content:center;padding:12px}.main{margin-left:70px;width:calc(100% - 70px)}.topbar{padding:0 22px}.content{padding:25px 22px}.metrics{grid-template-columns:repeat(2,1fr)}.columns{grid-template-columns:1fr}}
@media(max-width:600px){.event-grid{grid-template-columns:1fr}.hero{padding:24px;min-height:150px}.hero-stat{display:none}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.page-head{gap:10px}.topbar{height:68px}.user-badge{display:none}.content{padding:22px 15px}.metrics{gap:9px}.metric{padding:14px;gap:9px}}
