:root{--bg: #f8f8f8;--accent: #8F244A;--muted: #666}html,body{height:100%;margin:0;overflow:auto}#root{height:100%;overflow:visible}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial;background:var(--bg);color:var(--accent)}.app-root{min-height:100%;padding-bottom:84px}.page{padding:16px}.page.website{padding:0;margin:0}.page.centered{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:600px;margin:0 auto}.joingroup{padding:16px}.welcome-title{color:var(--accent);font-size:24px;margin:16px 0;font-weight:600}.links-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;width:100%;margin:16px 0}.link-card{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 12px;background:#fff;border-radius:12px;text-decoration:none;color:var(--accent);border:1px solid #eee;transition:all .2s;cursor:pointer}.link-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.link-card.add-link{background:var(--bg);border:2px dashed var(--accent)}.link-icon{font-size:32px;margin-bottom:8px}.link-card span{font-size:13px;font-weight:500}.recent{width:100%;margin-top:24px}.recent h2{font-size:18px;margin-bottom:12px}.message-list{overflow:auto;width:100%}.recent .message-list{max-height:40vh}.message-thread{height:calc(100vh - 72px);display:flex;flex-direction:column;padding-bottom:0}.message-thread .message-list{flex:1;overflow-y:auto;min-height:0}.message-card{padding:12px 16px;background:#fff;border-radius:8px;margin:8px 0;color:#000;border:1px solid #eee;text-align:left;cursor:pointer;transition:all .2s;position:relative}.message-card:hover{box-shadow:0 2px 8px #0000001a}.message-card.unread{border-left:4px solid var(--accent)}.message-card.read{opacity:.7}.m-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.m-group{font-size:11px;color:var(--accent);font-weight:600;text-transform:uppercase}.m-unread-dot{width:8px;height:8px;background:var(--accent);border-radius:50%}.m-title{font-weight:600;font-size:14px;margin-bottom:4px;color:#333;word-wrap:break-word;overflow-wrap:break-word}.m-body{font-size:13px;color:#666;margin-bottom:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:break-word;overflow-wrap:break-word}.m-time{font-size:11px;color:#999}.footer-nav{position:fixed;left:0;right:0;bottom:0;height:72px;background:#fff;border-top:1px solid #eee;display:flex;align-items:center;justify-content:space-around}.footer-nav a{display:flex;flex-direction:column;align-items:center;text-decoration:none;color:var(--muted);transition:color .2s;padding:8px 16px}.footer-nav a.active{color:var(--accent)}.nav-icon{font-size:28px;margin-bottom:4px}.nav-label{font-size:11px;font-weight:500}.controls{margin:16px 0;display:flex;gap:8px;justify-content:center}.controls button{padding:8px 16px;border:1px solid #ddd;background:#fff;border-radius:6px;cursor:pointer;color:var(--accent);font-weight:500}.controls button.active{background:var(--accent);color:#fff;border-color:var(--accent)}.setup{margin-top:12px;width:100%}.setup button{margin:4px;padding:10px 16px;border:1px solid var(--accent);background:#fff;color:var(--accent);border-radius:6px;cursor:pointer;font-size:13px}.setup button:hover{background:var(--accent);color:#fff}.messages-list{width:100%;margin-top:16px}.group{margin-bottom:24px}.group h3{font-size:16px;margin-bottom:8px}.group h3 a{color:var(--accent);text-decoration:none}.group-card{background:#fff;border-radius:12px;padding:16px 20px;border:1px solid #eee;margin-bottom:12px;cursor:pointer;transition:all .2s}.group-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.group-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.group-name{margin:0;font-size:16px;font-weight:600;color:var(--accent)}.group-badge{background:var(--accent);color:#fff;font-size:12px;font-weight:600;padding:4px 8px;border-radius:12px;min-width:20px;text-align:center}.group-info{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--muted)}.group-count{font-weight:500}.group-latest{font-size:12px}.loading-indicator{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;color:var(--accent)}.spinner{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid var(--accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-indicator p{margin-top:16px;font-size:14px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}.modal-content{background:#fff;border-radius:16px;max-width:500px;width:100%;max-height:90vh;overflow:auto}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #eee}.modal-header h2{margin:0;font-size:18px;color:var(--accent)}.modal-close{background:none;border:none;font-size:24px;cursor:pointer;color:var(--muted);padding:0;display:flex;align-items:center}.modal-close:hover{color:var(--accent)}.modal-body{padding:20px}.modal-input-group{display:flex;gap:8px;margin-bottom:12px}.modal-input{flex:1;padding:12px;border:1px solid #ddd;border-radius:8px;font-size:14px}.modal-button{padding:12px 20px;background:var(--accent);color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:500;width:100%;font-size:14px}.modal-button:hover{opacity:.9}.modal-button.secondary{background:#fff;color:var(--accent);border:1px solid var(--accent)}.modal-button.secondary:hover{background:var(--bg)}.settings{overflow:auto}.settings h1{color:var(--accent);font-size:24px;margin:16px 0}.settings-section{width:100%;margin-top:24px}.settings-section h2{font-size:18px;margin-bottom:12px;text-align:left;color:var(--accent)}.settings-description{font-size:13px;color:var(--muted);margin-bottom:16px;text-align:left}.settings-card{background:#fff;border-radius:12px;padding:16px;border:1px solid #eee;margin-bottom:12px}.settings-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.settings-label{font-size:14px;color:#666;margin:0}.settings-value{font-size:14px;font-weight:600;color:var(--accent);margin:0}.settings-button{padding:12px 20px;background:var(--accent);color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:500;width:100%;font-size:14px}.settings-button:hover{opacity:.9}.settings-info-text{font-size:13px;color:#666;margin:8px 0;text-align:left}.help-button{background:none;border:none;color:var(--accent);font-size:24px;cursor:pointer;padding:4px;display:flex;align-items:center;transition:transform .2s}.help-button:hover{transform:scale(1.1)}.help-card{background:#f0f9ff;border:1px solid #bfdbfe;border-radius:12px;padding:16px;margin-bottom:12px;text-align:left}.help-card h3{margin:0 0 12px;font-size:16px;color:var(--accent)}.help-step{margin:4px 0;font-size:13px;color:#333;line-height:1.5}.settings-toggles{display:flex;flex-direction:column;gap:12px}.toggle-item{background:#fff;border-radius:12px;padding:16px;border:1px solid #eee;display:flex;justify-content:space-between;align-items:center}.toggle-info{display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left}.toggle-label{font-size:14px;font-weight:500;color:#333}.toggle-status{font-size:12px;color:var(--muted)}.toggle-switch{position:relative;display:inline-block;width:48px;height:26px}.toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.3s;border-radius:26px}.toggle-slider:before{position:absolute;content:"";height:20px;width:20px;left:3px;bottom:3px;background-color:#fff;transition:.3s;border-radius:50%}.toggle-switch input:checked+.toggle-slider{background-color:var(--accent)}.toggle-switch input:checked+.toggle-slider:before{transform:translate(22px)}
