.lg { padding: 22px 0 10px; }
.lg [hidden] { display: none !important; }
.lg input[type=text], .lg input[type=search], .lg select { width: 100%; font: inherit; font-size: 15px; border: 1px solid #ddd6cb; border-radius: 10px; padding: 8px 11px; background: var(--card); color: var(--text); min-height: 42px; box-sizing: border-box; }
.lg input:focus { outline: 3px solid rgba(245, 158, 11, .35); border-color: var(--gold); }
.lg input[type=range] { width: 100%; accent-color: #d97706; }
.lg input[type=color] { width: 44px; height: 32px; border: 1px solid #ddd6cb; border-radius: 8px; padding: 2px; background: var(--card); cursor: pointer; }
.lg input[type=checkbox] { width: 18px; height: 18px; accent-color: #d97706; margin: 0; }
.lg-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.lg-sp { flex: 1; }
.lg-hint { font-size: 13px; color: var(--muted); margin: 6px 0; line-height: 1.45; }
.lg-hint:empty { display: none; }
.lg-warnc { color: #b45309; font-weight: 600; }
.lg-msg { min-height: 22px; font-size: 14px; font-weight: 700; color: #15803d; margin: 10px 0 4px; }
.lg-msg.lg-err { color: #b42318; } .lg-msg.lg-warn { color: #b45309; } .lg-msg.lg-stay { color: var(--muted); }
.lg-link { font: inherit; font-size: 13.5px; border: 0; background: none; color: var(--gold-text); font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }
.lg-del { color: #b42318; }
.lg-lbl { display: block; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 6px; }
.lg-lbl small { text-transform: none; font-weight: 600; letter-spacing: 0; }
.lg-ck { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; margin: 8px 0; cursor: pointer; }

/* steps */
.lg-steps { display: flex; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; margin-bottom: 14px; }
.lg-steps button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; padding: 12px 10px; font: inherit; font-weight: 800; font-size: 14.5px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.lg-steps i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.lg-steps .on { color: var(--text); border-bottom-color: var(--gold); }
.lg-steps .on i { background: var(--gold); border-color: var(--gold); color: #1f1d1a; }

/* step 1 */
.lg-form { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 12px; align-items: end; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.lg-f label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.lg-f label small { font-weight: 600; }
.lg-f-name input { font-weight: 700; font-size: 16px; }
.lg-make { margin: 0 !important; min-height: 42px; }
.lg-filters { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 12px 2px 4px; font-size: 13px; }
.lg-filters > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lg-filters b { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.lg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lg-chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; }
.lg-chip:hover { border-color: var(--gold); }
.lg-chip.on { background: #1f1d1a; color: #fff; border-color: #1f1d1a; }
.lg-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.lg-dot { width: 24px; height: 24px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #cfc7ba; cursor: pointer; padding: 0; }
.lg-dot.on { box-shadow: 0 0 0 3px var(--gold); }
.lg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.lg-tile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; aspect-ratio: 4 / 3; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.lg-tile:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.lg-open { width: 100%; height: 100%; border: 0; background: none; padding: 14% 10%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lg-open svg { width: 100%; height: 100%; }
.lg-heart { position: absolute; right: 8px; top: 6px; border: 0; background: rgba(255, 255, 255, .85); border-radius: 50%; width: 32px; height: 32px; font-size: 17px; color: #b8ae9e; cursor: pointer; }
.lg-heart.on, .lg-heart:hover { color: #e11d48; }
.lg-skel { width: 60%; height: 24%; border-radius: 8px; background: linear-gradient(90deg, #f1ede6, #f8f6f2, #f1ede6); background-size: 200% 100%; animation: lgsk 1.2s infinite; }
@keyframes lgsk { to { background-position: -200% 0; } }
.lg-sister { aspect-ratio: auto; min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px; text-decoration: none; color: var(--text); background: linear-gradient(135deg, #fff7e6, #fff); border: 2px dashed #f2c46d; }
.lg-sister b { font-size: 16px; }
.lg-sister span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.lg-sister em { font-style: normal; font-weight: 800; color: var(--gold-text); font-size: 13.5px; }
.lg-more { text-align: center; margin: 16px 0 4px; }
.lg-favs { margin-top: 12px; background: #fff5f6; border: 1px solid #f9d3db; border-radius: 14px; padding: 10px 12px; }
.lg-favs > b { font-size: 13px; color: #be123c; }
.lg-favlist { display: flex; gap: 10px; overflow-x: auto; padding: 8px 2px 2px; }
.lg-fav { flex: none; width: 150px; height: 96px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; }
.lg-fav svg { width: 100%; height: 100%; }

/* step 2 */
.lg-ed { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
.lg-side { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; position: sticky; top: 10px; max-height: calc(100vh - 20px); display: flex; flex-direction: column; }
.lg-tabs { display: flex; border-bottom: 1px solid var(--line); }
.lg-tabs button { flex: 1; border: 0; background: none; padding: 12px 6px; font: inherit; font-weight: 800; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.lg-tabs button.on { color: var(--text); border-bottom-color: var(--gold); }
.lg-panel { padding: 4px 14px 16px; overflow: auto; }
.lg-icres { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 8px 0 4px; }
.lg-ic { aspect-ratio: 1; border: 1px solid var(--line); background: var(--soft); border-radius: 10px; padding: 8px; cursor: pointer; color: #3a332b; }
.lg-ic svg { width: 100%; height: 100%; display: block; }
.lg-ic.on { border: 2px solid var(--gold); background: #fff7e6; }
.lg-seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lg-seg button { flex: 1; border: 0; background: var(--card); padding: 8px 4px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.lg-seg button.on { background: #1f1d1a; color: #fff; }
.lg-fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lg-font { border: 1px solid var(--line); background: var(--soft); border-radius: 10px; padding: 8px; cursor: pointer; text-align: left; color: var(--text); overflow: hidden; }
.lg-font span { display: block; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.lg-font small { display: block; font-family: system-ui, sans-serif; font-size: 11px; color: var(--muted); margin-top: 2px; }
.lg-font.on { border: 2px solid var(--gold); background: #fff7e6; }
.lg-lays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.lg-lay { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text); }
.lg-lay i { display: flex; height: 76px; align-items: center; justify-content: center; }
.lg-lay i svg { max-width: 100%; max-height: 100%; }
.lg-lay.on { border: 2px solid var(--gold); background: #fff7e6; }
.lg-pals { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.lg-pal { display: flex; height: 30px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.lg-pal i { flex: 1; }
.lg-pal.on { border-color: var(--gold); }
.lg-cols { display: flex; gap: 14px; margin: 14px 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.lg-cols label { display: flex; flex-direction: column; gap: 4px; }
.lg-stage { min-width: 0; }
.lg-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.lg-tools .btn { margin: 0 !important; }
.lg-tools .on { color: #e11d48; }
.lg-big { background: #fff linear-gradient(45deg, rgba(0, 0, 0, .025) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, .025) 75%) 0 0 / 18px 18px; border: 1px solid var(--line); border-radius: 16px; height: 360px; padding: 40px 8%; display: flex; align-items: center; justify-content: center; }
.lg-big svg { width: 100%; height: 100%; }
.lg-prevs { display: grid; grid-template-columns: 1fr 1fr 150px; gap: 12px; margin-top: 12px; }
.lg-pv { height: 150px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 22px; display: flex; align-items: center; justify-content: center; }
.lg-pv svg { width: 100%; height: 100%; }
.lg-pv-dark { background: #1f1d1a; }
.lg-pv-app { background: var(--soft); padding: 15px; }
.lg-pv-app svg { width: 120px; height: 120px; }
.lg-sim { margin-top: 14px; }
.lg-simgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lg-simgrid .lg-tile { aspect-ratio: 4 / 3; }

/* step 3 */
.lg-kit { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.lg-mock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lg-m { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #efe9df; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 290px; position: relative; }
.lg-m figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 12px; font-weight: 700; color: #6b655d; }
.lg-m-sign { background: linear-gradient(180deg, #d8d1c4, #b3a894); }
.lg-board { width: 78%; height: 46%; border-radius: 8px; box-shadow: 0 18px 34px rgba(0, 0, 0, .35); padding: 5% 7%; display: flex; align-items: center; justify-content: center; }
.lg-board svg { width: 100%; height: 100%; }
.lg-card { width: 80%; aspect-ratio: 1.75; background: #fff; border-radius: 8px; box-shadow: 0 16px 30px rgba(0, 0, 0, .18); transform: rotate(-4deg); display: flex; flex-direction: column; padding: 7% 8%; gap: 8%; }
.lg-card-logo { height: 50%; display: flex; }
.lg-card-logo svg { height: 100%; max-width: 100%; }
.lg-card-txt { display: flex; flex-direction: column; font-size: 11px; color: #555; line-height: 1.35; }
.lg-card-txt b { font-size: 13px; color: #222; }
.lg-m-web { background: #e8e4dc; }
.lg-web { width: 86%; height: 72%; background: #fff; border-radius: 10px; box-shadow: 0 14px 30px rgba(0, 0, 0, .16); overflow: hidden; display: flex; flex-direction: column; }
.lg-web-bar { height: 18px; background: #eee; display: flex; gap: 5px; align-items: center; padding: 0 8px; }
.lg-web-bar i { width: 7px; height: 7px; border-radius: 50%; background: #ccc; }
.lg-web-head { height: 50px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-bottom: 1px solid #eee; font-size: 11px; color: #666; font-weight: 600; }
.lg-web-logo { height: 36px; flex: 1; min-width: 0; display: flex; }
.lg-web-logo svg { height: 100%; max-width: 100%; }
.lg-web-hero { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; }
.lg-web-big { height: 52%; width: 70%; display: flex; justify-content: center; }
.lg-web-big svg { height: 100%; max-width: 100%; }
.lg-web-line { width: 46%; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .12); }
.lg-web-btn { width: 22%; height: 14px; border-radius: 7px; }
.lg-m-phone { background: #e6e1f0; }
.lg-phone { width: 46%; height: 88%; background: #fff; border: 8px solid #111; border-radius: 26px; display: flex; flex-direction: column; align-items: center; padding-top: 18%; gap: 6px; font-size: 12px; text-align: center; }
.lg-phone b { font-size: 13px; padding: 0 6px; }
.lg-phone span { color: #777; font-size: 11px; }
.lg-avatar svg { width: 84px; height: 84px; }
.lg-dl { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; position: sticky; top: 10px; }
.lg-dl h2 { font-size: 17px; margin: 0 0 10px; }
.lg-file { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 1px solid var(--line); background: var(--soft); border-radius: 11px; padding: 9px 12px; margin-bottom: 7px; font: inherit; cursor: pointer; color: var(--text); }
.lg-file:hover { border-color: var(--gold); background: #fff7e6; }
.lg-file b { font-size: 14px; }
.lg-file span { font-size: 12px; color: var(--muted); }
.lg-file:first-of-type { background: var(--gold); border-color: var(--gold); }
.lg-file:first-of-type span { color: #4a3a12; }
.lg-sisterbox { display: block; margin: 12px 0 4px; padding: 11px 13px; border-radius: 12px; border: 2px dashed #f2c46d; background: #fff7e6; text-decoration: none; color: var(--text); font-size: 13px; line-height: 1.45; }
.lg-sisterbox span { color: var(--muted); }

@media (max-width: 980px) {
  .lg-form { grid-template-columns: 1fr 1fr; }
  .lg-f-name { grid-column: 1 / -1; }
  .lg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg-ed, .lg-kit { grid-template-columns: minmax(0, 1fr); }
  .lg-side, .lg-dl { position: static; max-height: none; }
  .lg-ed .lg-stage { order: -1; }
}
@media (max-width: 600px) {
  .lg-form { grid-template-columns: 1fr; }
  .lg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; grid-auto-flow: row dense; }
  .lg-sister { grid-column: 1 / -1; min-height: 0; }
  .lg-mock { grid-template-columns: 1fr; }
  .lg-big { height: 230px; padding: 24px 6%; }
  .lg-prevs { grid-template-columns: 1fr 1fr; }
  .lg-pv-app { display: none; }
  .lg-simgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-steps button { font-size: 13px; padding: 10px 4px; }
  .lg-pals { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
