:root{font-family:Segoe UI,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.6;font-weight:400;color-scheme:light dark;color:#ffffffde;background:linear-gradient(135deg,#1a1a2e,#16213e);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box;margin:0;padding:0}body{margin:0;min-width:320px;min-height:100vh}#app{max-width:1200px;margin:0 auto;padding:2rem}header{text-align:center;margin-bottom:3rem;padding:2rem 0}header h1{font-size:3rem;margin-bottom:.5rem;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.subtitle{font-size:1.2rem;color:#a0aec0}.cipher-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;margin-bottom:3rem}.cipher-card{background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:2rem;text-decoration:none;color:inherit;transition:all .3s ease;border:1px solid rgba(255,255,255,.1);cursor:pointer;display:flex;flex-direction:column;align-items:center;text-align:center}.cipher-card:hover{transform:translateY(-8px);box-shadow:0 12px 40px #667eea66;border-color:#667eea80}.cipher-icon{font-size:3rem;margin-bottom:1rem}.cipher-card h2{font-size:1.5rem;margin-bottom:.5rem;color:#e2e8f0}.cipher-card p{font-size:.9rem;color:#a0aec0;margin-bottom:.8rem}.cipher-desc{font-size:.85rem;color:#718096;font-style:italic}.cipher-card.full-width{grid-column:1 / -1}footer{text-align:center;padding:2rem 0;color:#718096;font-size:.9rem}.cipher-page{max-width:900px;margin:0 auto;padding:2rem}.cipher-page header{text-align:center;margin-bottom:2rem}.back-button{display:inline-block;margin-bottom:1rem;padding:.5rem 1rem;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:8px;color:#e2e8f0;text-decoration:none;transition:all .3s ease}.back-button:hover{background:#fff3;transform:translate(-4px)}.cipher-page h1{font-size:2.5rem;margin-bottom:.5rem;color:#e2e8f0}.description{background:#667eea1a;border-left:4px solid #667eea;padding:1rem;border-radius:8px;margin-bottom:2rem;color:#cbd5e0}.cipher-container{background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:2rem;border:1px solid rgba(255,255,255,.1);margin-bottom:2rem}.input-group{margin-bottom:1.5rem}.input-group label{display:block;margin-bottom:.5rem;color:#e2e8f0;font-weight:500}.input-group input,.input-group textarea{width:100%;padding:.8rem;background:#0000004d;border:1px solid rgba(255,255,255,.2);border-radius:8px;color:#e2e8f0;font-family:Consolas,Monaco,monospace;font-size:1rem;transition:all .3s ease}.input-group input:focus,.input-group textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea33}.input-group textarea{resize:vertical;min-height:100px}.button-group{display:flex;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap}button{flex:1;min-width:120px;padding:.8rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:8px;color:#fff;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease}button:hover{transform:translateY(-2px);box-shadow:0 8px 24px #667eea66}button:active{transform:translateY(0)}button.secondary{background:#ffffff1a}button.secondary:hover{background:#fff3}.result-area{background:#0000004d;border:1px solid rgba(255,255,255,.2);border-radius:8px;padding:1rem;min-height:100px;color:#e2e8f0;font-family:Consolas,Monaco,monospace;font-size:1rem;word-break:break-all;white-space:pre-wrap}.result-area.highlight{border-color:#48bb78;animation:highlightPulse .5s ease}@keyframes highlightPulse{0%,to{box-shadow:0 0 #48bb7800}50%{box-shadow:0 0 0 8px #48bb784d}}.visualization{background:#0003;border-radius:8px;padding:2rem;margin-top:2rem;min-height:200px;display:flex;align-items:center;justify-content:center;flex-direction:column}.visualization-title{color:#a0aec0;margin-bottom:1rem;font-size:.9rem;text-transform:uppercase;letter-spacing:1px}@media (max-width: 768px){header h1{font-size:2rem}.cipher-grid{grid-template-columns:1fr;gap:1rem}.cipher-page h1{font-size:1.8rem}.button-group{flex-direction:column}button{width:100%}.rsa-layout{grid-template-columns:1fr;gap:1rem}.rsa-sidebar{position:static;order:-1}.log-area{height:300px}}.rsa-layout{display:grid;grid-template-columns:1fr 400px;gap:2rem;margin-bottom:2rem}.rsa-main{display:flex;flex-direction:column;gap:2rem}.rsa-sidebar{position:sticky;top:2rem;height:fit-content}.log-area{height:500px;overflow:auto;background:#0b1220;color:#e6f0ff;padding:15px;border-radius:8px;font-family:Consolas,Monaco,monospace;font-size:.85rem;line-height:1.4;white-space:pre-wrap;word-break:break-all}.status-indicator{display:inline-block;padding:6px 12px;border-radius:20px;font-weight:600;font-size:.85rem}.status-indicator.ok{background:#22c55e33;color:#22c55e}.status-indicator.bad{background:#ef444433;color:#ef4444}@media (prefers-color-scheme: light){:root{color:#1a202c;background:linear-gradient(135deg,#f0f4f8,#e2e8f0)}.cipher-card,.cipher-container{background:#ffffffe6;box-shadow:0 4px 12px #00000014}.cipher-card h2,.cipher-page h1,.input-group label{color:#1a202c}.input-group input,.input-group textarea,.result-area{background:#f7fafc;color:#1a202c;border-color:#cbd5e0}.back-button{background:#f7fafc;color:#1a202c}.log-area{background:#f8fafc;color:#1a202c;border:1px solid #e2e8f0}}
