*{box-sizing:border-box}body{color:#182536;font-family:Inter,Arial,sans-serif}.crest-shell{min-height:100vh}.crest-main{width:min(1180px,calc(100% - 32px));margin:30px auto 50px}.crest-hero{text-align:center;margin:0 auto 24px;max-width:760px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:#246b9f}.crest-hero h1{font-size:32px;margin:7px 0 8px}.crest-hero p{margin:0;color:#65758a;line-height:1.6}.maker-card,.editor-card,.how-card{background:#fff;border:1px solid #dfe7ee;border-radius:10px;box-shadow:0 5px 18px rgba(24,48,72,.05);margin-bottom:18px}.maker-card{padding:18px}.mode-tabs{display:flex;gap:7px;border-bottom:1px solid #e6edf2;padding-bottom:12px;margin-bottom:17px}.mode-tabs button{border:0;background:#eef3f7;color:#405166;padding:10px 15px;border-radius:6px;font-weight:800;cursor:pointer}.mode-tabs button.active{background:#246b9f;color:#fff}.mode-panel{display:none}.mode-panel.active{display:block}.section-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}.section-title h2,.editor-card h2,.how-card h2{font-size:16px;margin:0 0 4px}.section-title p{font-size:12px;color:#748295;margin:0}.section-title span{font-size:11px;color:#748295}.crest-gallery{display:grid;grid-template-columns:repeat(16,1fr);gap:7px}.crest-option{height:36px;border:2px solid transparent;border-radius:4px;background:#e9eef2;padding:2px;cursor:pointer}.crest-option canvas,.crest-option img{width:100%;height:100%;object-fit:fill;image-rendering:pixelated;display:block}.crest-option:hover{border-color:#8db7d5}.crest-option.selected{border-color:#246b9f;box-shadow:0 0 0 2px rgba(36,107,159,.13)}.upload-box{min-height:180px;border:2px dashed #c9d6e1;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;background:#f8fafc;color:#617186}.upload-box input{position:absolute;inset:0;opacity:0;cursor:pointer}.upload-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e4f0f8;color:#246b9f;font-size:24px;margin-bottom:8px}.upload-box strong{color:#26384c}.upload-box span{font-size:11px;margin-top:5px}.editor-card{padding:18px;display:grid;grid-template-columns:1.1fr .9fr;gap:24px}.preview-stage{height:330px;background:#e8edf1;background-image:linear-gradient(45deg,#dfe5ea 25%,transparent 25%),linear-gradient(-45deg,#dfe5ea 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dfe5ea 75%),linear-gradient(-45deg,transparent 75%,#dfe5ea 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;display:grid;place-items:center;border-radius:7px;overflow:hidden;position:relative}.crop-frame{display:inline-flex;align-items:center;justify-content:center;width:max-content;height:max-content;border:2px solid #246b9f;outline:1px solid rgba(255,255,255,.95);box-shadow:0 0 0 1px rgba(18,45,66,.28);background:transparent;line-height:0;flex:0 0 auto}.preview-stage canvas{width:24px;height:12px;max-width:none;image-rendering:pixelated;cursor:grab;flex:0 0 auto;display:block}.empty-preview{position:absolute;background:rgba(255,255,255,.9);padding:10px 14px;border-radius:5px;font-size:12px;color:#64748b}.controls{display:flex;gap:12px;align-items:center;margin-top:12px}.controls label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;flex:1}.controls input{width:100%}.controls button{border:1px solid #ccd8e1;background:#fff;padding:8px 11px;border-radius:5px;cursor:pointer}.drag-tip{font-size:11px;color:#7a8795;margin:8px 0 0}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.result-grid>div{background:#f6f8fa;border:1px solid #e0e7ed;border-radius:7px;padding:12px;text-align:center}.result-grid .combined{grid-column:1/-1}.result-grid span{display:block;font-size:10px;font-weight:800;color:#5c6d80;margin-bottom:8px}.result-grid canvas{width:16px;height:12px;max-width:none;image-rendering:pixelated;background:#dfe5ea}.result-grid #allyPreview{width:8px;height:12px}.result-grid #combinedPreview{width:24px;height:12px}.result-grid>div{min-height:82px;display:flex;flex-direction:column;align-items:center;justify-content:center}.result-grid span{width:100%}.download-actions{display:grid;gap:8px;margin-top:14px}.download-actions button{border:1px solid #cbd7df;background:#fff;color:#31465b;padding:11px;border-radius:6px;font-weight:800;cursor:pointer}.download-actions button.primary{background:#246b9f;color:#fff;border-color:#246b9f}.download-actions button:disabled{opacity:.45;cursor:not-allowed}.editor-right small{display:block;color:#7b8793;text-align:center;margin-top:7px}.how-card{padding:18px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.steps div{display:flex;align-items:center;gap:10px;background:#f7f9fb;padding:12px;border-radius:6px;font-size:12px}.steps b{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#246b9f;color:#fff}.crest-footer{width:min(1180px,calc(100% - 32px));margin:0 auto 30px;padding-top:20px;border-top:1px solid #dce5eb;display:flex;align-items:center;gap:22px;color:#64748b;font-size:12px}.crest-footer nav{display:flex;gap:14px;flex:1}.crest-footer a{color:#52667a;text-decoration:none}@media(max-width:900px){.crest-gallery{grid-template-columns:repeat(8,1fr)}.editor-card{grid-template-columns:1fr}.steps{grid-template-columns:1fr}}@media(max-width:520px){.crest-main{width:min(100% - 18px,1180px)}.crest-gallery{grid-template-columns:repeat(6,1fr)}.crest-footer{flex-wrap:wrap}.crest-footer nav{order:3;width:100%;flex-basis:100%;flex-wrap:wrap}.preview-stage{height:250px}}

/* Crest Maker integrado ao layout padrão do ranking */
.crest-shell{min-height:100vh}
.crest-layout{align-items:start}
.crest-main{width:auto!important;margin:0!important;min-width:0}
.crest-footer{width:auto!important;margin-top:0!important}
.crest-gallery{display:grid;grid-template-columns:repeat(auto-fill,32px);gap:4px;justify-content:start;align-items:start}
.crest-option{width:32px;height:20px;padding:3px;border:1px solid #d9e2e9;border-radius:3px;background:#f4f7f9;display:flex;align-items:center;justify-content:center}
.crest-option canvas,.crest-option img{width:24px!important;height:12px!important;max-width:24px;max-height:12px;object-fit:fill;image-rendering:pixelated;display:block;flex:0 0 auto}
.crest-option.selected{border-color:#246b9f;box-shadow:0 0 0 1px rgba(36,107,159,.18)}
@media(max-width:900px){.crest-gallery{grid-template-columns:repeat(auto-fill,32px)}}
@media(max-width:520px){.crest-main{width:auto!important}.crest-gallery{grid-template-columns:repeat(auto-fill,32px)}}
