.slack-history{padding:20px;color:#333}.slack-history h1{margin-bottom:20px;color:#333}.filter-controls{margin-bottom:20px;display:flex;align-items:center;gap:10px}.filter-button{padding:8px 15px;background-color:#f0f0f0;border:1px solid #ddd;border-radius:4px;cursor:pointer;transition:all .2s}.filter-button:hover{background-color:#e0e0e0}.filter-button.active{background-color:#1890ff;color:#fff;border-color:#1890ff}.slack-history-container{display:flex;gap:20px;height:calc(100vh - 200px)}.slack-list{flex:1;max-width:300px;overflow-y:auto;border:1px solid #ddd;border-radius:5px;background-color:#f9f9f9}.slack-item{padding:12px;border-bottom:1px solid #ddd;cursor:pointer;transition:background-color .2s;position:relative}.slack-item:hover{background-color:#f0f0f0}.slack-item.selected{background-color:#e6f4ff;border-left:4px solid #1890ff}.slack-item.claude{border-left:4px solid #9333ea}.slack-item.slack{border-left:4px solid #16a34a}.slack-item.selected.claude{background-color:#f5eefe;border-left:4px solid #9333ea}.slack-item.selected.slack{background-color:#ecfdf5;border-left:4px solid #16a34a}.slack-item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.slack-type{font-weight:700;font-size:14px}.slack-timestamp{font-size:12px;color:#666}.source-badge{font-size:10px;padding:2px 6px;border-radius:10px;font-weight:700;color:#fff}.source-badge.claude{background-color:#9333ea}.source-badge.slack{background-color:#16a34a}.detail-badge{font-size:12px;margin-left:10px;vertical-align:middle}.slack-details{flex:3;overflow-y:auto;border:1px solid #ddd;border-radius:5px;padding:20px;background-color:#fff}.slack-details h2{margin-bottom:20px;padding-bottom:10px;border-bottom:1px solid #eee;display:flex;align-items:center}.detail-section{margin-bottom:20px}.detail-section h3{margin-bottom:10px;font-size:16px}.detail-section pre{background-color:#f5f5f5;padding:10px;border-radius:5px;overflow-x:auto;font-size:13px;line-height:1.5;border:1px solid #eee}.no-selection{display:flex;justify-content:center;align-items:center;height:100%;color:#888;font-style:italic}.no-logs{padding:20px;text-align:center;color:#888;font-style:italic}.conversation-history{padding:20px;height:100%;overflow:hidden;display:flex;flex-direction:column}.conversation-history h1{margin-top:0;margin-bottom:20px;color:#333}.filter-section{background-color:#f5f5f5;border-radius:6px;padding:6px 8px;margin-bottom:10px;border:1px solid #e0e0e0}.filter-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.filter-section h2{margin:0;font-size:.75rem;color:#555;font-weight:600}.filter-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}.filter-group{display:flex;flex-direction:column;min-width:120px;flex:1}.filter-group label{margin-bottom:2px;font-weight:500;color:#555;font-size:.7rem}.filter-group input{padding:4px 6px;border:1px solid #ccc;border-radius:3px;font-size:.75rem;height:24px}.filter-buttons{display:flex;gap:5px}.filter-buttons button{padding:3px 8px;background-color:#4a90e2;color:#fff;border:none;border-radius:3px;cursor:pointer;font-weight:500;font-size:.7rem;transition:background-color .2s}.filter-buttons button:hover{background-color:#3a80d2}.filter-buttons button:last-child{background-color:#f0f0f0;color:#333}.filter-buttons button:last-child:hover{background-color:#e0e0e0}.conversation-container{display:flex;flex:1;gap:15px;overflow:hidden;margin-top:5px}.conversation-list{flex:0 0 300px;background-color:#f9f9f9;border-radius:8px;padding:15px 10px 15px 15px;max-height:90vh;height:90vh;overflow-y:auto;scroll-behavior:smooth}.conversation-list h2{margin-top:0;margin-bottom:15px;font-size:1.2rem;color:#444}.conversation-item{padding:12px;border-radius:6px;margin-bottom:10px;background-color:#fff;border:1px solid #eee;cursor:pointer;transition:all .2s}.conversation-item:hover{border-color:#4a90e2;box-shadow:0 2px 5px #0000001a}.conversation-item.selected{background-color:#e6f0ff;border-color:#4a90e2;box-shadow:0 2px 5px #0000001a}.conversation-title{font-weight:600;margin-bottom:5px;color:#333;word-break:break-word}.conversation-meta{display:flex;justify-content:space-between;font-size:.85rem;color:#777;margin-bottom:5px}.conversation-user{font-size:.85rem;color:#666}.conversation-tokens{font-size:.85rem;color:#666;margin-top:5px;padding-top:5px;border-top:1px dotted #eee}.conversation-detail{flex:1;overflow-y:auto;background-color:#fff;border-radius:8px;padding:20px;border:1px solid #eee}.conversation-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.conversation-header h2{margin:0;color:#333}.conversation-actions{display:flex;gap:10px}.export-button,.back-button{padding:8px 15px;border:none;border-radius:4px;cursor:pointer;font-weight:500;transition:background-color .2s}.export-button{background-color:#4caf50;color:#fff}.export-button:hover{background-color:#3d9140}.back-button{background-color:#f0f0f0;color:#333}.back-button:hover{background-color:#e0e0e0}.conversation-info{background-color:#f9f9f9;padding:15px;border-radius:6px;margin-bottom:20px;font-size:.9rem;color:#555;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}.messages-container{margin-top:20px;overflow-y:auto;padding-right:10px;scroll-behavior:smooth;max-height:90vh;height:90vh;display:flex;flex-direction:column}.messages-container>div{flex-shrink:0}.messages-container h3{margin-top:0;margin-bottom:15px;color:#444}.message{margin-bottom:15px;padding:12px;border-radius:6px;border:1px solid #eee}.message-header{display:flex;justify-content:space-between;margin-bottom:8px;font-size:.85rem}.message-role{font-weight:600;text-transform:uppercase;color:#555}.message-timestamp{color:#888}.message-content{word-break:break-word}.message-content pre{background-color:#f5f5f5;padding:10px;border-radius:4px;overflow-x:auto;font-size:.9rem}.message-text{white-space:pre-wrap}.user-message{background-color:#f0f7ff;border-left:3px solid #4a90e2}.assistant-message{background-color:#f9f9f9;border-left:3px solid #888}.tool-use-message{background-color:#fff8e6;border-left:3px solid #f5a623}.tool-result-message{background-color:#f0fff0;border-left:3px solid #4caf50}.slack-message{background-color:#f5f0ff;border-left:3px solid #9c27b0}.tool-use,.tool-result{margin-top:8px}.tool-name,.tool-id{font-weight:600;margin-bottom:5px;color:#555}.tool-input,.tool-output{margin:0;background-color:#f5f5f5;padding:10px;border-radius:4px;overflow-x:auto;font-size:.9rem}.loading,.error,.no-selection,.no-conversations{display:flex;justify-content:center;align-items:center;height:100%;color:#666;font-size:1.1rem}.error{color:#e53935}@media (max-width: 768px){.conversation-container{flex-direction:column;height:auto}.conversation-list,.conversation-detail{flex:none;width:100%;max-height:400px}}.loading-more,.loading-more-messages{text-align:center;padding:15px;font-style:italic;color:#666}.end-of-list{text-align:center;padding:15px;color:#666;font-weight:700;margin-top:10px;border-top:1px solid #eee}.load-more-button-container{text-align:center;padding:15px;margin-top:10px}.load-more-button{padding:8px 16px;background-color:#f5f5f5;border:1px solid #ddd;border-radius:4px;cursor:pointer}.load-more-button:hover{background-color:#e5e5e5}.conversation-item:last-child,.message:last-child{margin-bottom:20px}.expandable-json{position:relative;border:1px solid #ddd;border-radius:4px;margin:8px 0;background-color:#f8f8f8}.toggle-json{position:absolute;top:-21px;right:0;padding:3px 8px;background-color:#6d6d73;border:1px solid #ccc;border-radius:3px;font-size:12px;cursor:pointer;z-index:1}.toggle-json:hover{background-color:#221f1f}.expandable-json pre{margin:0;padding:10px;overflow-x:auto;font-family:monospace;line-height:1.4;color:#333}.tool-input,.tool-output{margin-top:5px;max-width:100%}.cache-savings-summary{background-color:#fff;border-radius:6px;width:100%;margin:0;padding:0;box-shadow:none}.cache-metrics{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}.cache-metrics div{flex:1;min-width:auto;background-color:#f2f9f4;padding:2px 7px;border-radius:3px;font-size:.7rem;color:#333;border-left:1px solid #2ecc71}.token-info{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.token-info div{background-color:#f5f5f5;padding:4px 8px;border-radius:4px;font-size:.85rem}.conversation-item-tokens{display:flex;flex-wrap:wrap;gap:8px;margin-top:5px;font-size:.8rem;color:#666}.conversation-item-tokens div{background-color:#f0f0f0;padding:2px 6px;border-radius:3px}.cache-savings-badge{display:inline-block;margin-left:8px;font-size:14px;cursor:help}.cache-savings-summary{margin-bottom:20px;padding:10px;background-color:#f0f8ff;border-radius:4px;border-left:4px solid #4caf50}.cache-metrics{display:flex;flex-wrap:wrap;gap:15px;margin-top:10px}.cache-metrics>div{background-color:#e8f5e9;padding:5px 10px;border-radius:4px;font-weight:500}.header{margin-bottom:8px;width:100%}.header-top{display:flex;justify-content:space-between;align-items:stretch;margin-bottom:8px;gap:8px}.header h1{margin:0;color:#333;font-size:1.3rem;font-weight:600}.header-nav{display:flex;gap:10px;align-items:center}.nav-button{padding:0 12px;background-color:#f0f0f0;border:none;border-radius:4px;cursor:pointer;font-weight:500;color:#333;font-size:.75rem;transition:background-color .2s;height:40px}.nav-button:hover{background-color:#e0e0e0}.logout-button{background-color:#f5f5f5;color:#e53935;align-self:flex-start}.logout-button:hover{background-color:#ffebee}.header-stats{display:flex;flex-wrap:nowrap;gap:8px;flex:1;background-color:#f9f9f9;border-radius:6px;padding:7px;box-shadow:0 1px 2px #0000000d;height:48px}.stats-card{flex:1;min-width:150px;padding:0 10px;border-radius:3px;background-color:#fff;box-shadow:0 1px 1px #00000008;border-left:2px solid transparent;display:flex;flex-direction:column;justify-content:center}.stats-card.conversations{border-left-color:#3498db}.stats-card.tokens{border-left-color:#9b59b6}.stats-card.cache{border-left-color:#2ecc71}.stats-card h3{margin:0 0 2px;font-size:.75rem;color:#666;font-weight:500}.stats-value{font-size:1.05rem;font-weight:600;color:#333;margin-bottom:0;line-height:1.2}.stats-subtext{font-size:.7rem;color:#888;display:flex;align-items:center;justify-content:space-between;line-height:1.2}.details-toggle{background:none;border:none;font-size:.7rem;color:#2ecc71;cursor:pointer;padding:0 3px;margin-left:3px;border-radius:2px;transition:background-color .2s;font-weight:500;line-height:1.2}.details-toggle:hover{background-color:#f0f0f0;text-decoration:underline}.page-info{font-style:italic;margin-left:4px;color:#aaa}@media (max-width: 768px){.header-top{flex-direction:column;align-items:flex-start;gap:12px}.header-nav{width:100%;justify-content:space-between}.header-stats{flex-direction:column}.stats-card{width:100%}.filter-controls{flex-direction:column;gap:10px}.filter-group{width:100%}.filter-buttons{width:100%;justify-content:space-between}}.list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.list-header h2{margin:0;font-size:1.1rem;color:#444}.list-header .logout-button{padding:4px 10px;height:auto;font-size:.7rem}.projects{padding:0}.projects-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.projects h1{margin:0;color:#333;font-size:2rem}.create-project-button{padding:.75rem 1.5rem;background:#28a745;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:1rem;font-weight:500;transition:all .2s}.create-project-button:hover{background:#218838;transform:translateY(-1px)}.error-message{background:#f8d7da;color:#721c24;padding:1rem;border:1px solid #f5c6cb;border-radius:6px;margin-bottom:1.5rem;display:flex;justify-content:space-between;align-items:center}.dismiss-error{background:none;border:none;color:#721c24;font-size:1.5rem;cursor:pointer;padding:0;margin-left:1rem}.dismiss-error:hover{color:#491217}.create-project-form{background:#fff;border:1px solid #e9ecef;border-radius:8px;padding:1.5rem;margin-bottom:2rem;box-shadow:0 2px 4px #0000001a}.create-project-form h3{margin-top:0;margin-bottom:1.5rem;color:#333}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}.form-actions{margin-top:1.5rem;text-align:right}.projects-container{display:grid;grid-template-columns:1fr 2fr;gap:2rem;height:calc(100vh - 300px)}.projects-list{background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 2px 4px #0000001a;overflow-y:auto}.projects-list h2{margin-bottom:1.5rem;color:#333;font-size:1.5rem}.project-item{background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;padding:1rem;margin-bottom:1rem;cursor:pointer;transition:all .2s}.project-item:hover{border-color:#06c;box-shadow:0 2px 4px #0000001a}.project-item.selected{border-color:#06c;background:#e3f2fd}.project-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.project-header h3{margin:0;color:#333;font-size:1.1rem}.project-meta{display:flex;gap:1rem;font-size:.85rem;color:#666;margin-bottom:.5rem}.project-description{margin:0;color:#555;font-size:.9rem;line-height:1.4}.status-badge{padding:.25rem .5rem;border-radius:12px;font-size:.75rem;font-weight:500}.status-badge.published{background:#d4edda;color:#155724}.status-badge.draft{background:#fff3cd;color:#856404}.project-details{background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 2px 4px #0000001a;overflow-y:auto}.project-actions{display:flex;gap:.75rem;margin-bottom:1.5rem;flex-wrap:wrap}.action-button{padding:.5rem 1rem;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;transition:all .2s;min-width:100px}.action-button:disabled{opacity:.6;cursor:not-allowed}.action-button.edit{background:#17a2b8;color:#fff}.action-button.edit:hover:not(:disabled){background:#138496}.action-button.save{background:#28a745;color:#fff}.action-button.save:hover:not(:disabled){background:#218838}.action-button.versions{background:#6c757d;color:#fff}.action-button.versions:hover:not(:disabled){background:#5a6268}.action-button.publish{background:#28a745;color:#fff}.action-button.publish:hover:not(:disabled){background:#218838}.action-button.unpublish{background:#ffc107;color:#212529}.action-button.unpublish:hover:not(:disabled){background:#e0a800}.action-button.revert{background:#dc3545;color:#fff;font-size:.8rem;padding:.25rem .5rem}.action-button.revert:hover:not(:disabled){background:#c82333}.instructions-content{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:20px;margin-bottom:20px;max-height:500px;overflow-y:auto}.instructions-text{font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,Source Code Pro,monospace;font-size:14px;line-height:1.6;color:#2c3e50;background:#fff;border-radius:6px;padding:16px;border:1px solid #e9ecef}.instruction-line{margin-bottom:4px;white-space:pre-wrap;word-wrap:break-word}.instruction-line:last-child{margin-bottom:0}.instruction-header{font-weight:600;color:#1a365d;font-size:16px;margin:16px 0 8px;padding:8px 0;border-bottom:1px solid #e2e8f0}.instruction-list-item{margin-left:20px;position:relative;color:#4a5568}.instruction-list-item:before{content:"•";color:#3182ce;font-weight:700;position:absolute;left:-20px}.instruction-numbered-item{margin-left:20px;position:relative;color:#4a5568}.instruction-numbered-item:before{content:attr(data-number);color:#3182ce;font-weight:700;position:absolute;left:-20px}.instruction-important{background:#fff5f5;border-left:4px solid #f56565;padding:8px 12px;margin:8px 0;border-radius:0 4px 4px 0;color:#c53030;font-weight:500}.instruction-text{color:#2d3748;line-height:1.7}.empty-line{height:1.6em;display:block}.edit-form{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:20px;margin-top:20px}.form-group{margin-bottom:20px}.form-group label{display:block;font-weight:600;color:#2c3e50;margin-bottom:8px;font-size:14px}.instructions-textarea{width:100%;font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,Source Code Pro,monospace;font-size:14px;line-height:1.6;color:#2c3e50;background:#fff;border:1px solid #e9ecef;border-radius:6px;padding:16px;resize:vertical;min-height:300px;transition:border-color .2s ease}.instructions-textarea:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 3px #007bff1a}.change-description-input{width:100%;padding:12px 16px;font-size:14px;border:1px solid #e9ecef;border-radius:6px;background:#fff;color:#2c3e50;transition:border-color .2s ease}.change-description-input:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 3px #007bff1a}.project-content h3{color:#2c3e50;font-size:18px;font-weight:600;margin:24px 0 16px;padding-bottom:8px;border-bottom:2px solid #e9ecef}.project-info{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:20px}.project-info p{margin:8px 0;color:#495057;font-size:14px}.project-info strong{color:#2c3e50;font-weight:600;min-width:120px;display:inline-block}.versions-list{margin-top:1rem}.versions-list h3{margin-bottom:1rem;color:#333}.version-item{background:#f8f9fa;border:1px solid #e9ecef;border-radius:4px;padding:1rem;margin-bottom:1rem}.version-header{display:flex;gap:1rem;align-items:center;margin-bottom:.5rem}.version-number{background:#06c;color:#fff;padding:.25rem .5rem;border-radius:12px;font-weight:500;font-size:.8rem}.version-date,.version-author{color:#666;font-size:.85rem}.version-description{margin:.5rem 0;color:#555;font-style:italic}.version-actions{margin-top:.5rem}.no-selection{text-align:center;color:#666;font-style:italic;padding:2rem}.loading,.error{text-align:center;padding:2rem;font-size:1.1rem}.loading{color:#06c}.error{color:#dc3545}@media (max-width: 1024px){.projects-container{grid-template-columns:1fr;height:auto}.projects-list,.project-details{height:auto;overflow-y:visible}.form-row{grid-template-columns:1fr}}@media (max-width: 768px){.projects-header{flex-direction:column;gap:1rem;align-items:flex-start}.project-actions{flex-direction:column}.action-button{width:100%}.project-header{flex-direction:column;align-items:flex-start;gap:.5rem}.project-meta{flex-direction:column;gap:.25rem}}.login-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:#f5f5f7}.login-box{background:#fff;padding:2rem;border-radius:8px;box-shadow:0 4px 6px #0000001a;width:100%;max-width:400px}.login-box h1{margin-bottom:1.5rem;color:#333;text-align:center}.form-group{margin-bottom:1rem}.form-group label{display:block;margin-bottom:.5rem;color:#555}.form-group input{width:100%;padding:.75rem;border:1px solid #ddd;border-radius:4px;font-size:1rem}.form-group input:focus{outline:none;border-color:#06c;box-shadow:0 0 0 2px #06c3}button{width:100%;padding:.75rem;background:#06c;color:#fff;border:none;border-radius:4px;font-size:1rem;cursor:pointer;transition:background-color .2s}button:hover{background:#0052a3}.error-message{background:#ffebee;color:#c62828;padding:.75rem;border-radius:4px;margin-bottom:1rem;text-align:center}.app{min-height:100vh;background:#f5f5f7}.header{display:flex;justify-content:space-between;align-items:center;padding:1rem 2rem;background:#fff;box-shadow:0 1px 3px #0000001a}.tab-navigation{display:flex;gap:1rem}.tab-button{padding:.5rem 1rem;border:none;background:none;color:#666;font-size:1rem;cursor:pointer;border-radius:4px;transition:all .2s}.tab-button:hover{background:#f0f0f0}.tab-button.active{background:#06c;color:#fff}.logout-button{padding:.5rem 1rem;background:#dc3545;color:#fff;border:none;border-radius:4px;cursor:pointer;transition:background-color .2s;width:auto;min-width:100px;max-width:150px}.logout-button:hover{background:#c82333}.tab-content{padding:2rem}.tool-details pre,.slack-details pre{white-space:pre-wrap;word-wrap:break-word;max-width:100%;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.9rem;line-height:1.5;padding:1rem;background:#f8f9fa;border-radius:4px;border:1px solid #eee;overflow-x:auto}.tool-item,.slack-item{background:#fff;border:1px solid #eee;border-radius:6px;padding:1rem;margin-bottom:1rem;cursor:pointer;transition:all .2s}.tool-item:hover,.slack-item:hover{border-color:#06c;box-shadow:0 2px 4px #0000001a}.tool-item.selected,.slack-item.selected{border-color:#06c;background:#f8f9ff}.tool-details,.slack-details{background:#fff;border-radius:6px;padding:2rem;height:calc(100vh - 150px);overflow-y:auto}.detail-section{margin-bottom:2rem}.detail-section h3{margin-bottom:1rem;color:#333}.no-selection{display:flex;justify-content:center;align-items:center;height:100%;color:#666;font-style:italic}@media (max-width: 768px){.tool-history-container,.slack-history-container{grid-template-columns:1fr}.header{flex-direction:column;gap:1rem}.tab-navigation{width:100%;justify-content:center}.logout-button{width:auto;min-width:100px;max-width:150px}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;line-height:1.5;color:#333}button,input{font-family:inherit}
