.lk-preview-shell{
  display:block;
  min-width:0;
  height:100%;
  overflow:visible;
}
.lk-preview-summary{
  display:none;
}
.lk-preview-panel-body{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:18px;
  min-width:0;
  min-height:0;
  padding:28px 32px 18px;
}
.lk-card-live-editor .lk-card-preview-toolbar{
  justify-content:center;
  margin:0;
}
.lk-preview-mode{
  display:flex;
  gap:5px;
  padding:5px;
  border:1px solid rgba(15,46,38,.10);
  border-radius:8px;
  background:#eaf7f1;
}
.lk-preview-mode .btn{
  min-width:78px;
  min-height:34px;
  border-radius:7px;
}
.lk-preview-mode .btn.is-active,
.lk-zoom [data-zoom].is-active{
  background:#fff;
  color:#047857;
  box-shadow:0 0 0 3px rgba(16,185,129,.14);
}
.lk-card-live-editor .lk-preview-stage{
  min-height:clamp(320px, 52vh, 640px);
  max-width:100%;
  padding:34px;
  border:0;
  border-radius:8px;
  background:
    radial-gradient(680px 260px at 50% 35%, rgba(16,185,129,.12), transparent 64%),
    linear-gradient(180deg,#f7fcf9,#edf8f3);
  box-shadow:inset 0 0 0 1px rgba(15,46,38,.08);
}
.lk-card-live-editor .lk-preview-stage[data-preview-mode="canvas"]{
  background:
    linear-gradient(rgba(15,46,38,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,46,38,.045) 1px, transparent 1px),
    linear-gradient(180deg,#fbfefc,#eef8f3);
  background-size:24px 24px,24px 24px,auto;
}
.lk-card-live-editor .lk-preview-scale{
  transform-origin:center center;
}
.lk-live-tip{
  justify-self:center;
  max-width:560px;
  padding:10px 14px;
  border:1px solid rgba(15,46,38,.12);
  border-radius:8px;
  background:rgba(255,255,255,.80);
  color:#667085;
  font-size:12px;
  font-weight:800;
  text-align:center;
}
.lk-live-details > .lk-live-section-head{
  margin-bottom:18px;
}
.lk-live-details .lk-logo-panel{
  margin:0;
  border-radius:8px;
  background:#f8fbf9;
}
.lk-live-details .lk-logo-preview{
  width:64px;
  height:64px;
  flex-basis:64px;
  border-radius:8px;
}
.lk-live-details .lk-logo-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.lk-live-details .lk-logo-actions .btn{
  min-height:40px;
}
.lk-card-live-editor .lk-logo-file-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:8px;
  min-width:0;
}
.lk-card-live-editor .lk-logo-file-input{
  position:absolute;
  width:1px !important;
  height:1px !important;
  min-height:0 !important;
  padding:0 !important;
  margin:-1px;
  border:0 !important;
  opacity:0;
  pointer-events:none;
}
.lk-card-live-editor .lk-logo-file-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#536170;
  font-size:12px;
  font-weight:800;
}
.lk-card-live-editor .lk-logo-action-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  min-width:0;
}
.lk-card-live-editor .lk-logo-action-row .btn{
  width:100%;
}
.lk-live-details .lk-card-dest-row{
  margin-top:2px;
}

@media (max-width: 1179px){
  .text-bubble.lk-card-live-editor{
    width:min(100%, calc(100vw - 20px));
  }
  .lk-live-topbar{
    align-items:flex-start;
    flex-direction:column;
  }
  .lk-live-actions{
    justify-content:flex-start;
    width:100%;
  }
  .lk-live-grid{
    grid-template-columns:minmax(0,1fr) minmax(300px,360px);
    grid-template-areas:
      "canvas details"
      "design details";
  }
  .lk-live-design-panel,
  .lk-live-details{
    max-height:none;
    overflow:visible;
  }
  .lk-live-design-panel{
    border-width:1px 1px 0 0;
  }
  .lk-live-details{
    border-width:0 0 0 1px;
  }
  .lk-preview-panel-body{
    grid-template-rows:auto auto auto;
    padding:22px;
  }
  .lk-card-live-editor .lk-preview-stage{
    min-height:clamp(280px, 42vh, 460px);
  }
}

