.profile-editor{max-width:800px;margin:0 auto;padding:20px}.profile-editor h2{color:#282c34;margin-bottom:20px}.profile-loading,.profile-error{text-align:center;padding:40px;font-size:18px}.profile-error{color:#f44336}.success-message{background-color:#4caf50;color:#fff;padding:12px;border-radius:4px;margin-bottom:20px;text-align:center}.profile-section{background:#fff;padding:20px;margin-bottom:20px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.profile-section h3{margin-top:0;margin-bottom:20px;color:#282c34;border-bottom:2px solid #e0e0e0;padding-bottom:10px}.profile-section label{display:block;margin-bottom:15px;font-weight:500;color:#333}.profile-section input[type=text],.profile-section input[type=number],.profile-section select{width:100%;padding:8px 12px;margin-top:5px;border:1px solid #ddd;border-radius:4px;font-size:14px;box-sizing:border-box}.profile-section input[type=checkbox]{margin-right:8px;width:auto}.profile-section input[type=text]:focus,.profile-section input[type=number]:focus,.profile-section select:focus{outline:none;border-color:#282c34}.checkbox-group{margin-bottom:15px}.checkbox-group>label:first-child{font-weight:600;margin-bottom:10px}.checkbox-group label{display:block;margin-bottom:8px;font-weight:400}.modifiers-section{background-color:#f5f5f5}.modifiers-display{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:15px}.modifiers-display>div{background:#fff;padding:12px;border-radius:4px;text-align:center;font-weight:500;color:#282c34}.profile-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.profile-actions button{padding:12px 24px;font-size:16px;border:none;border-radius:4px;cursor:pointer;transition:background-color .3s}.save-button{background-color:#282c34;color:#fff}.save-button:hover:not(:disabled){background-color:#1a1d23}.save-button:disabled{background-color:#ccc;cursor:not-allowed}.reload-button{background-color:#f5f5f5;color:#282c34;border:1px solid #ddd}.reload-button:hover{background-color:#e0e0e0}.navigation{display:flex;gap:2rem;padding:1.5rem 2rem;background-color:#fff;border-bottom:2px solid #e0e0e0;margin-bottom:2rem}.nav-link{text-decoration:none;color:#666;font-weight:500;font-size:1.1rem;padding:.5rem 1rem;border-bottom:3px solid transparent;transition:all .3s ease}.nav-link:hover{color:#282c34}.nav-link.active{color:#282c34;border-bottom-color:#4caf50}.session-list-container{padding:2rem;max-width:1200px;margin:0 auto}.session-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.session-list-header h2{margin:0;color:#282c34}.refresh-button{padding:.5rem 1rem;background-color:#4caf50;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.9rem}.refresh-button:hover{background-color:#45a049}.retry-button{margin-top:1rem;padding:.5rem 1.5rem;background-color:#2196f3;color:#fff;border:none;border-radius:4px;cursor:pointer}.empty-state{text-align:center;padding:4rem 2rem;background-color:#f9f9f9;border-radius:8px;border:2px dashed #ddd}.empty-state p{margin:.5rem 0;color:#666}.empty-hint{font-size:.9rem;color:#999}.session-table{background-color:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;overflow:hidden}.table-header{display:grid;grid-template-columns:2fr 2fr 1fr 1fr 2fr;gap:1rem;padding:1rem 1.5rem;background-color:#f5f5f5;font-weight:600;color:#282c34;border-bottom:2px solid #e0e0e0}.table-row{display:grid;grid-template-columns:2fr 2fr 1fr 1fr 2fr;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid #f0f0f0;transition:background-color .2s ease}.table-row:hover{background-color:#f9f9f9}.table-row:last-child{border-bottom:none}.table-cell{display:flex;align-items:center}.session-id{font-family:monospace;font-size:.9rem;color:#666}.date-display{display:flex;flex-direction:column}.date-primary{font-weight:500;color:#282c34;margin-bottom:.25rem}.date-secondary{font-size:.85rem;color:#999}.actions{gap:.5rem}.action-button{padding:.4rem 1rem;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;transition:all .2s ease}.view-button{background-color:#2196f3;color:#fff}.view-button:hover{background-color:#0b7dda}.delete-button{background-color:#f44336;color:#fff}.confirm-button{background-color:#ff5722;color:#fff}.cancel-button{background-color:#9e9e9e;color:#fff}@media (max-width: 768px){.table-header,.table-row{grid-template-columns:1fr;gap:.5rem}.table-header{display:none}.table-cell{padding:.5rem 0}.session-id:before{content:"Session: ";font-weight:600}}.session-detail-container{padding:2rem;max-width:1200px;margin:0 auto}.session-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem;padding:1.5rem;background-color:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a}.header-left{display:flex;gap:1.5rem;align-items:flex-start}.back-button{padding:.5rem 1rem;background-color:#9e9e9e;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;white-space:nowrap}.back-button:hover{background-color:#757575}.session-info h2{margin:0 0 1rem;color:#282c34}.session-metadata{display:flex;flex-direction:column;gap:.5rem}.metadata-item{display:flex;gap:.5rem;font-size:.9rem}.metadata-label{font-weight:600;color:#666}.session-id{font-family:monospace;color:#282c34}.header-actions{display:flex;gap:.5rem}.delete-button{padding:.5rem 1rem;background-color:#f44336;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.9rem}.delete-button:hover{background-color:#da190b}.delete-confirm{display:flex;gap:.5rem}.confirm-button{padding:.5rem 1rem;background-color:#ff5722;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.9rem}.confirm-button:hover{background-color:#e64a19}.cancel-button{padding:.5rem 1rem;background-color:#9e9e9e;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.9rem}.cancel-button:hover{background-color:#757575}.messages-container{display:flex;flex-direction:column;gap:1rem;padding:1.5rem;background-color:#f9f9f9;border-radius:8px;min-height:400px;max-height:600px;overflow-y:auto}.message{display:flex;flex-direction:column;max-width:70%;padding:1rem;border-radius:8px;box-shadow:0 1px 3px #0000001a}.user-message{align-self:flex-end;background-color:#2196f3;color:#fff}.assistant-message{align-self:flex-start;background-color:#4caf50;color:#fff}.message-header{display:flex;justify-content:space-between;margin-bottom:.5rem;font-size:.85rem;opacity:.9}.message-role{font-weight:600}.message-timestamp{font-size:.8rem}.message-held-item{font-size:.75rem;font-style:italic;opacity:.85;background-color:#ffffff26;padding:.1rem .4rem;border-radius:8px}.message-content{line-height:1.5;white-space:pre-wrap;word-wrap:break-word}.message-timing{margin-top:.5rem;display:flex;gap:.75rem;align-items:center;font-size:.75rem;opacity:.9}.timing-badge{background-color:#fff3;padding:.2rem .5rem;border-radius:12px;font-weight:600;cursor:help}.timing-breakdown{font-size:.7rem;opacity:.8}.empty-messages{display:flex;justify-content:center;align-items:center;height:100%;color:#999;font-size:1.1rem}.loading,.error{text-align:center;padding:3rem;font-size:1.1rem;color:#666}.error{color:#f44336}.retry-button{margin-top:1rem;margin-right:.5rem;padding:.5rem 1.5rem;background-color:#2196f3;color:#fff;border:none;border-radius:4px;cursor:pointer}.retry-button:hover{background-color:#0b7dda}.stat-badge{background-color:#2196f3;color:#fff;padding:.2rem .6rem;border-radius:12px;font-size:.85rem;font-weight:600}.safety-section{margin-bottom:2rem;padding:1.5rem;background-color:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a}.safety-section h3{margin:0 0 1rem;color:#282c34;font-size:1.2rem}.safety-stats{display:flex;gap:2rem;flex-wrap:wrap}.safety-stat{display:flex;flex-direction:column;gap:.5rem}.safety-label{font-size:.9rem;color:#666;font-weight:600}.safety-value{font-size:1.5rem;font-weight:700;padding:.5rem 1rem;border-radius:4px;text-align:center}.safety-value.safe{background-color:#e8f5e9;color:#2e7d32}.safety-value.warning{background-color:#fff3e0;color:#f57c00}.game-commands-section{margin-bottom:2rem;padding:1.5rem;background-color:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a}.game-commands-section h3{margin:0 0 1rem;color:#282c34;font-size:1.2rem}.commands-list{display:flex;flex-direction:column;gap:1.5rem}.command-group{border:1px solid #e0e0e0;border-radius:6px;padding:1rem;background-color:#fafafa}.command-group-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:1px solid #e0e0e0}.command-timestamp{font-size:.85rem;color:#666;font-weight:600}.command-count{font-size:.8rem;color:#999}.commands-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}.command-card{background-color:#fff;border-radius:6px;padding:1rem;border-left:4px solid #2196F3;box-shadow:0 1px 3px #0000001a}.command-card.priority-high{border-left-color:#f44336}.command-card.priority-medium{border-left-color:#ff9800}.command-card.priority-low{border-left-color:#4caf50}.command-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:1px solid #f0f0f0}.command-type{font-weight:700;font-size:.9rem;color:#282c34}.command-priority{font-size:.75rem;padding:.2rem .5rem;border-radius:12px;font-weight:600}.command-priority.priority-high{background-color:#ffebee;color:#c62828}.command-priority.priority-medium{background-color:#fff3e0;color:#ef6c00}.command-priority.priority-low{background-color:#e8f5e9;color:#2e7d32}.command-params{display:flex;flex-direction:column;gap:.5rem}.param{display:flex;justify-content:space-between;font-size:.85rem;padding:.25rem 0}.param-label{color:#666;font-weight:600}.param-value{color:#282c34;font-weight:500}.param.reason{flex-direction:column;gap:.25rem;padding-top:.5rem;border-top:1px solid #f0f0f0;margin-top:.25rem}.param.reason .param-value{color:#666;font-size:.8rem;font-style:italic;line-height:1.4}.statistics-section{margin-bottom:2rem;padding:1.5rem;background-color:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a}.statistics-section h3{margin:0 0 1rem;color:#282c34;font-size:1.2rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.stat-card{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 1rem;background-color:#f5f5f5;border-radius:6px;text-align:center;transition:transform .2s}.stat-card:hover{transform:translateY(-2px);box-shadow:0 2px 8px #00000026}.stat-label{font-size:.85rem;color:#666;font-weight:600;margin-bottom:.5rem}.stat-value{font-size:2rem;font-weight:700;color:#2196f3}.messages-container{margin-bottom:2rem}.messages-container h3{margin:0 0 1rem;color:#282c34;font-size:1.2rem;padding:0 .5rem}.system-prompt-section{margin-bottom:2rem;padding:1.5rem;background-color:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a}.system-prompt-section details summary{cursor:pointer;list-style:none;display:flex;align-items:center}.system-prompt-section details summary::-webkit-details-marker{display:none}.system-prompt-section details summary h3{margin:0;color:#282c34;font-size:1.2rem}.system-prompt-section details summary h3:before{content:"▶ ";display:inline-block;transition:transform .2s}.system-prompt-section details[open] summary h3:before{transform:rotate(90deg)}.system-prompt-content{margin-top:1rem;padding:1rem;background-color:#f5f5f5;border-radius:4px;border-left:4px solid #2196F3}.system-prompt-content pre{margin:0;white-space:pre-wrap;word-wrap:break-word;font-family:Courier New,monospace;font-size:.85rem;line-height:1.5;color:#333}.user-profile-section{margin-bottom:2rem;padding:1.5rem;background-color:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a}.user-profile-section h3{margin:0 0 1rem;color:#282c34;font-size:1.2rem}.profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.profile-item{display:flex;flex-direction:column;gap:.3rem;padding:.75rem;background-color:#f9f9f9;border-radius:4px;border-left:3px solid #4CAF50}.profile-label{font-size:.8rem;color:#666;font-weight:600;text-transform:uppercase}.profile-value{font-size:1rem;color:#282c34;font-weight:500}.difficulty-section{margin-bottom:2rem;padding:1.5rem;background-color:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a}.difficulty-section h3{margin:0 0 1rem;color:#282c34;font-size:1.2rem}.difficulty-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}.difficulty-item{display:flex;flex-direction:column;gap:.3rem;padding:.75rem;background-color:#fff3e0;border-radius:4px;border-left:3px solid #ff9800}.difficulty-label{font-size:.8rem;color:#666;font-weight:600;text-transform:uppercase}.difficulty-value{font-size:1.2rem;color:#ef6c00;font-weight:700}.performance-section{margin-bottom:2rem;padding:1.5rem;background-color:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a}.performance-section h3{margin:0 0 1rem;color:#282c34;font-size:1.2rem}.performance-content{padding:1rem;background-color:#e3f2fd;border-radius:4px;border-left:4px solid #2196F3}.performance-content pre{margin:0;white-space:pre-wrap;word-wrap:break-word;font-family:Courier New,monospace;font-size:.85rem;line-height:1.5;color:#1565c0}.safety-details{margin-top:1.5rem;padding-top:1rem;border-top:1px solid #e0e0e0}.safety-details h4{margin:0 0 .75rem;color:#666;font-size:1rem;font-weight:600}.safety-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.safety-item{padding:.75rem;background-color:#fff3e0;border-left:4px solid #ff9800;border-radius:4px;font-size:.85rem;color:#e65100;line-height:1.4}.safety-item.warning{background-color:#ffebee;border-left-color:#f44336;color:#c62828}.timing-stats-section{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e0e0e0}.timing-stats-section h4{margin:0 0 1rem;color:#666;font-size:1rem;font-weight:600}.timing-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem}.timing-stat-card{display:flex;flex-direction:column;align-items:center;padding:.75rem;background-color:#e8f5e9;border-radius:4px;border-bottom:3px solid #4CAF50}.timing-stat-label{font-size:.75rem;color:#666;font-weight:600;text-transform:uppercase;margin-bottom:.3rem}.timing-stat-value{font-size:1.1rem;color:#2e7d32;font-weight:700}.message-error{border:2px solid #f44336}.message-retried{border:2px solid #ff9800}.message-error-badge,.message-retry-badge,.message-performance-badge{font-size:.7rem;padding:.15rem .4rem;border-radius:8px;font-weight:600;background-color:#ffffff40}.message-error-badge{background-color:#f4433633;border:1px solid rgba(244,67,54,.4)}.message-retry-badge{background-color:#ff980033;border:1px solid rgba(255,152,0,.4)}.message-performance-badge{background-color:#2196f333;border:1px solid rgba(33,150,243,.4);cursor:help}@media (max-width: 768px){.session-header{flex-direction:column;gap:1rem}.header-left{flex-direction:column;width:100%}.header-actions{width:100%}.delete-button,.confirm-button,.cancel-button{flex:1}.message{max-width:85%}.messages-container{padding:1rem}.commands-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,1fr)}.safety-stats{flex-direction:column;gap:1rem}.profile-grid,.difficulty-grid,.timing-stats-grid{grid-template-columns:1fr}}.agent-prompts-container{margin-top:1rem;padding:.75rem;background-color:#f8f9fa;border-radius:6px;border:1px solid #dee2e6}.agent-prompts-container details{width:100%}.agent-prompts-container details summary{cursor:pointer;-webkit-user-select:none;user-select:none;list-style:none;padding:.5rem;font-weight:500;color:#495057;transition:color .2s ease}.agent-prompts-container details summary::-webkit-details-marker{display:none}.agent-prompts-container details summary:hover{color:#2196f3}.agent-prompts-container details[open] summary{color:#2196f3;margin-bottom:1rem}.prompts-title{font-size:.9rem}.agent-prompts-content{margin-top:1rem}.prompt-tabs{display:flex;gap:.5rem;margin-bottom:1rem;border-bottom:2px solid #dee2e6;flex-wrap:wrap}.prompt-tab{padding:.5rem 1rem;background-color:transparent;border:none;border-bottom:3px solid transparent;cursor:pointer;font-size:.9rem;font-weight:500;color:#6c757d;transition:all .2s ease;white-space:nowrap}.prompt-tab:hover{color:#495057;background-color:#f8f9fa}.prompt-tab.active{color:#2196f3;border-bottom-color:#2196f3;background-color:#fff}.prompt-content{background-color:#fff;padding:1rem;border-radius:6px;border:1px solid #dee2e6;max-height:400px;overflow-y:auto}.prompt-content pre{margin:0;white-space:pre-wrap;word-wrap:break-word;font-family:Courier New,Courier,monospace;font-size:.85rem;line-height:1.5;color:#212529}.prompt-empty{text-align:center;color:#6c757d;padding:2rem;font-style:italic}.session-prompts-section{margin-bottom:2rem;padding:1.5rem;background-color:#fff8e1;border-radius:8px;box-shadow:0 2px 8px #0000001a;border-left:4px solid #ffc107}.session-prompts-section h3{margin:0 0 .5rem;color:#282c34;font-size:1.2rem}.section-description{margin:0 0 1rem;font-size:.9rem;color:#666;font-style:italic;line-height:1.4}.prompts-changed-indicator{margin-top:1rem}.prompts-changed-badge{display:inline-block;background-color:#fff3e0;color:#ef6c00;padding:.3rem .6rem;border-radius:12px;font-size:.75rem;font-weight:600;margin-bottom:.5rem;border:1px solid #ffb74d;cursor:help}.api-key-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000}.api-key-modal{background-color:#fff;padding:2.5rem;border-radius:8px;box-shadow:0 4px 20px #0000004d;max-width:450px;width:90%}.api-key-modal h2{margin:0 0 .5rem;color:#282c34;font-size:1.5rem}.api-key-modal p{margin:0 0 1.5rem;color:#666;font-size:.95rem}.api-key-modal form{display:flex;flex-direction:column;gap:1rem}.api-key-input{padding:.75rem;font-size:1rem;border:2px solid #ddd;border-radius:4px;transition:border-color .2s ease}.api-key-input:focus{outline:none;border-color:#4caf50}.error-message{color:#f44336;font-size:.9rem;margin-top:-.5rem}.submit-button{padding:.75rem 1.5rem;background-color:#4caf50;color:#fff;border:none;border-radius:4px;font-size:1rem;font-weight:600;cursor:pointer;transition:background-color .2s ease}.submit-button:hover{background-color:#45a049}.api-key-hint{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #eee;color:#999;font-size:.85rem;text-align:center}.App{min-height:100vh;display:flex;flex-direction:column;background-color:#f5f5f5}.App-header{background-color:#282c34;padding:30px 20px;color:#fff;box-shadow:0 2px 4px #0000001a}.header-content{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}.App-header h1{margin:0 0 10px;font-size:32px}.subtitle{margin:0;font-size:14px;color:#aaa}.logout-button{padding:.5rem 1rem;background-color:#f44336;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;transition:background-color .2s ease}.logout-button:hover{background-color:#da190b}.loading-screen{display:flex;justify-content:center;align-items:center;min-height:100vh;font-size:1.2rem;color:#666}.App-main{flex:1;padding:40px 20px;max-width:1200px;margin:0 auto;width:100%}.App-footer{background-color:#282c34;padding:15px 20px;color:#aaa;text-align:center;font-size:14px}.App-footer p{margin:0}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f5f5f5}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
