*{
    box-sizing:border-box;
    font-family:system-ui,-apple-system,Segoe UI,Roboto;
}

body{
    margin:0;
    background:#f4f6f8;
}

.wrap{
    max-width:1300px;
    margin:auto;
    padding:30px;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

h1{
    margin:0;
}

.sub{
    color:#666;
    font-size:14px;
}

.badge{
    background:#111;
    color:#fff;
    padding:10px 14px;
    border-radius:8px;
    font-size:13px;
}

.grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.card{
    background:#fff;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.06);
}

.card-h{
    padding:16px;
    border-bottom:1px solid #eee;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.card-b{
    padding:20px;
}

.section-title{
    font-weight:700;
    margin-bottom:10px;
}

.req{
    color:red;
}

.opt-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.opt{
    border:1px solid #ddd;
    background:#fff;
    padding:12px;
    border-radius:10px;
    cursor:pointer;
    text-align:center;
    transition:.2s;
}

.opt:hover{
    border-color:#333;
}

.opt.active{
    border:2px solid #000;
    background:#f1f1f1;
}

.emo{
    font-size:22px;
}

.name{
    font-weight:700;
}

.desc{
    font-size:12px;
    color:#666;
}

.style-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.style-btn{
    border:1px solid #ddd;
    background:#fff;
    padding:10px;
    border-radius:8px;
    cursor:pointer;
}

.style-btn.active{
    background:#111;
    color:#fff;
}

textarea{
    width:100%;
    height:90px;
    border:1px solid #ccc;
    border-radius:8px;
    padding:10px;
    resize:none;
}

.actions{
    display:flex;
    gap:10px;
    margin-top:10px;
}

.btn{
    padding:10px 16px;
    border-radius:8px;
    border:none;
    cursor:pointer;
}

.btn-primary{
    background:#111;
    color:#fff;
}

.btn-ghost{
    background:#eee;
}

.loading{
    display:none;
    align-items:center;
    gap:6px;
    margin-top:10px;
    font-size:14px;
}

.dot{
    width:6px;
    height:6px;
    background:#000;
    border-radius:50%;
    animation:blink 1s infinite;
}

@keyframes blink{
    0%{opacity:.2}
    50%{opacity:1}
    100%{opacity:.2}
}

.result-block{
    margin-top:15px;
    border:1px solid #eee;
    border-radius:8px;
    padding:10px;
}

.result-h{
    display:flex;
    justify-content:space-between;
    margin-bottom:6px;
}

.mono{
    white-space:pre-line;
    font-size:14px;
}

.scroll{
    max-height:220px;
    overflow:auto;
}

.copy{
    background:#eee;
    border:none;
    padding:6px 10px;
    border-radius:6px;
    cursor:pointer;
}

.pill-row{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.pill{
    background:#eee;
    padding:6px 10px;
    border-radius:20px;
    font-size:12px;
}

.error{
    color:red;
    margin-top:10px;
}

.hint{
    color:#888;
}
