[data-pane="layout"]>.layout-columns[hidden],[data-pane="layout"]>.subtabs[hidden],.frame-settings[hidden]{display:none!important}
.frame-list-card .toolbar{align-items:center;margin-bottom:18px}.frame-list-card h2{margin:0}

/* Layout Cards List (Matches Desktop App Look & Proportions) */
#bundleLayouts {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
  overflow-x: auto !important;
  padding: 6px 4px 16px 4px !important;
}

.layout-choice {
  flex: 0 0 204px !important;
  width: 210px !important;
  min-width: 210px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.layout-choice:hover {
  border-color: #9461eb !important;
  box-shadow: 0 4px 14px rgba(121, 77, 238, 0.14) !important;
}

.layout-choice.selected {
  border: 2px solid #237b59 !important;
  background: #f0fdf4 !important;
  box-shadow: 0 0 0 3px rgba(35, 123, 89, 0.15) !important;
}

.layout-choice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.layout-idx-badge {
  font-size: 11px;
  font-weight: 800;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 7px;
}

.layout-active-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: #8b5cf6;
  border-radius: 6px;
  padding: 2px 8px;
}

.layout-nav-arrows {
  display: flex;
  gap: 3px;
  margin-left: auto;
}

.layout-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #f1edfb;
  color: #794dee;
  font-size: 10px;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.layout-thumb-stage {
  width: 100%;
  height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px;
  box-sizing: border-box;
  overflow: hidden;
}

.layout-thumb-canvas {
  position: relative;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
  border-radius: 3px;
  overflow: hidden;
  box-sizing: border-box;
}

.layout-thumb-slot {
  position: absolute;
  background: rgba(144, 209, 185, 0.85);
  border: 1.5px dashed #176c59;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 1;
}

.slot-num-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #5d4037;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.layout-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 2;
  pointer-events: none;
}

.layout-choice-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}

.layout-choice-meta {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #7c3aed !important;
  line-height: 1.3;
}

.layout-choice-sub {
  display: block;
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

.frame-settings{display:block!important;padding:22px!important}.frame-settings-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}.frame-settings-heading h2{margin:0}.frame-settings-heading span{font-size:12px;color:#82768e}
.frame-field-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.frame-field-grid label{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:13px}.frame-field-grid input,.frame-field-grid select{width:100%;min-width:0;min-height:42px;font-size:14px}.frame-field-grid label:has(#bundleDouble){grid-column:1/-1;flex-direction:row;align-items:center}.frame-field-grid #bundleDouble{width:18px;min-height:18px;margin:0}
.frame-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #eee7f1;margin-top:16px;padding-top:16px}.frame-actions .frame-order{display:flex;gap:8px;margin-right:auto}.frame-actions button{min-height:40px;padding:9px 14px;font-size:13px}.frame-actions .frame-remove{color:#cb326f;background:#fff5f8;border-color:#f5d5e0}
.frame-qr-panel{margin-top:16px;border-top:1px solid #eee7f1;padding-top:14px}.frame-qr-panel summary{cursor:pointer;font-weight:600;color:#7448a4}.frame-qr-panel>p{font-size:12px}.frame-qr-panel .layout-stage{height:300px;min-height:0;margin-top:14px}.frame-qr-panel .layout-caption{font-size:12px}.frame-qr-panel .qr-tools{gap:16px}.frame-qr-panel .qr-tools label{font-size:13px}
@media(max-width:850px){.frame-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.frame-settings{padding:16px!important}}
@media(max-width:480px){.frame-actions .frame-order{width:100%;margin:0}.frame-actions>button{flex:1}.frame-settings-heading span{width:100%}.frame-qr-panel .layout-stage{height:220px}}
.frame-list-card{padding:20px!important}
