html,body,#root{margin:0;padding:0;height:100%}.main-layout{height:100vh;display:flex;flex-direction:row;overflow:hidden}.main-layout__sidebar{width:260px;background:#111827;color:#fff;padding:1.5rem 1rem;display:flex;flex-direction:column;justify-content:space-between}.main-layout__title{font-size:1.4rem;font-weight:600;margin-bottom:1.5rem}.main-layout__section{margin-bottom:1.5rem}.main-layout__section-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#9ca3af;margin-bottom:.5rem}.main-layout__nav{display:flex;flex-direction:column;gap:.25rem}.main-layout__menu-button{text-align:left;padding:.5rem .75rem;border-radius:.375rem;border:none;background:transparent;color:#fff;cursor:pointer;font-size:.95rem}.main-layout__menu-button--active{background:#374151}.main-layout__logout-button{padding:.6rem .75rem;border-radius:.375rem;border:1px solid #f87171;background:#b91c1c;color:#fff;cursor:pointer;font-size:.95rem}.main-layout__content{flex:1;background:#f3f4f6;padding:2rem;overflow-y:auto}.auth-layout{height:100vh;width:100vw;display:flex;overflow:hidden}.auth-layout__left-panel{width:420px;padding:2rem;display:flex;flex-direction:column;justify-content:center;background:#111827;border-right:1px solid #ddd}.auth-layout__right-panel{flex:1;background:#f3f4f6;display:flex;align-items:center;justify-content:center;overflow:hidden}.auth-layout__logo{max-width:40%;opacity:.9}.login-form-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1rem;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.login-form{width:420px;background:#fff;border-radius:.5rem;padding:1.75rem;border:1px solid #e5e5e5}.login-form__title{font-size:1.4rem;font-weight:600;color:#000;margin-bottom:.25rem}.login-form__subtitle{font-size:.9rem;color:#6b7280;margin-bottom:1.25rem}.login-form__error{margin-bottom:1rem;padding:.75rem;font-size:.85rem;border-radius:.375rem;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.login-form__success{margin-bottom:1rem;padding:.75rem;font-size:.85rem;border-radius:.375rem;background:#ecfdf3;color:#166534;border:1px solid #bbf7d0}.login-form__field{margin-bottom:.9rem}.login-form__field--last{margin-bottom:1.1rem}.login-form__label{display:block;font-size:.85rem;margin-bottom:4px;color:#374151}.login-form__input{width:100%;padding:.5rem .6rem;font-size:.9rem;border-radius:.375rem;border:1px solid #d1d5db;background:#fff;color:#111827}.login-form__submit-button{width:100%;padding:.55rem .75rem;font-size:.95rem;font-weight:500;border-radius:.375rem;border:1px solid #111827;background:#111827;color:#fff;cursor:pointer;margin-bottom:.75rem}.login-form__submit-button:disabled{cursor:not-allowed;opacity:.75}.login-form__switch-button{width:100%;padding:.5rem;font-size:.9rem;color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:.375rem;cursor:pointer}.register-form-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1rem;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.register-form{width:420px;background:#fff;border-radius:.5rem;padding:1.75rem;border:1px solid #e5e5e5}.register-form__title{font-size:1.4rem;font-weight:600;color:#000;margin-bottom:.25rem}.register-form__subtitle{font-size:.9rem;color:#6b7280;margin-bottom:1.25rem}.register-form__error{margin-bottom:1rem;padding:.75rem;font-size:.85rem;border-radius:.375rem;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.register-form__success{margin-bottom:1rem;padding:.75rem;font-size:.85rem;border-radius:.375rem;background:#ecfdf3;color:#166534;border:1px solid #bbf7d0}.register-form__field{margin-bottom:.9rem}.register-form__field--last{margin-bottom:1.1rem}.register-form__label{display:block;font-size:.85rem;margin-bottom:4px;color:#374151}.register-form__input{width:100%;padding:.5rem .6rem;font-size:.9rem;border-radius:.375rem;border:1px solid #d1d5db;background:#fff;color:#111827}.register-form__submit-button{width:100%;padding:.55rem .75rem;font-size:.95rem;font-weight:500;border-radius:.375rem;border:1px solid #111827;background:#111827;color:#fff;cursor:pointer}.register-form__submit-button:disabled{cursor:not-allowed;opacity:.75}.register-form__switch-button{width:100%;margin-top:.75rem;padding:.5rem;font-size:.9rem;color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:.375rem;cursor:pointer}.users-page{max-width:1100px;margin:0 auto}.users-page__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.users-page__title{font-size:1.8rem}.users-page__refresh-button{padding:.4rem .8rem;border-radius:.375rem;border:1px solid #d1d5db;background:#fff;cursor:pointer;font-size:.9rem}.users-page__flash{margin-bottom:1rem;padding:.75rem 1rem;border-radius:.375rem;font-size:.9rem;display:flex;justify-content:space-between;align-items:center}.users-page__flash--success{background:#ecfdf3;color:#14532d;border:1px solid #bbf7d0}.users-page__flash--error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}.users-page__flash-close{background:none;border:none;font-size:1.2rem;cursor:pointer;padding:0;margin-left:1rem;opacity:.7;transition:opacity .2s ease}.users-page__flash-close:hover{opacity:1}.users-page__error{margin-bottom:1rem;padding:.75rem 1rem;border-radius:.375rem;background:#fee2e2;color:#991b1b;font-size:.9rem}.users-page__table-container{background:#fff;border-radius:.5rem;box-shadow:0 1px 3px #00000014;overflow:hidden}.users-page__table{width:100%;border-collapse:collapse;font-size:.9rem}.users-page__table thead{background:#f9fafb;border-bottom:1px solid #e5e7eb}.users-page__table th{text-align:left;padding:.75rem}.users-page__table td{padding:.6rem .75rem;border-bottom:1px solid #e5e7eb}.users-page__table tr:nth-child(2n){background:#f9fafb}.users-page__table tr:nth-child(odd){background:#fff}.users-page__role-badge{display:inline-block;padding:.15rem .5rem;border-radius:999px;font-size:.75rem;font-weight:500;margin-right:.25rem}.users-page__role-badge--admin{background:#fee2e2;color:#b91c1c}.users-page__role-badge--user{background:#e5e7eb;color:#374151}.users-page__input{padding:.3rem .5rem;border:1px solid #d1d5db;border-radius:.375rem;font-size:.8rem;width:100%;box-sizing:border-box}.users-page__select{padding:.3rem .5rem;border:1px solid #d1d5db;border-radius:.375rem;font-size:.8rem;background:#fff;width:100%;box-sizing:border-box}.users-page__button-base{display:inline-flex;justify-content:center;align-items:center;width:100%;padding:.4rem .75rem;border-radius:.375rem;font-size:.8rem;font-weight:500;cursor:pointer;box-sizing:border-box}.users-page__button--primary{background:#111827;border:1px solid #111827;color:#fff}.users-page__button--secondary{background:#fff;border:1px solid #d1d5db;color:#111827}.users-page__button--danger{background:#dc2626;border:1px solid #dc2626;color:#fff}.users-page__button--danger:hover:not(:disabled){background:#b91c1c;border-color:#b91c1c}.users-page__button:disabled{opacity:.5;cursor:not-allowed}.users-page__action-cell{display:flex;flex-direction:column;gap:.25rem}.factions-page{max-width:1100px;margin:0 auto}.factions-page__title{font-size:1.8rem;margin-bottom:1rem}.factions-page__flash{margin-bottom:1rem;padding:.75rem 1rem;border-radius:.375rem;font-size:.9rem}.factions-page__flash--success{background:#ecfdf3;color:#14532d;border:1px solid #bbf7d0}.factions-page__flash--error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}.factions-page__form{background:#fff;padding:1.25rem 1.5rem;border-radius:.75rem;box-shadow:0 1px 3px #00000014;margin-bottom:1.5rem;border:1px solid transparent}.factions-page__form--edit{border:1px solid #2563eb}.factions-page__form-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.factions-page__form-title{margin-bottom:.25rem;font-size:1.1rem}.factions-page__form-subtitle{font-size:.85rem;color:#6b7280}.factions-page__edit-badge{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;padding:.15rem .5rem;border-radius:999px;background:#dbeafe;color:#1d4ed8}.factions-page__form-row{display:flex;gap:1rem}.factions-page__form-field{flex:1}.factions-page__form-field--full{margin-top:1rem}.factions-page__label{display:block;font-size:.85rem;font-weight:500;color:#374151}.factions-page__label-required{color:#dc2626}.factions-page__input{width:100%;margin-top:.25rem;padding:.5rem;border-radius:.375rem;border:1px solid #d1d5db;font-size:.9rem;box-sizing:border-box}.factions-page__textarea{height:80px;resize:vertical}.factions-page__select{width:100%;margin-top:.25rem;padding:.5rem;border-radius:.375rem;border:1px solid #d1d5db;font-size:.9rem;background:#fff;box-sizing:border-box}.factions-page__form-actions{margin-top:1.25rem;display:flex;gap:.5rem}.factions-page__abilities-selector{border:1px solid #e5e7eb;border-radius:6px;padding:1rem;background-color:#f9fafb}.factions-page__select-all-btn{display:block;margin-bottom:1rem;padding:.5rem 1rem;background-color:#2563eb;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background-color .2s ease}.factions-page__select-all-btn:hover{background-color:#1d4ed8}.factions-page__abilities-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.75rem;margin-bottom:1rem;max-height:300px;overflow-y:auto}.factions-page__ability-checkbox{display:flex;align-items:center;gap:.5rem;cursor:pointer;padding:.5rem;border-radius:4px;transition:background-color .2s ease}.factions-page__ability-checkbox:hover{background-color:#e5e7eb}.factions-page__ability-checkbox input[type=checkbox]{cursor:pointer;width:1rem;height:1rem}.factions-page__ability-count{font-size:.9rem;color:#6b7280;margin:0;padding-top:.5rem;border-top:1px solid #e5e7eb}.factions-page__abilities-cell{display:flex;flex-wrap:wrap;gap:.5rem}.factions-page__ability-tag{display:inline-block;background-color:#fce7f3;color:#9f1239;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;text-transform:uppercase}.factions-page__table-container{background:#fff;border-radius:.75rem;box-shadow:0 1px 3px #00000014;overflow:hidden}.factions-page__table{width:100%;border-collapse:collapse}.factions-page__table th{text-align:left;padding:.75rem;background:#f3f4f6;border-bottom:1px solid #e5e7eb;font-size:.85rem;color:#374151}.factions-page__table td{padding:.75rem;border-bottom:1px solid #e5e7eb}.factions-page__table-actions{display:flex;gap:.25rem}.btn-primary{padding:.5rem 1rem;background:#111827;color:#fff;border:none;border-radius:.375rem;cursor:pointer;font-size:.9rem}.btn-secondary{padding:.5rem 1rem;background:#fff;color:#111827;border:1px solid #d1d5db;border-radius:.375rem;cursor:pointer;font-size:.9rem}.btn-secondary-small{background:#fff;border:1px solid #d1d5db;border-radius:.375rem;padding:.3rem .6rem;cursor:pointer;font-size:.8rem}.btn-danger-small{background:#dc2626;color:#fff;border:none;border-radius:.375rem;padding:.3rem .6rem;cursor:pointer;font-size:.8rem}.unit-profiles-page{max-width:1400px;margin:0 auto;padding:2rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.unit-profiles-page__title{font-size:2rem;font-weight:700;color:#1f2937;margin-bottom:2rem;text-align:center}.unit-profiles-page__flash{position:relative;padding:1rem 3rem 1rem 1rem;margin-bottom:1.5rem;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s ease}.unit-profiles-page__flash:hover{transform:translateY(-1px);box-shadow:0 4px 12px #00000026}.unit-profiles-page__flash--success{background-color:#dcfce7;border:1px solid #bbf7d0;color:#166534}.unit-profiles-page__flash--error{background-color:#fef2f2;border:1px solid #fecaca;color:#dc2626}.unit-profiles-page__flash-close{position:absolute;top:50%;right:1rem;transform:translateY(-50%);background:none;border:none;font-size:1.25rem;cursor:pointer;opacity:.7;transition:opacity .2s ease}.unit-profiles-page__flash-close:hover{opacity:1}.unit-profiles-page__form{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:2rem;margin-bottom:3rem;box-shadow:0 1px 3px #0000001a;transition:all .3s ease}.unit-profiles-page__form--edit{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.unit-profiles-page__form-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem}.unit-profiles-page__form-title{font-size:1.5rem;font-weight:600;color:#111827;margin:0 0 .5rem}.unit-profiles-page__form-subtitle{color:#6b7280;margin:0}.unit-profiles-page__edit-badge{background:#3b82f6;color:#fff;padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:500}.unit-profiles-page__section-title{font-size:1.125rem;font-weight:600;color:#374151;margin:2rem 0 1rem;padding-bottom:.5rem;border-bottom:2px solid #e5e7eb}.unit-profiles-page__form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-bottom:1.5rem}.unit-profiles-page__stats-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:1rem;margin-bottom:1.5rem}.unit-profiles-page__stats-grid input{width:100%;box-sizing:border-box}.unit-profiles-page__form-field{display:flex;flex-direction:column}.unit-profiles-page__form-field--full{display:flex;flex-direction:column;margin-bottom:1.5rem}.unit-profiles-page__form-field--checkbox{display:flex;align-items:center;margin-bottom:1.5rem}.unit-profiles-page__label{font-weight:500;color:#374151;margin-bottom:.5rem;font-size:.875rem}.unit-profiles-page__checkbox-label{display:flex;align-items:center;font-weight:500;color:#374151;font-size:.875rem;cursor:pointer}.unit-profiles-page__label-required{color:#dc2626}.unit-profiles-page__input,.unit-profiles-page__select,.unit-profiles-page__textarea{padding:.75rem 1rem;border:1px solid #d1d5db;border-radius:6px;font-size:1rem;transition:all .2s ease;background:#fff}.unit-profiles-page__checkbox{margin-right:.5rem;width:1rem;height:1rem}.unit-profiles-page__input:focus,.unit-profiles-page__select:focus,.unit-profiles-page__textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.unit-profiles-page__textarea{resize:vertical;min-height:100px}.unit-profiles-page__form-actions{display:flex;gap:1rem;padding-top:1rem;border-top:1px solid #e5e7eb}.unit-profiles-page__table-container{background:#fff;border-radius:12px;border:1px solid #e5e7eb;overflow:hidden;box-shadow:0 1px 3px #0000001a}.unit-profiles-page__table{width:100%;border-collapse:collapse}.unit-profiles-page__table th{background:#f9fafb;padding:1rem;text-align:left;font-weight:600;color:#374151;border-bottom:1px solid #e5e7eb;font-size:.875rem;text-transform:uppercase;letter-spacing:.05em}.unit-profiles-page__table td{padding:1rem;border-bottom:1px solid #f3f4f6;color:#374151}.unit-profiles-page__table tbody tr:hover{background-color:#f9fafb!important}.unit-profiles-page__table-actions{display:flex;gap:.5rem}@media(max-width:1024px){.unit-profiles-page{padding:1.5rem}.unit-profiles-page__stats-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:768px){.unit-profiles-page{padding:1rem}.unit-profiles-page__form-row{grid-template-columns:1fr;gap:1rem}.unit-profiles-page__stats-grid{grid-template-columns:repeat(2,1fr)}.unit-profiles-page__form-header{flex-direction:column;gap:1rem}.unit-profiles-page__edit-badge{align-self:flex-start}.unit-profiles-page__form-actions{flex-direction:column}.unit-profiles-page__table-container{overflow-x:auto}.unit-profiles-page__table{min-width:700px}.unit-profiles-page__table-actions{flex-direction:column;min-width:100px}}@media(max-width:480px){.unit-profiles-page__title{font-size:1.5rem}.unit-profiles-page__form{padding:1rem}.unit-profiles-page__stats-grid{grid-template-columns:1fr}.unit-profiles-page__table th,.unit-profiles-page__table td{padding:.5rem}}.unit-profiles-page__filters{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:1rem;margin-bottom:1rem;display:flex;flex-direction:column;gap:1rem}.unit-profiles-page__search{flex:1}.unit-profiles-page__search-input{width:100%;padding:.75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem;transition:all .2s ease;box-sizing:border-box}.unit-profiles-page__search-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.unit-profiles-page__filter-group{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.unit-profiles-page__filter-select{padding:.75rem;border:1px solid #d1d5db;border-radius:6px;background:#fff;font-size:.875rem;min-width:150px;transition:all .2s ease}.unit-profiles-page__filter-select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.unit-profiles-page__reset-btn{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;border:none;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px #f59e0b33;white-space:nowrap}.unit-profiles-page__reset-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px #f59e0b4d;background:linear-gradient(135deg,#d97706,#b45309)}.unit-profiles-page__reset-btn:active{transform:translateY(0);box-shadow:0 1px 2px #f59e0b33}.unit-profiles-page__reset-icon{width:16px;height:16px;flex-shrink:0}.unit-profiles-page__pagination{display:flex;justify-content:space-between;align-items:center;margin-top:1rem;padding:1rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;flex-wrap:wrap;gap:1rem}.unit-profiles-page__pagination-info{font-size:.875rem;color:#6b7280}.unit-profiles-page__pagination-controls{display:flex;align-items:center;gap:1rem}.unit-profiles-page__pagination-current{font-size:.875rem;color:#374151;font-weight:500}@media(max-width:768px){.unit-profiles-page__filters{padding:.75rem}.unit-profiles-page__filter-group{flex-direction:column;align-items:stretch}.unit-profiles-page__filter-select{min-width:unset;width:100%}.unit-profiles-page__pagination{flex-direction:column;text-align:center}.unit-profiles-page__pagination-controls{width:100%;justify-content:center}.unit-profiles-page__reset-btn{width:100%;justify-content:center;padding:.875rem 1rem}}.weapons-selector{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:1rem;max-height:300px;overflow-y:auto}.weapons-list{display:flex;flex-direction:column;gap:.5rem}.weapons-category{font-weight:700;color:#374151;font-size:.875rem;text-transform:uppercase;margin-top:1rem;margin-bottom:.5rem;padding-bottom:.5rem;border-bottom:2px solid #d1d5db}.weapons-category:first-child{margin-top:0}.weapon-checkbox{display:flex;align-items:center;gap:.75rem;padding:.5rem;border-radius:6px;cursor:pointer;transition:background-color .2s ease}.weapon-checkbox:hover{background-color:#e5e7eb}.weapon-checkbox input[type=checkbox]{width:18px;height:18px;cursor:pointer}.weapon-checkbox span{font-size:.9rem;color:#374151}.unit-profiles-page__select-all-btn{display:block;margin-bottom:1rem;padding:.5rem 1rem;background-color:#2563eb;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background-color .2s ease}.unit-profiles-page__select-all-btn:hover{background-color:#1d4ed8}.unit-profiles-page__abilities-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.75rem;margin-bottom:1rem;max-height:300px;overflow-y:auto}.unit-profiles-page__ability-checkbox{display:flex;align-items:center;gap:.5rem;cursor:pointer;padding:.5rem;border-radius:4px;transition:background-color .2s ease}.unit-profiles-page__ability-checkbox:hover{background-color:#e5e7eb}.unit-profiles-page__ability-checkbox input[type=checkbox]{cursor:pointer;width:1rem;height:1rem}.unit-profiles-page__ability-count{font-size:.9rem;color:#6b7280;margin:0;padding-top:.5rem;border-top:1px solid #e5e7eb}.unit-profiles-page__abilities-cell{display:flex;flex-wrap:wrap;gap:.5rem}.unit-profiles-page__ability-tag{display:inline-block;background-color:#d1fae5;color:#065f46;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;text-transform:uppercase}.weapons-page{max-width:1400px;margin:0 auto;padding:2rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.weapons-page__title{font-size:2rem;font-weight:700;color:#1f2937;margin-bottom:2rem;text-align:center}.weapons-page__flash{padding:1rem;margin-bottom:1.5rem;border-radius:8px;font-weight:500;cursor:pointer}.weapons-page__flash--success{background-color:#dcfce7;border:1px solid #bbf7d0;color:#166534}.weapons-page__flash--error{background-color:#fef2f2;border:1px solid #fecaca;color:#991b1b}.weapons-page__form{background:#fff;border-radius:12px;padding:2rem;margin-bottom:2rem;box-shadow:0 2px 8px #0000001a}.weapons-page__form-title{font-size:1.5rem;font-weight:600;color:#1f2937;margin-bottom:1.5rem}.weapons-page__form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1rem}.weapons-page__form-field{display:flex;flex-direction:column;gap:.5rem}.weapons-page__form-field--full{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}.weapons-page__label{font-weight:600;color:#374151;font-size:.9rem}.weapons-page__input{padding:.75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.95rem;transition:border-color .2s}.weapons-page__input:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a}.weapons-page__textarea{min-height:80px;resize:vertical}.weapons-page__form-actions{display:flex;gap:1rem;margin-top:1.5rem}.weapons-page__abilities-selector{border:1px solid #e5e7eb;border-radius:6px;padding:1rem;background-color:#f9fafb}.weapons-page__select-all-btn{display:block;margin-bottom:1rem;padding:.5rem 1rem;background-color:#2563eb;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background-color .2s ease}.weapons-page__select-all-btn:hover{background-color:#1d4ed8}.weapons-page__abilities-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.75rem;margin-bottom:1rem;max-height:300px;overflow-y:auto}.weapons-page__ability-checkbox{display:flex;align-items:center;gap:.5rem;cursor:pointer;padding:.5rem;border-radius:4px;transition:background-color .2s ease}.weapons-page__ability-checkbox:hover{background-color:#e5e7eb}.weapons-page__ability-checkbox input[type=checkbox]{cursor:pointer;width:1rem;height:1rem}.weapons-page__ability-count{font-size:.9rem;color:#6b7280;margin:0;padding-top:.5rem;border-top:1px solid #e5e7eb}.weapons-page__filters{display:flex;gap:1rem;margin-bottom:1.5rem}.weapons-page__search-input{flex:1;padding:.75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.95rem}.weapons-page__filter-select{padding:.75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.95rem;min-width:200px}.weapons-page__table-container{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a;overflow-x:auto}.weapons-page__table{width:100%;border-collapse:collapse}.weapons-page__table thead{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.weapons-page__table th{padding:1rem;text-align:left;font-weight:600;font-size:.875rem;white-space:nowrap}.weapons-page__table th:first-child{border-top-left-radius:8px}.weapons-page__table th:last-child{border-top-right-radius:8px}.weapons-page__table td{padding:1rem;border-bottom:1px solid #e5e7eb;font-size:.9rem}.weapons-page__table tbody tr:hover{background-color:#f9fafb}.weapons-page__table tbody tr:last-child td{border-bottom:none}.weapons-page__name{font-weight:600;color:#1f2937}.weapons-page__type-badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;text-transform:uppercase}.weapons-page__type-badge--ranged{background:#dbeafe;color:#1e40af}.weapons-page__type-badge--melee{background:#fee2e2;color:#991b1b}.weapons-page__abilities{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.weapons-page__actions{display:flex;gap:.5rem}.weapons-page__empty{text-align:center;color:#6b7280;padding:2rem!important;font-style:italic}@media(max-width:768px){.weapons-page{padding:1rem}.weapons-page__form-row{grid-template-columns:1fr}.weapons-page__filters{flex-direction:column}.weapons-page__filter-select{min-width:unset}.weapons-page__table-container{overflow-x:scroll}}.abilities-page{max-width:1400px;margin:0 auto;padding:2rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.abilities-page__title{font-size:2rem;font-weight:700;color:#1f2937;margin-bottom:2rem;text-align:center}.abilities-page__flash{padding:1rem;border-radius:8px;margin-bottom:1.5rem;cursor:pointer;font-weight:500}.abilities-page__flash--success{background-color:#dcfce7;border:1px solid #bbf7d0;color:#166534}.abilities-page__flash--error{background-color:#fef2f2;border:1px solid #fecaca;color:#991b1b}.abilities-page__form{background:#fff;border-radius:12px;padding:2rem;margin-bottom:2rem;box-shadow:0 2px 8px #0000001a}.abilities-page__form-title{font-size:1.5rem;font-weight:600;margin-bottom:1.5rem;color:#111827}.abilities-page__form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1rem}.abilities-page__form-field{display:flex;flex-direction:column}.abilities-page__form-field--full{margin-bottom:1rem}.abilities-page__label{font-weight:600;color:#374151;font-size:.9rem}.abilities-page__input{padding:.75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.95rem;transition:border-color .2s}.abilities-page__input:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a}.abilities-page__form-actions{display:flex;gap:1rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e5e7eb}.abilities-page__filters{display:flex;gap:1rem;margin-bottom:1.5rem;padding:0 .5rem}.abilities-page__search-input{flex:1;padding:.75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.95rem}.abilities-page__search-input:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a}.abilities-page__filter-select{padding:.75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.95rem;min-width:200px}.abilities-page__filter-select:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a}.abilities-page__table-container{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a;overflow-x:auto}.abilities-page__loading{padding:4rem;text-align:center;color:#6b7280;font-size:1.125rem}.abilities-page__table{width:100%;border-collapse:collapse}.abilities-page__table thead{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.abilities-page__table th{padding:1rem;text-align:left;font-weight:600;font-size:.875rem;white-space:nowrap}.abilities-page__table th:first-child{border-top-left-radius:8px}.abilities-page__table th:last-child{border-top-right-radius:8px}.abilities-page__table td{padding:1rem;border-bottom:1px solid #e5e7eb;font-size:.9rem}.abilities-page__table tbody tr:hover{background-color:#f9fafb}.abilities-page__table tbody tr:last-child td{border-bottom:none}.abilities-page__cell-name{font-weight:600;color:#1f2937}.abilities-page__cell-description{max-width:500px;color:#6b7280;font-size:.9rem;line-height:1.5}.abilities-page__cell-usage{font-size:.875rem;color:#6b7280;white-space:nowrap}.abilities-page__cell-actions{display:flex;gap:.5rem;justify-content:flex-end}.abilities-page__empty{text-align:center;color:#6b7280;padding:2rem!important;font-style:italic}.abilities-page__type-badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;text-transform:uppercase}.abilities-page__type-badge--weapon{background-color:#dbeafe;color:#1e40af}.abilities-page__type-badge--unit{background-color:#d1fae5;color:#065f46}.abilities-page__type-badge--faction{background-color:#fce7f3;color:#9f1239}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:.75rem 1.5rem;border:none;border-radius:6px;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.btn-secondary{background:#e5e7eb;color:#374151;padding:.75rem 1.5rem;border:none;border-radius:6px;font-weight:600;cursor:pointer;transition:background-color .2s}.btn-secondary:hover{background:#d1d5db}.btn-edit{background:#fef3c7;border:1px solid #fde047;padding:.5rem .75rem;border-radius:6px;cursor:pointer;transition:background-color .2s}.btn-edit:hover{background:#fde047}.btn-delete{background:#fee2e2;border:1px solid #fca5a5;padding:.5rem .75rem;border-radius:6px;cursor:pointer;transition:background-color .2s}.btn-delete:hover{background:#fca5a5}@media(max-width:768px){.abilities-page{padding:1rem}.abilities-page__form-row{grid-template-columns:1fr}.abilities-page__filters{flex-direction:column}.abilities-page__filter-select{min-width:unset}.abilities-page__table-container{overflow-x:scroll}}.teams-page{padding:20px;max-width:1200px;margin:0 auto}.teams-header{margin-bottom:2.5rem}.teams-title{font-size:2.5rem;font-weight:700;color:#1f2937;margin-bottom:1.5rem}.teams-description{background:linear-gradient(135deg,#f0f4ff,#f9f5ff);border:1px solid #e0e7ff;border-radius:.75rem;padding:1.5rem;margin-bottom:1.5rem}.teams-description p{margin:.75rem 0;color:#374151;font-size:.95rem;line-height:1.6}.teams-description p:first-child{margin-top:0}.teams-description p:last-child{margin-bottom:0}.teams-description strong{color:#4f46e5;font-weight:600}.error-message{background-color:#fee2e2;color:#991b1b;padding:12px 20px;border-radius:4px;margin-bottom:20px;border:1px solid #fecaca}.form-group{display:flex;flex-direction:column;gap:8px;flex:1;min-width:200px}.form-group label{font-weight:600;color:#333}.form-group input,.form-group select{padding:10px;border:1px solid #ddd;border-radius:4px;font-size:14px;font-family:inherit}.form-group input:focus,.form-group select:focus{outline:none;border-color:#06c;box-shadow:0 0 0 3px #0066cc1a}.btn{padding:10px 20px;border:none;border-radius:4px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease}.btn:hover{transform:translateY(-2px);box-shadow:0 2px 8px #00000026}.btn-primary{background-color:#4f46e5;color:#fff}.btn-primary:hover{background-color:#4338ca}.btn-success{background-color:#10b981;color:#fff}.btn-success:hover{background-color:#059669}.btn-danger{background-color:#ef4444;color:#fff}.btn-danger:hover{background-color:#dc2626}.btn-info{background-color:#3b82f6;color:#fff}.btn-info:hover{background-color:#2563eb}.btn-sm{padding:8px 16px;font-size:12px}.btn-xs{padding:4px 8px;font-size:11px}.create-team-form{background:#f9f9f9;padding:1.5rem;border-radius:.75rem;margin-bottom:2rem;border:1px solid #e5e5e5;display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end}.teams-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}.team-card{background:#fff;border:1px solid #e5e7eb;border-radius:.75rem;overflow:hidden;box-shadow:0 1px 3px #0000001a;transition:box-shadow .2s ease;display:flex;flex-direction:column}.team-card:hover{box-shadow:0 4px 12px #00000026}.team-header{background:linear-gradient(135deg,#f3f4f6,#f9fafb);padding:1.5rem;border-bottom:1px solid #e5e7eb;display:flex;flex-direction:column;gap:1rem}.team-header-top{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.team-actions{display:flex;justify-content:center;width:100%}.btn-playsheet{white-space:nowrap;font-size:.875rem}.team-header-content{flex:1;min-width:0}.team-header h2{margin:0 0 .5rem;font-size:1.25rem;color:#1f2937;font-weight:700;word-break:break-word}.faction-name{margin:0;font-size:.85rem;color:#6b7280;font-weight:500}.team-score{background:linear-gradient(135deg,#4f46e5,#4338ca);color:#fff;padding:.75rem 1.25rem;border-radius:.5rem;text-align:center;min-width:100px;flex-shrink:0}.team-score-value{font-size:1.5rem;font-weight:700;display:block}.team-score-label{font-size:.75rem;opacity:.9;margin-top:.25rem}.team-delete-button{width:32px;height:32px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:.375rem;background-color:#fee2e2;color:#991b1b;border:none;cursor:pointer;transition:all .2s;font-size:1.25rem;flex-shrink:0}.team-delete-button:hover{background-color:#fecaca;transform:scale(1.1)}.team-content{padding:1.5rem;flex:1;display:flex;flex-direction:column}.team-actions{display:flex;gap:.75rem;margin-bottom:1.5rem}.team-actions .btn{flex:1;padding:.625rem 1rem;font-size:.875rem}.team-units{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem;border-top:1px solid #e5e7eb;padding-top:1rem}.empty-units{text-align:center;color:#9ca3af;font-size:.875rem;padding:1rem;background-color:#f9fafb;border-radius:.5rem;margin:0}.unit-item{display:flex;gap:.5rem;align-items:center;background:#f9fafb;border:1px solid #e5e7eb;border-radius:.5rem;overflow:hidden;transition:all .2s}.unit-main{display:flex;gap:.75rem;align-items:center;flex:1;min-width:0}.unit-remove-btn{width:28px;height:28px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:.375rem;background-color:#fee2e2;color:#991b1b;border:none;cursor:pointer;transition:all .2s;font-size:1.125rem;flex-shrink:0;margin-right:.5rem}.unit-remove-btn:hover{background-color:#fecaca;transform:scale(1.1)}.unit-item:hover{border-color:#d1d5db;box-shadow:0 1px 3px #0000000d}.unit-thumbnail{width:70px;height:70px;object-fit:cover;flex-shrink:0}.unit-details{flex:1;padding:.75rem;display:flex;flex-direction:column;justify-content:space-between;min-width:0}.unit-details h4{margin:0 0 .25rem;font-size:.875rem;font-weight:600;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.unit-faction{margin:0;font-size:.75rem;color:#6b7280}.quantity-controls{display:flex;align-items:center;gap:.5rem;margin-top:.5rem}.unit-quantity-display{display:flex;align-items:center;gap:.5rem;margin-top:auto}.quantity-value{font-weight:700;font-size:1rem;color:#1f2937}.unit-points{font-size:.75rem;color:#4f46e5;font-weight:600;background:#f0f4ff;padding:.25rem .5rem;border-radius:.25rem}.quantity-controls .btn{padding:.25rem .5rem;font-size:.75rem;min-width:24px}.quantity{font-weight:600;color:#1f2937;min-width:24px;text-align:center}.add-unit-form{background:linear-gradient(135deg,#f0f9ff,#f9f7ff);padding:1rem;border-radius:.5rem;border:1px solid #dbeafe;margin-bottom:1rem;margin-top:15px}.add-unit-form .form-group{margin-bottom:12px}.add-unit-form .form-group:last-of-type{margin-bottom:0}.file-input{padding:10px;border:2px dashed #ddd;border-radius:4px;cursor:pointer;font-size:14px}.file-input:hover{border-color:#06c;background-color:#f9f9f9}.image-preview{margin-top:12px;border-radius:4px;overflow:hidden;background:#f9f9f9;padding:8px}.preview-img{max-width:200px;max-height:200px;width:100%;object-fit:cover;border-radius:4px}.playsheet-page{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:2rem;width:100%;max-width:1400px;margin:0 auto;box-sizing:border-box}.playsheet-header{background:#fff;border-radius:1rem;padding:2rem;margin-bottom:2rem;box-shadow:0 4px 6px #0000001a;display:flex;justify-content:space-between;align-items:center;gap:2rem;width:100%;box-sizing:border-box}.team-info{flex:1;text-align:center}.team-info h1{margin:0 0 .5rem;font-size:2rem;color:#1f2937;font-weight:700}.faction-name{margin:0;font-size:1rem;color:#6b7280;font-weight:500}.team-summary{display:flex;gap:2rem}.summary-item{display:flex;flex-direction:column;align-items:center;padding:1rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:.75rem;color:#fff}.summary-label{font-size:.75rem;opacity:.9;margin-bottom:.25rem}.summary-value{font-size:1.75rem;font-weight:700}.playsheet-page .unit-card{background:#fff;border-radius:1rem;overflow:hidden;box-shadow:0 4px 6px #0000001a;transition:transform .2s ease,box-shadow .2s ease;display:flex;flex-direction:row;min-height:200px;width:100%;box-sizing:border-box;margin-bottom:1.5rem}.playsheet-page .unit-card:hover{transform:translateY(-2px);box-shadow:0 8px 12px #00000026}.playsheet-page .unit-image-container{width:250px;min-width:250px;height:auto;overflow:hidden;background:#f3f4f6;flex-shrink:0}.playsheet-page .unit-image{width:100%;height:100%;object-fit:cover}.playsheet-page .unit-details{flex:1;display:flex;flex-direction:column}.playsheet-page .unit-card-header{background:linear-gradient(135deg,#1f2937,#374151);color:#fff;padding:1rem 1.5rem;display:flex;justify-content:space-between;align-items:center}.playsheet-page .unit-card-header h2{margin:0;font-size:1.25rem;font-weight:700}.unit-points-badge{background:#10b981;padding:.5rem 1rem;border-radius:.5rem;font-weight:700;font-size:1rem}.playsheet-page .unit-info{padding:1rem 1.5rem;border-bottom:1px solid #e5e7eb}.info-row{display:flex;justify-content:space-between;padding:.5rem 0}.info-row:last-child{border-bottom:none}.info-label{color:#6b7280;font-weight:500;font-size:.875rem}.info-value{color:#1f2937;font-weight:600;font-size:.875rem}.playsheet-page .unit-stats{padding:1.25rem 1.5rem;background:#f9fafb;flex:1}.stats-title{font-weight:700;color:#1f2937;margin-bottom:1rem;font-size:.95rem;text-transform:uppercase;letter-spacing:.5px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}.stat-item{display:flex;flex-direction:column;align-items:center;padding:.75rem;background:#fff;border-radius:.5rem;border:1px solid #e5e7eb}.stat-label{font-size:.75rem;color:#6b7280;font-weight:600;margin-bottom:.25rem}.stat-value{font-size:1.25rem;color:#1f2937;font-weight:700}.playsheet-page .unit-stats-placeholder{padding:1.25rem;background:#fffbeb;border-top:2px solid #fbbf24}.stats-note{margin:0;color:#92400e;font-size:.875rem;font-style:italic;text-align:center}.empty-message{grid-column:1 / -1;text-align:center;color:#fff;font-size:1.25rem;padding:3rem}.playsheet-page .error-message{background-color:#fee2e2;color:#991b1b;padding:1rem 1.5rem;border-radius:.75rem;margin-bottom:1rem;border:1px solid #fecaca}.playsheet-page .faction-abilities-card{background:#fff;border-radius:1rem;padding:1.25rem 1.5rem;margin-bottom:1.5rem;box-shadow:0 4px 6px #0000001a}.playsheet-page .faction-abilities-section+.faction-abilities-section{margin-top:1rem;padding-top:1rem;border-top:1px solid #e5e7eb}.playsheet-page .section-title{font-weight:700;color:#1f2937;margin-bottom:.5rem;font-size:.95rem;text-transform:uppercase;letter-spacing:.5px}.playsheet-page .ability-badges{display:flex;flex-wrap:wrap;gap:.5rem}.playsheet-page .ability-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .6rem;border-radius:999px;font-size:.75rem;font-weight:600;border:1px solid transparent;background:#f3f4f6;color:#374151;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.playsheet-page .ability-badge.type-faction{background:#eef2ff;color:#3730a3;border-color:#c7d2fe}.playsheet-page .ability-badge.type-unit{background:#ecfeff;color:#155e75;border-color:#a5f3fc}.playsheet-page .ability-badge.type-weapon{background:#fff7ed;color:#9a3412;border-color:#fed7aa}.playsheet-page .ability-badge-caret{font-size:.7rem;opacity:.75}.playsheet-page .ability-popover{position:absolute;z-index:30;top:calc(100% + 6px);left:0;min-width:220px;max-width:360px;background:#111827;color:#f9fafb;border-radius:.5rem;box-shadow:0 10px 20px #00000040;border:1px solid #1f2937;padding:.5rem .75rem}.playsheet-page .ability-popover:before{content:"";position:absolute;top:-6px;left:12px;width:10px;height:10px;background:#111827;border-left:1px solid #1f2937;border-top:1px solid #1f2937;transform:rotate(45deg)}.playsheet-page .ability-popover-title{font-weight:700;font-size:.8rem;margin-bottom:.25rem}.playsheet-page .ability-popover-content{font-size:.78rem;line-height:1.15rem;opacity:.95;white-space:normal}.playsheet-page .empty-badges{font-size:.8rem;color:#6b7280}.playsheet-page .unit-abilities,.playsheet-page .unit-weapons{padding:1rem 1.5rem;border-top:1px solid #e5e7eb;background:#fff}.playsheet-page .weapons-list{display:flex;flex-direction:column;gap:.5rem}.playsheet-page .weapon-row{display:flex;flex-direction:column;gap:.35rem;padding:.5rem .75rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:.5rem}.playsheet-page .weapon-name{font-weight:700;color:#111827;font-size:.9rem}@media(max-width:768px){.playsheet-header{flex-direction:column;text-align:center}.team-summary{width:100%;justify-content:center}.playsheet-page .unit-card{flex-direction:column}.playsheet-page .unit-image-container{width:100%;height:200px}}@media print{.playsheet-page{background:#fff;padding:0}.playsheet-header .btn{display:none}.playsheet-page .unit-card{page-break-inside:avoid;box-shadow:none;border:1px solid #e5e7eb}}.collection-page{max-width:1200px;margin:0 auto;padding:20px}.collection-page h1{font-size:2rem;margin-bottom:20px;color:#333}.collection-page .collection-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:20px}.collection-page .filter-section{display:flex;align-items:center;gap:10px;flex:1}.collection-page .filter-section label{font-weight:500;white-space:nowrap}.collection-page .filter-section select{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;min-width:200px}.collection-page .collection-stats{color:#666;font-size:.95rem;margin-bottom:15px}.collection-page .error-message{background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb;border-radius:4px;padding:12px 20px;margin-bottom:20px}.collection-page .btn{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-size:14px;transition:background-color .3s ease}.collection-page .btn-primary{background-color:#007bff;color:#fff;margin-bottom:20px}.collection-page .btn-primary:hover{background-color:#0056b3}.collection-page .btn-success{background-color:#28a745;color:#fff}.collection-page .btn-success:hover{background-color:#218838}.collection-page .btn-danger{background-color:transparent;color:#999;border:none;font-size:16px;padding:6px;transition:color .2s ease;position:absolute;top:8px;right:8px;z-index:10;cursor:pointer;line-height:1}.collection-page .btn-danger:hover{background-color:#ffffffe6;color:#dc3545;border-radius:4px}.collection-page .btn-secondary{background-color:#6c757d;color:#fff}.collection-page .btn-secondary:hover{background-color:#5a6268}.collection-page .btn-sm{padding:4px 8px;font-size:12px;margin-top:5px;margin-right:5px}.collection-page .btn-edit{background-color:#17a2b8;color:#fff}.collection-page .btn-edit:hover{background-color:#138496}.collection-page .add-unit-form{background-color:#f9f9f9;border:1px solid #ddd;border-radius:8px;padding:20px;margin-bottom:30px}.collection-page .form-group{margin-bottom:15px}.collection-page .form-group label{display:block;margin-bottom:5px;font-weight:500;color:#333}.collection-page .form-group input,.collection-page .form-group select{width:100%;padding:8px;border:1px solid #ddd;border-radius:4px;font-size:14px;box-sizing:border-box}.collection-page .form-group input:focus,.collection-page .form-group select:focus{outline:none;border-color:#007bff;box-shadow:0 0 5px #007bff80}.collection-page .file-input{border:2px dashed #ddd;padding:15px;text-align:center;cursor:pointer;transition:border-color .3s ease}.collection-page .file-input:hover{border-color:#007bff}.collection-page .image-preview{margin-top:10px;text-align:center}.collection-page .preview-img{max-width:200px;max-height:200px;border-radius:4px;border:1px solid #ddd;padding:5px}.collection-page .units-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}.collection-page .unit-card{background-color:#fff;border:1px solid #ddd;border-radius:8px;overflow:hidden;transition:box-shadow .3s ease;box-shadow:0 2px 4px #0000001a;position:relative}.collection-page .unit-card:hover{box-shadow:0 4px 8px #00000026}.collection-page .unit-image{width:100%;height:200px;object-fit:cover;background-color:#f0f0f0}.collection-page .unit-info{padding:15px}.collection-page .unit-info h3{margin:0 0 5px;font-size:1.1rem;color:#333}.collection-page .faction{margin:5px 0 10px;font-size:.9rem;color:#666}.collection-page .points{margin:5px 0;font-size:.95rem;color:#28a745}.collection-page .points strong{font-size:1.1rem}.collection-page .quantity-display{display:flex;justify-content:space-between;align-items:center;margin:10px 0;padding:10px 0;border-top:1px solid #eee;border-bottom:1px solid #eee}.collection-page .quantity-display span{font-weight:500}.collection-page .edit-form{display:flex;flex-direction:column;gap:8px;margin:10px 0;padding:10px 0;border-top:1px solid #eee}.collection-page .edit-form input{width:100%;padding:8px;border:1px solid #ddd;border-radius:4px;font-size:14px;box-sizing:border-box}.collection-page .edit-form-buttons{display:flex;gap:5px;width:100%}.collection-page .edit-form-buttons button{flex:1}.collection-page .empty{text-align:center;color:#999;padding:40px 20px;font-size:1.1rem}.collection-page .pagination{display:flex;justify-content:center;align-items:center;gap:15px;margin-top:30px;padding:20px}.collection-page .page-info{font-weight:500;color:#333}.collection-page .pagination .btn:disabled{opacity:.5;cursor:not-allowed}.gallery-page{max-width:1400px;margin:0 auto;padding:20px}.gallery-header{text-align:center;margin-bottom:30px}.gallery-title{font-size:2.5rem;margin-bottom:10px;color:#333}.gallery-subtitle{color:#666;font-size:1.1rem}.gallery-filters{display:flex;gap:1.5rem;margin-bottom:2rem;padding:1.5rem;background-color:#f9f9f9;border-radius:.5rem;border:1px solid #e5e5e5;flex-wrap:wrap}.gallery-filter-group{flex:1;min-width:200px;display:flex;flex-direction:column;gap:.5rem}.gallery-filter-label{font-weight:500;color:#374151;font-size:.95rem}.gallery-filter-select{padding:.625rem;border:1px solid #d1d5db;border-radius:.375rem;font-size:.95rem;background-color:#fff;cursor:pointer;transition:border-color .2s}.gallery-filter-select:focus{outline:none;border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e51a}.gallery-stats{text-align:center;color:#666;font-size:.95rem;margin-bottom:20px}.error-message{background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb;border-radius:4px;padding:12px 20px;margin-bottom:20px}.loading{text-align:center;color:#666;padding:40px;font-size:1.1rem}.empty{text-align:center;color:#999;padding:40px 20px;font-size:1.1rem}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px;margin-bottom:30px}.gallery-item{background-color:#fff;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px #0000001a;transition:transform .2s ease,box-shadow .2s ease}.gallery-item:hover{transform:translateY(-4px);box-shadow:0 4px 16px #00000026}.gallery-image-container{width:100%;height:220px;overflow:hidden;cursor:pointer}.gallery-image{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}.gallery-image-container:hover .gallery-image{transform:scale(1.05)}.gallery-no-image{width:100%;height:220px;background-color:#f0f0f0;display:flex;align-items:center;justify-content:center;color:#999}.gallery-info{padding:12px 15px;background:linear-gradient(to bottom,#fff,#f9f9f9)}.gallery-unit-name{margin:0 0 5px;font-size:.95rem;color:#333;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gallery-faction{margin:0 0 8px;font-size:.85rem;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gallery-user-info{display:flex;align-items:center;gap:.5rem}.gallery-user-avatar{width:24px;height:24px;border-radius:50%;object-fit:cover;flex-shrink:0}.gallery-user-avatar-placeholder{width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;color:#fff;flex-shrink:0}.gallery-user{margin:0;font-size:.8rem;color:#666}.pagination{display:flex;justify-content:center;align-items:center;gap:15px;margin-top:30px;padding:20px}.page-info{font-weight:500;color:#333}.btn{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-size:14px;transition:background-color .3s ease}.btn-secondary{background-color:#6c757d;color:#fff}.btn-secondary:hover{background-color:#5a6268}.btn:disabled{opacity:.5;cursor:not-allowed}.lightbox{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.lightbox-content{position:relative;max-width:90vw;max-height:90vh;display:flex;align-items:center;justify-content:center;animation:zoomIn .3s ease}@keyframes zoomIn{0%{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}.lightbox-image{max-width:100%;max-height:100%;object-fit:contain;border-radius:.5rem}.lightbox-close{position:absolute;top:-40px;right:0;background-color:transparent;border:none;color:#fff;font-size:2.5rem;cursor:pointer;padding:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;transition:opacity .2s}.lightbox-close:hover{opacity:.7}.profile-page{max-width:800px;margin:0 auto;padding:2rem}.profile-page__header{margin-bottom:2rem}.profile-page__title{font-size:1.875rem;font-weight:700;color:#1f2937;margin-bottom:.5rem}.profile-page__subtitle{color:#6b7280;font-size:.95rem}.profile-page__message{padding:1rem;border-radius:.5rem;margin-bottom:1.5rem;display:flex;justify-content:space-between;align-items:center}.profile-page__message--success{background-color:#dcfce7;color:#166534;border:1px solid #bbf7d0}.profile-page__message--error{background-color:#fee2e2;color:#991b1b;border:1px solid #fecaca}.profile-page__message-close{background:none;border:none;font-size:1.5rem;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;opacity:.7}.profile-page__message-close:hover{opacity:1}.profile-page__content{display:flex;flex-direction:column;gap:2rem}.profile-page__section{background-color:#fff;border:1px solid #e5e7eb;border-radius:.5rem;padding:1.5rem}.profile-page__section-title{font-size:1.25rem;font-weight:600;color:#1f2937;margin-bottom:1.5rem}.profile-page__image-container{display:flex;justify-content:center;margin-bottom:1rem}.profile-page__image{width:150px;height:150px;border-radius:50%;object-fit:cover;border:3px solid #e5e7eb}.profile-page__image-placeholder{width:150px;height:150px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center}.profile-page__image-placeholder-text{font-size:3rem;font-weight:700;color:#fff}.profile-page__image-actions{display:flex;justify-content:center;gap:1rem;margin-bottom:.5rem}.profile-page__upload-button{background-color:#4f46e5;color:#fff;padding:.625rem 1.25rem;border-radius:.375rem;font-weight:500;cursor:pointer;border:none;transition:background-color .2s}.profile-page__upload-button:hover{background-color:#4338ca}.profile-page__delete-button{background-color:#ef4444;color:#fff;padding:.625rem 1.25rem;border-radius:.375rem;font-weight:500;cursor:pointer;border:none;transition:background-color .2s}.profile-page__delete-button:hover{background-color:#dc2626}.profile-page__hint{text-align:center;font-size:.875rem;color:#6b7280}.profile-page__field{margin-bottom:1.5rem}.profile-page__field:last-child{margin-bottom:0}.profile-page__label{display:block;font-weight:500;color:#374151;margin-bottom:.5rem}.profile-page__input{width:100%;padding:.625rem;border:1px solid #d1d5db;border-radius:.375rem;font-size:.95rem;transition:border-color .2s}.profile-page__input:focus{outline:none;border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e51a}.profile-page__input--disabled{background-color:#f3f4f6;color:#6b7280;cursor:not-allowed}.profile-page__save-button{margin-top:.75rem;background-color:#4f46e5;color:#fff;padding:.625rem 1.25rem;border-radius:.375rem;font-weight:500;cursor:pointer;border:none;transition:background-color .2s}.profile-page__save-button:hover{background-color:#4338ca}.btn{padding:.5rem 1rem;border-radius:.375rem;cursor:pointer;font-size:.9rem;border:1px solid transparent;transition:opacity .2s ease}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:#111827;color:#fff;border-color:#111827}.btn-primary:hover:not(:disabled){background:#1f2937}.btn-secondary{background:#fff;color:#111827;border-color:#d1d5db}.btn-secondary:hover:not(:disabled){background:#f9fafb}.btn-danger{background:#dc2626;color:#fff;border-color:#dc2626}.btn-danger:hover:not(:disabled){background:#b91c1c}.btn-small{padding:.3rem .6rem;font-size:.8rem}.btn-large{padding:.75rem 1.5rem;font-size:1rem}.btn-full-width{width:100%}.form-group{margin-bottom:1rem}.form-label{display:block;font-size:.85rem;font-weight:500;color:#374151;margin-bottom:.25rem}.form-input,.form-select,.form-textarea{width:100%;padding:.5rem;border-radius:.375rem;border:1px solid #d1d5db;font-size:.9rem;box-sizing:border-box}.form-input:focus,.form-select:focus,.form-textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.form-textarea{resize:vertical;min-height:80px}.form-error{color:#dc2626;font-size:.75rem;margin-top:.25rem}.form-required{color:#dc2626}.flash-message{padding:.75rem 1rem;border-radius:.375rem;font-size:.9rem;margin-bottom:1rem;border:1px solid}.flash-message--success{background:#ecfdf3;color:#14532d;border-color:#bbf7d0}.flash-message--error{background:#fee2e2;color:#991b1b;border-color:#fecaca}.flash-message--info{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.flash-message--warning{background:#fffbeb;color:#92400e;border-color:#fde68a}.card{background:#fff;border-radius:.5rem;box-shadow:0 1px 3px #00000014;overflow:hidden}.card-header{padding:1rem 1.5rem;background:#f9fafb;border-bottom:1px solid #e5e7eb}.card-body{padding:1.5rem}.card-footer{padding:1rem 1.5rem;background:#f9fafb;border-top:1px solid #e5e7eb}.table{width:100%;border-collapse:collapse;font-size:.9rem}.table th{text-align:left;padding:.75rem;background:#f3f4f6;border-bottom:1px solid #e5e7eb;font-weight:600;color:#374151}.table td{padding:.75rem;border-bottom:1px solid #e5e7eb}.table tr:nth-child(2n){background:#f9fafb}.table tr:nth-child(odd){background:#fff}.spinner{display:inline-block;width:1rem;height:1rem;border:2px solid #f3f4f6;border-radius:50%;border-top-color:#3b82f6;animation:spin 1s ease-in-out infinite}@keyframes spin{to{transform:rotate(360deg)}}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.text-sm{font-size:.85rem}.text-base{font-size:.9rem}.text-lg{font-size:1rem}.text-xl{font-size:1.1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.text-gray-600{color:#6b7280}.text-gray-700{color:#374151}.text-red-600{color:#dc2626}.text-green-600{color:#059669}.text-blue-600{color:#2563eb}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}