@media (max-width: 900px){
  .lk-live-grid{
    grid-template-columns:1fr;
    grid-template-areas:
      "canvas"
      "design"
      "details";
  }
  .lk-live-design-panel,
  .lk-live-details{
    border-width:1px 0 0;
  }
  .lk-card-live-editor .lk-card-size-grid,
  .lk-live-profile-fields{
    grid-template-columns:1fr;
  }
  .lk-live-details .lk-logo-actions{
    grid-template-columns:1fr;
  }
  .lk-template-strip{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .lk-template-mini{
    max-height:104px;
  }
  .lk-card-live-editor .lk-preview-stage{
    min-height:clamp(220px, 36vh, 340px);
    padding:18px;
  }
}

@media (max-width: 760px){
  .text-bubble.lk-card-live-editor{
    width:min(100%, calc(100vw - 20px));
    margin:12px auto 24px;
  }
  .lk-live-topbar,
  .lk-live-status-row{
    padding:13px;
  }
  .lk-live-topbar{
    gap:10px;
  }
  .lk-live-status-row{
    align-items:flex-start;
    flex-direction:column;
  }
  .lk-live-title-block{
    gap:3px;
  }
  .lk-card-live-editor .lk-card-editor-title{
    font-size:22px;
  }
  .lk-live-qr-line{
    display:none;
  }
  .lk-live-actions{
    display:flex;
    flex-wrap:nowrap;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    padding-bottom:3px;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
  .lk-live-actions .btn,
  .lk-live-template-select,
  .lk-live-history{
    width:auto;
    flex:0 0 auto;
    min-height:38px;
    white-space:nowrap;
  }
  .lk-live-history{
    display:none;
  }
  .lk-live-template-select{
    width:178px;
  }
  .lk-preview-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:48px;
    padding:13px;
    list-style:none;
    cursor:pointer;
    border-bottom:1px solid rgba(15,46,38,.10);
    background:#fff;
    color:#101828;
    font-weight:950;
  }
  .lk-preview-summary::-webkit-details-marker{
    display:none;
  }
  .lk-preview-summary span:last-child{
    color:#667085;
    font-size:12px;
    font-weight:800;
  }
  .lk-preview-panel-body{
    grid-template-rows:auto auto auto;
    gap:12px;
    padding:13px;
  }
  .lk-card-live-editor .lk-card-preview-toolbar{
    align-items:stretch;
    flex-direction:column;
  }
  .lk-preview-mode,
  .lk-card-preview-toolbar .lk-zoom{
    width:100%;
  }
  .lk-preview-mode .btn,
  .lk-card-preview-toolbar .lk-zoom .btn{
    flex:1 1 0;
    min-width:0;
  }
  .lk-card-live-editor .lk-preview-stage{
    min-height:0;
    max-height:min(340px, 48vh);
    overflow:auto;
    justify-content:flex-start;
    align-items:flex-start;
    padding:12px;
  }
  .lk-card-live-editor .lk-preview-scale{
    transform-origin:left top;
  }
  .lk-live-tip{
    display:none;
  }
  .lk-card-live-editor .lk-panel{
    padding:14px;
  }
  .lk-color-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .lk-template-strip{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }
  .lk-template-card{
    padding:5px;
    font-size:10px;
  }
  .lk-template-mini{
    max-height:74px;
  }
  .lk-template-mini::before{
    border-width:3px;
  }
}

@media (max-width: 430px){
  .lk-live-actions{
    display:flex;
  }
  .lk-live-qr-line{
    align-items:flex-start;
    flex-direction:column;
  }
  .lk-live-qr-line code{
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .lk-live-tabs{
    grid-template-columns:1fr;
  }
  .lk-template-strip{
    gap:6px;
  }
  .lk-template-card{
    min-height:0;
    padding:4px;
  }
  .lk-template-mini{
    max-height:58px;
  }
  .lk-template-card span:last-child{
    font-size:9px;
  }
}

