.lp-grid{display:grid;grid-template-columns:minmax(320px,420px) 1fr;gap:28px;align-items:start}
@media (max-width:860px){
  .lp-grid{grid-template-columns:1fr;gap:0}
  .lp-preview{
    order:-1;
    position:sticky;
    top:66px;
    z-index:5;
    background:var(--bg);
    padding:14px 0 16px;
    border-bottom:1px solid var(--line);
  }
  .lp-controls{padding-top:16px}
}

.lp-controls{display:flex;flex-direction:column;gap:16px;min-width:0}

.lp-textarea{width:100%;min-height:220px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92rem;line-height:1.5}
@media (min-width:640px){.lp-textarea{min-height:280px}}

.lp-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lp-row-3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:380px){.lp-row-3{grid-template-columns:1fr 1fr}}

.lp-check{display:flex;align-items:flex-start;gap:10px;font-size:.92rem;color:var(--text);cursor:pointer;line-height:1.4}
.lp-check input{margin-top:3px;flex:none;width:18px;height:18px}
.lp-check-body{display:flex;flex-direction:column;gap:2px}
.lp-hint{font-size:.8rem;color:var(--muted-2)}
.lp-disabled{opacity:.5}
.lp-disabled .lp-check{cursor:not-allowed}

.lp-summary{font-size:.88rem;color:var(--muted);background:var(--card-2);border:1px solid var(--line);border-radius:10px;padding:10px 14px}

.lp-actions{display:flex;gap:10px;flex-wrap:wrap}
.lp-actions .btn{flex:1 1 auto;min-width:140px}

.lp-preview{display:flex;flex-direction:column;gap:14px;min-width:0}

.lp-stage{position:relative;aspect-ratio:16/9;background:var(--lp-bg,#000);border-radius:14px;overflow:hidden;
  display:flex;align-items:center;justify-content:center;border:1px solid var(--line);
  box-shadow:var(--shadow-lg,0 20px 50px -20px rgba(0,0,0,.6))}

.lp-stage-text{display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;color:var(--lp-text,#fff);font-family:Arial,Helvetica,sans-serif;line-height:1.22;
  white-space:pre-wrap;pointer-events:none;padding:0 4%}

.lp-line{white-space:pre-wrap;word-break:break-word}
.lp-stage-text .gold{color:var(--lp-gold,#DAA520)}

.lp-empty-hint{color:#888;font-family:Inter,sans-serif;font-size:1rem}

.lp-nav{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.lp-nav-count{min-width:90px;text-align:center;color:var(--muted);font-size:.88rem;font-variant-numeric:tabular-nums}

.lp-swatch{display:inline-block;width:11px;height:11px;border-radius:3px;background:var(--lp-gold,#DAA520);margin-right:5px;vertical-align:middle}

.lp-font-row{display:flex;align-items:center;gap:12px}
.lp-font-row input[type=range]{flex:1 1 auto;min-width:0}
.lp-font-row .btn{flex:none}

@media (max-width:480px){
  .lp-actions .btn{min-width:0;flex-basis:100%}
  .lp-nav{gap:8px}
  .lp-nav .btn{padding-left:14px;padding-right:14px}
}
