.layout-container{display:flex;flex-direction:column;gap:1.5rem;width:100%}.layout-header{display:flex;justify-content:space-between;align-items:center;width:100%;padding-bottom:1rem;border-bottom:1px solid var(--border-color)}.layout-header h1{margin:0}.layout-header nav{display:flex;gap:1rem}.nav-button{background-color:transparent;border:1px solid var(--border-color);white-space:nowrap}.nav-button.active{background-color:var(--primary-color);border-color:var(--primary-color)}.layout-content{width:100%}.impersonate-banner{background-color:var(--primary-color);color:#fff;padding:.5rem 1.5rem;border-radius:8px;display:flex;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box}.impersonate-banner p{margin:0;font-weight:700}.impersonate-banner button{background-color:#fff3;border:1px solid white;color:#fff}.modal-overlay{position:fixed;inset:0;background-color:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-content{background-color:var(--surface-color);padding:20px;border-radius:8px;min-width:400px;max-width:90%;box-shadow:0 5px 15px #00000080;display:flex;flex-direction:column}.modal-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border-color);padding-bottom:10px;margin-bottom:20px}.modal-header h2{margin:0}.modal-close-btn{background:none;border:none;font-size:1.5rem;cursor:pointer;color:var(--text-color)}.editor-form{display:flex;flex-direction:column;gap:1rem}.editor-form label{display:flex;flex-direction:column;gap:.5rem;font-weight:700}.editor-form input,.editor-form select{padding:.5rem;border-radius:4px;border:1px solid var(--border-color);background-color:var(--background-color);color:var(--text-color);font-size:1rem}.form-buttons{display:flex;justify-content:flex-end;gap:1rem;margin-top:1rem}.form-buttons button[type=button]{background-color:#555}.notes-manager{display:flex;flex-direction:column;gap:1rem;min-width:500px;max-height:70vh}.notes-list-container{flex-grow:1;overflow-y:auto;border:1px solid var(--border-color);border-radius:4px;padding:.5rem}.notes-list{list-style-type:none;padding:0;margin:0}.notes-list li{padding:.75rem;border-bottom:1px solid var(--border-color)}.note-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.note-date{font-size:.8em;color:#aaa}.note-actions{display:flex;gap:.5rem}.note-text{margin:0;white-space:pre-wrap;word-break:break-word}.notes-footer{display:flex;justify-content:flex-end}.notes-manager .modal-overlay{z-index:1001}.skills-panel{display:flex;flex-direction:column}.skills-table{width:100%;border-collapse:collapse}.skills-table th,.skills-table td{padding:.75rem;text-align:left;border-bottom:1px solid var(--border-color)}.skills-table th{font-weight:700;background-color:var(--surface-color);border-bottom:2px solid var(--border-color)}.skills-table tbody tr{cursor:pointer;transition:background-color .2s}.skills-table tbody tr:hover{background-color:var(--hover-color)}.skills-table tbody tr.selected{background-color:var(--primary-color);color:var(--progressbar-text-color);font-weight:700}.actions-column{width:80px;text-align:center}.actions-column .small-btn{margin:0 .2rem}.progress-adder-wrapper{margin-top:auto;padding-top:1rem;border-top:1px solid var(--border-color)}.progress-adder .button-group{display:flex;justify-content:center;gap:.5rem;margin-top:.5rem}.progress-adder-placeholder{padding:1rem;text-align:center;color:#888}.history-container{min-width:500px;max-height:70vh;display:flex;flex-direction:column}.history-item{padding:.75rem;border-radius:6px;margin-bottom:.5rem;border-left:4px solid;display:flex;justify-content:space-between;align-items:center;gap:1rem;cursor:pointer;transition:background-color .2s}.history-item:hover{background-color:var(--hover-color)}.goals-panel{display:flex;flex-direction:column}.list-container{flex-grow:1;overflow-y:auto;min-height:300px;max-height:45vh;border:1px solid var(--border-color);border-radius:4px;padding:.5rem;margin-bottom:1rem}ul{list-style-type:none;padding:0;margin:0}.goals-list li{display:flex;align-items:center;padding:.75rem;border-bottom:1px solid var(--border-color);transition:background-color .2s}.goals-list li.completed{text-decoration:line-through;color:#888}.goal-desc{margin-left:.5rem;flex-grow:1}.goal-actions{margin-left:auto}.small-btn{background:none;border:none;padding:.2rem;font-size:1rem;cursor:pointer}.small-btn:disabled{cursor:not-allowed;opacity:.3}.panel-header{display:flex;align-items:center;margin-bottom:1rem;gap:.75rem}.icon-btn{background-color:transparent;border:none;padding:.5rem;cursor:pointer;border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;transition:background-color .2s}.icon-btn:hover{background-color:#ffffff1a}.goals-separator{height:0px;background-color:var(--border-color);margin:2rem}.history-container{min-width:550px;max-height:70vh;display:flex;flex-direction:column}.history-list{list-style-type:none;padding:0;margin:0;overflow-y:auto}.history-item{padding:.75rem;border-radius:6px;margin-bottom:.5rem;border-left:4px solid;display:flex;justify-content:space-between;align-items:center;gap:1rem}.history-item.completed{background-color:#3ea9471a;border-color:#3ea947}.history-item.reverted{background-color:#d43f3f1a;border-color:#d43f3f}.history-item.progress-added{background-color:#4682b41a;border-color:#4682b4}.history-item-main{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem}.history-description{margin:0;font-weight:500;text-align:left}.history-skill-name{margin:0;font-size:.85em;color:var(--text-color-muted)}.history-xp{margin:0;font-weight:700}.history-item-details{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem;font-size:.8em;color:var(--text-color-muted);text-align:right;white-space:nowrap}.history-action{font-weight:700}.main-container{display:flex;flex-direction:column;gap:1.5rem;width:100%}.character-panel{width:100%}.content-panel{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;width:100%}.character-header{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.character-name-input{font-size:1.5em;font-weight:700;color:var(--text-color);background-color:transparent;border:none;border-bottom:2px solid transparent;transition:border-color .2s;padding:.2rem;flex-grow:1;min-width:100px}.character-name-input:focus{outline:none;border-bottom-color:var(--primary-color);background-color:#ffffff0d}.character-header h2{margin:0;white-space:nowrap}.group-icon{display:inline-block;margin-right:.75em;font-size:.9em;opacity:.7;cursor:help;vertical-align:middle}.skills-panel,.goals-panel{display:flex;flex-direction:column}.view-switcher{display:flex;gap:.5rem;margin-bottom:1rem;background-color:var(--surface-color);padding:.5rem;border-radius:8px;align-self:flex-start}.view-switcher button{background-color:transparent;border:1px solid transparent}.view-switcher button.active{background-color:var(--primary-color);border-color:var(--primary-color)}.group-management-view{display:flex;flex-direction:column;gap:1rem}.group-selector{display:flex;align-items:center;gap:1rem;background-color:var(--surface-color);padding:1rem;border-radius:8px}.reel-container{width:100%;height:150px;position:relative;overflow:hidden;border:2px solid var(--border-color);border-radius:8px;background-color:var(--background-color);box-shadow:none}.reel-mask{width:100%;height:100%}.reel{height:100%;display:flex;align-items:center;transform:translate(0)}.reel-item{flex-shrink:0;width:120px;height:140px;margin:0 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:var(--surface-color);border-radius:8px;border:1px solid var(--border-color);text-align:center;box-shadow:0 2px 4px #0000000d}.reel-item img{width:100px;height:100px;object-fit:contain}.reel-item span{font-size:.8rem;margin-top:5px}.reel-indicator{position:absolute;top:0;left:50%;transform:translate(-50%);width:4px;height:100%;background-color:#ff4d4d;box-shadow:0 0 10px #ff4d4d;border-radius:2px}.rewards-container{display:flex;flex-direction:column;gap:1.5rem;width:100%}.rewards-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem}.lootbox-panel,.history-panel{grid-column:span 2}.management-panel,.history-panel{display:flex;flex-direction:column}.reel-wrapper{margin:1rem 0}.won-item-display{padding:1rem;margin-top:1rem;border-radius:8px;font-size:1.2rem;font-weight:700;border:2px solid}.rarity-common{background-color:#333;border-color:#777}.rarity-uncommon{background-color:#1a4a1a;border-color:#3c8d3c}.rarity-rare{background-color:#1a3a6a;border-color:#3c78d8}.rarity-unique{background-color:#5a1a6a;border-color:#a33cd8}.rarity-legendary{background-color:#b8860b;border-color:gold}.management-list,.history-list{flex-grow:1;overflow-y:auto;min-height:200px;max-height:30vh;border:1px solid var(--border-color);border-radius:4px;padding:.5rem;margin:1rem 0}.management-list li,.history-list li{display:flex;justify-content:space-between;align-items:center;padding:.5rem;border-bottom:1px solid var(--border-color)}.item-actions{display:flex;gap:.5rem}.history-list .date{color:#aaa;font-size:.9rem}.rewards-table{width:100%;border-collapse:collapse}.rewards-table th,.rewards-table td{padding:.75rem;text-align:left;border-bottom:1px solid var(--border-color)}.rewards-table th{font-weight:700;background-color:var(--surface-color);border-bottom:2px solid var(--border-color)}.rewards-table tbody tr{transition:background-color .2s ease-in-out}.rewards-table tbody tr:hover{background-color:#ffffff1a}.rewards-table tr.rarity-common{background-color:#0000000d;color:var(--text-color)}.rewards-table tr.rarity-uncommon{background-color:#2e8b5733}.rewards-table tr.rarity-rare{background-color:#4682b440}.rewards-table tr.rarity-unique{background-color:#9400d340}.rewards-table tr.rarity-legendary{background-color:#ffd70059;color:#1a1a1a;font-weight:700}.rewards-table tr.rarity-legendary button{color:#1a1a1a}.settings-container{width:100%;display:flex;justify-content:center}.settings-card{width:100%;max-width:600px;padding:2em;background-color:var(--surface-color);border-radius:8px;border:1px solid var(--border-color);text-align:left;display:flex;flex-direction:column;gap:1.5rem}.settings-card h3{margin:0;padding-bottom:1rem;border-bottom:1px solid var(--border-color)}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:2rem}.settings-row label{font-weight:700}.settings-row select{padding:.5rem;border-radius:4px;border:1px solid var(--border-color);background-color:var(--background-color);color:var(--text-color);font-size:1rem}.settings-actions{display:flex;justify-content:flex-end;margin-top:1rem}.settings-message{text-align:center;padding:.5rem;border-radius:4px}.settings-message.success{color:#a3e9a4;background-color:#3ea94733}.settings-message.error{color:#f7a7a3;background-color:#d43f3f33}.groups-container{display:grid;grid-template-columns:1fr 2fr;gap:1.5rem;width:100%}.panel-header{display:flex;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--border-color)}.panel-header h3{margin:0}.groups-list{list-style:none;padding:0;margin:0}.groups-list li{padding:.75rem;border-radius:6px;cursor:pointer;transition:background-color .2s;margin-bottom:.5rem;border:1px solid var(--border-color)}.groups-list li:hover{background-color:var(--hover-color)}.groups-list li.selected{background-color:var(--primary-color);color:var(--progressbar-text-color);font-weight:700}.members-list,.search-results-list{list-style:none;padding:0;margin:0;max-height:200px;overflow-y:auto}.members-list li,.search-results-list li{display:flex;justify-content:space-between;align-items:center;padding:.5rem;border-bottom:1px solid var(--border-color)}.user-search input{width:100%;margin-bottom:1rem}.user-search{position:relative}.search-results-list{position:absolute;top:100%;left:0;right:0;background-color:var(--surface-color);border:1px solid var(--border-color);border-top:none;border-radius:0 0 6px 6px;z-index:10;max-height:200px;overflow-y:auto}.search-results-list li{padding:.75rem;cursor:pointer}.search-results-list li:hover{background-color:var(--hover-color)}.group-detail-view{grid-column:2 / 3;display:flex;flex-direction:column;gap:1.5rem}.member-actions{display:flex;gap:.5rem}.small-btn{background:none;border:none;padding:.2rem;font-size:1.2rem;cursor:pointer;opacity:.7;transition:opacity .2s}.small-btn:hover{opacity:1}.users-table-container{padding:0}.users-table{width:100%;border-collapse:collapse}.users-table th,.users-table td{padding:1rem;text-align:left;border-bottom:1px solid var(--border-color)}.users-table th{background-color:var(--surface-color);font-weight:700}.users-table tbody tr:hover{background-color:var(--hover-color)}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-size:12px;--primary-color: #646cff;color-scheme:light dark}:root,body[data-theme=light]{--background-color: #e9ecef;--surface-color: #f0f0f0;--text-color: #213547;--text-color-muted: #555;--border-color: #d1d1d1;--button-background: #f0f0f0;--button-hover-border: #646cff;--progressbar-text-color: #213547;--disabled-background: #e9ecef;--disabled-text-color: #adb5bd;--hover-color: #d1d1d1}body[data-theme=dark]{--background-color: #242424;--surface-color: #2f2f2f;--text-color: rgba(255, 255, 255, .87);--text-color-muted: #888;--border-color: #444;--button-background: #1a1a1a;--button-hover-border: #646cff;--progressbar-text-color: #ffffff;--disabled-background: #333;--disabled-text-color: #777;--hover-color: #444}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh;background-color:var(--background-color);color:var(--text-color);transition:background-color .3s,color .3s}#root{max-width:1380px;margin:0 auto;padding:2rem;text-align:center;width:100%}button{border-radius:8px;border:1px solid var(--border-color);padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:var(--button-background);color:var(--text-color);cursor:pointer;transition:border-color .25s}button:hover{border-color:var(--button-hover-border)}button:disabled{background-color:var(--disabled-background);color:var(--disabled-text-color);cursor:not-allowed;border-color:var(--border-color)}.card{padding:2em;background-color:var(--surface-color);border-radius:8px;border:1px solid var(--border-color);text-align:left}input,select{padding:.5rem;border-radius:4px;border:1px solid var(--border-color);background-color:var(--background-color);color:var(--text-color);font-size:1rem;font-family:inherit}input:focus,select:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 2px #646cff33}
